Bitcoin Forum
May 06, 2024, 09:48:06 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Bitcoin Charts as a live desktop background (bash one-liner!)  (Read 1291 times)
pera (OP)
Sr. Member
****
Offline Offline

Activity: 532
Merit: 261


­バカ


View Profile
March 20, 2013, 05:47:38 AM
Last edit: March 20, 2013, 04:27:51 PM by pera
 #1

I just realized that Bitcoin Charts charts are render on the server, so I made this simple one-liner to have an enterprise quality background:

Code:
while true; do wget -qO - "http://www.bitcoincharts.com/charts/chart.png?width=940&m=mtgoxUSD&SubmitButton=Draw&r=5&i=&c=0&s=&e=&Prev=&Next=&t=S&b=D&a1=&m1=10&a2=&m2=25&x=0&i1=SStoch&i2=MACD&i3=AccDist&i4=&v=1&cv=0&ps=0&l=0&p=0&" | convert - -negate - | feh --bg-center -; sleep 900; done
(of course you may customize this modifying the url)

it needs the last version of feh (for images from stdin), but you may use other visualizer if you want (eg xv -rv -rbg black -rmode 5 -root -quit -).
the only problem is the 15m time phase; polling would be rude...

screenshots:




キタ━━━━(゚∀゚)━━━━ッ!!
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!