-->
Page 1 of 2

Get Bitcoin price

PostPosted: Sat May 13, 2017 8:31 am
by scratchrobot
Nothing fancy but i thought i should share.

Code: Select allret = wget("api.coindesk.com/v1/bpi/currentprice.json")

'change EUR to USD or GBP
wprint json(ret,"EUR.rate_float")

Re: Get Bitcoin price

PostPosted: Sat May 13, 2017 3:40 pm
by scratchrobot
Get Bitcoin price on Oled
https://youtu.be/pG4D-8lzkLc
Code: Select allmemclear
cls
oled.cls()

ret = wget("api.coindesk.com/v1/bpi/currentprice.json")
oled.print("ESP Basic 3.0.Alpha 69", 10,1)
oled.print("BTC Price", 10,18)
oled.print(json(ret,"EUR.rate_float"), 60,18)
oled.print("Your IP is:", 10,36)
oled.print(ip(), 30,48)
end


Re: Get Bitcoin price

PostPosted: Sun May 21, 2017 10:24 pm
by heckler
Very nice scratchrobot!

Thanks for sharing.
Now to get me some bitcoin!
There is a very interesting podcast episode on OmegaTau about bitcoin...
http://hwcdn.libsyn.com/p/9/5/0/9503568f5fc8473e/omegatau-59-bitcoin.mp3?c_id=3130295&expiration=1495430437&hwt=11779eda6b0579a774fc2a50d349e5e7

Lots of great episodes on http://omegataupodcast.net/ especially if you like aviation and space!

cheers
dwight

Re: Get Bitcoin price

PostPosted: Wed May 24, 2017 4:20 am
by scratchrobot
Thank you, Bitcoin is going strong like all the other crypto currencies, maybe soon i need a bigger Oled to display the price :)

http://coinmarketcap.com/

Regards,