create account

Bitcoin bash script (Bash script price ticker) by teklordz

View this thread on: hive.blogpeakd.comecency.com
· @teklordz ·
Bitcoin bash script (Bash script price ticker)
![btctoday.png](https://steemitimages.com/DQmXdYwYD8i9uC9uMQRDtCf2ci4Y1qx95ZzbCBg2RGJrpUX/btctoday.png)

In this post, i will show you how to create your own Bitcoin price ticker, in 3 different currencies.  It's a bash script so this tutorial is mainly intended for Linux users. 

A while back, i was browsing the web to find a bash script that gave the price of Bitcoin instantly. I did find one created by David Walsh. https://davidwalsh.name/bitcoin
This script uses the coinsdesk api but after giving the result, it goes back to prompt right away. What i wanted was a script that didn't go back to prompt but would refresh the price every 5 seconds. I also wanted to have the price not only in US dollars but also in Euro and Great Britain Pound.  So here's how to achieve this.

Open terminal and type the following:

nano btc.sh

Then, go to my github. https://gist.github.com/teklordz/1851b5693b338d4365d8#file-coindesk-sh
copy the code and paste in terminal. 
Next, save the script with Ctrl + x then y then press enter. You must now make it executable with the following:
chmod +x btc.sh

Now you can launch the script and it will refresh (restart) every 5 seconds.  Just type ./btc.sh in terminal and the script will start. You can reduce the size of your terminal window and leave it in a corner of your screen and have instant access to the average price of Bitcoin. 

Hope you liked this tutorial. Have a great day everyone!
👍  , , , , , , ,
properties (23)
authorteklordz
permlinkbitcoin-bash-script-bash-script-price-ticker
categorybitcoin
json_metadata{"tags":["bitcoin","cryptocurrency","linux"],"image":["https://steemitimages.com/DQmXdYwYD8i9uC9uMQRDtCf2ci4Y1qx95ZzbCBg2RGJrpUX/btctoday.png"],"links":["https://davidwalsh.name/bitcoin","https://gist.github.com/teklordz/1851b5693b338d4365d8#file-coindesk-sh"],"app":"steemit/0.1","format":"markdown"}
created2017-09-24 16:33:18
last_update2017-09-24 16:33:18
depth0
children2
last_payout2017-10-01 16:33:18
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_length1,438
author_reputation5,772,583,667
root_title"Bitcoin bash script (Bash script price ticker)"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id15,809,466
net_rshares5,121,226,450
author_curate_reward""
vote details (8)
@aldebaranos ·
interesting. can i convert it to Indonesian Rupiah?
properties (22)
authoraldebaranos
permlinkre-teklordz-bitcoin-bash-script-bash-script-price-ticker-20180320t140442931z
categorybitcoin
json_metadata{"tags":["bitcoin"],"app":"steemit/0.1"}
created2018-03-20 14:04:45
last_update2018-03-20 14:04:45
depth1
children0
last_payout2018-03-27 14:04:45
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_length51
author_reputation63,662,742,919
root_title"Bitcoin bash script (Bash script price ticker)"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id45,552,498
net_rshares0
@yunkel73 ·
nice job !
👍  
properties (23)
authoryunkel73
permlinkre-teklordz-bitcoin-bash-script-bash-script-price-ticker-20170924t170528631z
categorybitcoin
json_metadata{"tags":["bitcoin"],"app":"steemit/0.1"}
created2017-09-24 17:05:30
last_update2017-09-24 17:05:30
depth1
children0
last_payout2017-10-01 17:05:30
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_length10
author_reputation236,228,207
root_title"Bitcoin bash script (Bash script price ticker)"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id15,812,237
net_rshares1,157,055,171
author_curate_reward""
vote details (1)