Bitcoin Forum
December 15, 2017, 05:32:29 AM *
News: Latest stable version of Bitcoin Core: 0.15.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Bitcoin Charts as a live desktop background (bash one-liner!)  (Read 1177 times)
pera
Sr. Member
****
Offline Offline

Activity: 406


­バカ


View Profile
March 20, 2013, 05:47:38 AM
 #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:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!