git ssb

1+

cel / pngspark



Commit f559ec8161ec88aab028f50b2119f1396c1f45be

Add BTC ticker example

Charles Lehner committed on 2/10/2015, 4:56:12 PM
Parent: a173b5bb973163057882542a5e621ed8007f37d4

Files changed

README.mdchanged
README.mdView
@@ -10,15 +10,24 @@
1010 ## Usage
1111 ```
1212 pngspark [-h height] [-c color] [-s scaling] output.png
1313 ```
14 +Pipe numbers to pngspark to add them to the image.
1415
1516 ### Options
1617 * `-h height`: the height of the image in pixels
1718 * `-c color`: the color of the foreground, as #rrggbb hex
1819 * `-s scaling`: scaling factor. 0 to do no scaling, 1 to make the minimum
1920 value be at the bottom of the image
2021
22 +## Examples
23 +
24 +Display BTC ticker data
25 +```sh
26 +curl -s https://api.bitcoinaverage.com/history/USD/per_minute_24h_sliding_window.csv | sed 1d | cut -d, -f2 | ./pngspark -o btc.png -s 0.995 -h 80 -c 0066cc
27 +```
28 +![btc](https://cloud.githubusercontent.com/assets/95347/6131571/ed7005c2-b11a-11e4-837c-58b07cd5a9c3.png)
29 +
2130 ## API
2231
2332 ```c
2433 struct pngspark;

Built with git-ssb-web