From cd03b11002b469bc70c58c5d008d875a3013db45 Mon Sep 17 00:00:00 2001 From: Antoni Sawicki Date: Wed, 27 Mar 2019 23:59:11 -0700 Subject: [PATCH] changed coinbase api to coindesk --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index b0f312b..34c2442 100644 --- a/README.md +++ b/README.md @@ -61,14 +61,14 @@ ping 8.8.8.8 | sed -u 's/^.*time=//g; s/ ms//g' | ttyplot -t "ping to 8.8.8.8" - { while true; do sensors | grep fan1: | tr -s " " | cut -d" " -f2; sleep 1; done } | ttyplot -t "fan speed" -u RPM ``` -### bitcoin price chart using cut +### bitcoin price chart using curl and jq ``` -{ while true; do curl -sL https://coinbase.com/api/v1/prices/historical | head -1 | cut -d, -f2 ; sleep 600; done } | ttyplot -t "bitcoin price" -u usd +{ while true; do curl -sL https://api.coindesk.com/v1/bpi/currentprice.json | jq .bpi.USD.rate_float; sleep 600; done } | ttyplot -t "bitcoin price" -u usd ``` ### stock quote chart ``` -{ while true; do curl -s https://api.iextrading.com/1.0/stock/googl/price; echo; sleep 600; done } | ttyplot -t "google stock price" -u usd +{ while true; do curl -sL https://api.iextrading.com/1.0/stock/googl/price; echo; sleep 600; done } | ttyplot -t "google stock price" -u usd ``` ### prometheus load average via node exporter