create account

Bitcoin, Ethereum and Steemit price ticker on i3 (Arch linux) by frankmb

View this thread on: hive.blogpeakd.comecency.com
· @frankmb ·
$0.06
Bitcoin, Ethereum and Steemit price ticker on i3 (Arch linux)
![Bitcoin-2-750x250.jpg](https://steemitimages.com/DQmd8hjyxvXwrbQuJ7ZvM472QaEwE6EJmvNBjpxAmv5qfhn/Bitcoin-2-750x250.jpg)

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

![screencap_170524_173841.png](https://steemitimages.com/DQmTJZnJ6T6zjFgDgMUnbP9NEdZb6FByZALN4pA9r2hji4v/screencap_170524_173841.png)


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
👍  , , , , , ,
properties (23)
authorfrankmb
permlinkbitcoin-ethereum-and-steemit-price-ticker-on-i3-arch-linux
categorybitcoin
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"}
created2017-05-24 20:54:03
last_update2017-05-24 20:54:03
depth0
children2
last_payout2017-05-31 20:54:03
cashout_time1969-12-31 23:59:59
total_payout_value0.064 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length1,367
author_reputation85,435,526,136
root_title"Bitcoin, Ethereum and Steemit price ticker on i3 (Arch linux)"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id3,753,429
net_rshares49,296,242,941
author_curate_reward""
vote details (7)
@frankmb ·
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
```
👍  ,
properties (23)
authorfrankmb
permlinkre-frankmb-bitcoin-ethereum-and-steemit-price-ticker-on-i3-arch-linux-20170524t211027716z
categorybitcoin
json_metadata{"tags":["bitcoin"],"app":"steemit/0.1"}
created2017-05-24 21:10:27
last_update2017-05-24 21:10:27
depth1
children0
last_payout2017-05-31 21:10:27
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length342
author_reputation85,435,526,136
root_title"Bitcoin, Ethereum and Steemit price ticker on i3 (Arch linux)"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id3,753,993
net_rshares11,533,357,318
author_curate_reward""
vote details (2)
@newschannel428 ·
properties (23)
authornewschannel428
permlinkre-frankmb-bitcoin-ethereum-and-steemit-price-ticker-on-i3-arch-linux-20170524t211404374z
categorybitcoin
json_metadata{"tags":["bitcoin"],"app":"steemit/0.1"}
created2017-05-24 21:14:03
last_update2017-05-24 21:14:03
depth1
children0
last_payout2017-05-31 21:14:03
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length3
author_reputation2,174,828,363,373
root_title"Bitcoin, Ethereum and Steemit price ticker on i3 (Arch linux)"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id3,754,127
net_rshares11,987,449,207
author_curate_reward""
vote details (3)