Commit f559ec8161ec88aab028f50b2119f1396c1f45be
Add BTC ticker example
Charles Lehner committed on 2/10/2015, 4:56:12 PMParent: a173b5bb973163057882542a5e621ed8007f37d4
Files changed
README.md | changed |
README.md | |||
---|---|---|---|
@@ -10,15 +10,24 @@ | |||
10 | 10 … | ## Usage | |
11 | 11 … | ``` | |
12 | 12 … | pngspark [-h height] [-c color] [-s scaling] output.png | |
13 | 13 … | ``` | |
14 … | +Pipe numbers to pngspark to add them to the image. | ||
14 | 15 … | ||
15 | 16 … | ### Options | |
16 | 17 … | * `-h height`: the height of the image in pixels | |
17 | 18 … | * `-c color`: the color of the foreground, as #rrggbb hex | |
18 | 19 … | * `-s scaling`: scaling factor. 0 to do no scaling, 1 to make the minimum | |
19 | 20 … | value be at the bottom of the image | |
20 | 21 … | ||
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 … | + | ||
21 | 30 … | ## API | |
22 | 31 … | ||
23 | 32 … | ```c | |
24 | 33 … | struct pngspark; |
Built with git-ssb-web