 Hi everyone... If you are as tired as me of looking at charts all day to see how the prices where going. Here is a solution you might find useful. I added some coins price tickers on my i3blocks(1) bar on i3(2) in my Arch linux(3) here is how it looks  and here is how it was done.. add the following to the ~/.i3block.conf file ``` [btc] label=BTC command=echo "$(curl 'https://api.coinmarketcap.com/v1/ticker/bitcoin/' -s | jq '.[0]["price_usd"]' | sed 's/"//g') \$" # command=echo "$(curl 'https://blockchain.info/ticker' -s | jq '.["USD"]["last"]') \$" interval=60 [eth] label=ETH command=echo "$(curl 'https://api.coinmarketcap.com/v1/ticker/ethereum/' -s | jq '.[0]["price_usd"]' | sed 's/"//g') \$" interval=60 [steem] label=STEEM command=echo "$(curl 'https://api.coinmarketcap.com/v1/ticker/steem/' -s | jq '.[0]["price_usd"]' | sed 's/"//g') \$" interval=60 ``` there is also an alternative price provider, just in case. if you don't know what i3 and arch is, here are some links (1) https://github.com/vivien/i3blocks (2) https://i3wm.org/ (3) https://en.wikipedia.org/wiki/Arch_Linux
author | frankmb |
---|---|
permlink | bitcoin-ethereum-and-steemit-price-ticker-on-i3-arch-linux |
category | bitcoin |
json_metadata | {"tags":["bitcoin","ethereum","steem","linux","arch"],"image":["https://steemitimages.com/DQmd8hjyxvXwrbQuJ7ZvM472QaEwE6EJmvNBjpxAmv5qfhn/Bitcoin-2-750x250.jpg","https://steemitimages.com/DQmTJZnJ6T6zjFgDgMUnbP9NEdZb6FByZALN4pA9r2hji4v/screencap_170524_173841.png"],"links":["https://github.com/vivien/i3blocks","https://i3wm.org/","https://en.wikipedia.org/wiki/Arch_Linux"],"app":"steemit/0.1","format":"markdown"} |
created | 2017-05-24 20:54:03 |
last_update | 2017-05-24 20:54:03 |
depth | 0 |
children | 2 |
last_payout | 2017-05-31 20:54:03 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.064 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 1,367 |
author_reputation | 85,435,526,136 |
root_title | "Bitcoin, Ethereum and Steemit price ticker on i3 (Arch linux)" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 3,753,429 |
net_rshares | 49,296,242,941 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
sponge-bob | 0 | 30,809,006,399 | 3% | ||
missiontothemoon | 0 | 1,893,781,871 | 100% | ||
ribalinux | 0 | 1,515,368,084 | 100% | ||
frankmb | 0 | 11,533,357,318 | 100% | ||
sironitomas | 0 | 3,544,729,269 | 100% | ||
pielmorena | 0 | 0 | 100% | ||
sermak | 0 | 0 | 100% |
BTW if you need/want to add localbitcion as a source here is the code. In this case im getting it in Argentinian Pesos which is my local currency ``` [btcars] label=BTC command=echo "$(curl 'https://localbitcoins.com/buy-bitcoins-online/ARS/.json' -s | jq '.["data"]["ad_list"][0]["data"]["temp_price"]' | sed 's/"//g') AR\$" interval=60 ```
author | frankmb |
---|---|
permlink | re-frankmb-bitcoin-ethereum-and-steemit-price-ticker-on-i3-arch-linux-20170524t211027716z |
category | bitcoin |
json_metadata | {"tags":["bitcoin"],"app":"steemit/0.1"} |
created | 2017-05-24 21:10:27 |
last_update | 2017-05-24 21:10:27 |
depth | 1 |
children | 0 |
last_payout | 2017-05-31 21:10:27 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 342 |
author_reputation | 85,435,526,136 |
root_title | "Bitcoin, Ethereum and Steemit price ticker on i3 (Arch linux)" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 3,753,993 |
net_rshares | 11,533,357,318 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
frankmb | 0 | 11,533,357,318 | 100% | ||
sermak | 0 | 0 | 100% |
wow
author | newschannel428 |
---|---|
permlink | re-frankmb-bitcoin-ethereum-and-steemit-price-ticker-on-i3-arch-linux-20170524t211404374z |
category | bitcoin |
json_metadata | {"tags":["bitcoin"],"app":"steemit/0.1"} |
created | 2017-05-24 21:14:03 |
last_update | 2017-05-24 21:14:03 |
depth | 1 |
children | 0 |
last_payout | 2017-05-31 21:14:03 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 3 |
author_reputation | 2,174,828,363,373 |
root_title | "Bitcoin, Ethereum and Steemit price ticker on i3 (Arch linux)" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 3,754,127 |
net_rshares | 11,987,449,207 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
newschannel428 | 0 | 684,759,035 | 100% | ||
frankmb | 0 | 11,302,690,172 | 100% | ||
xr5pl | 0 | 0 | 100% |