Summary: We can do better
To make the experience fit your profile, pick a username and tell us what interests you.
We found and based on your interests.
update_display.luaDisplays stuffx-lua - 1.09 kB - 03/25/2017 at 11:09 |
|
|
httpget.luaPulls JSON price data from coinbasex-lua - 772.00 bytes - 03/25/2017 at 11:08 |
|
|
init.luaSets variables and wifi detailsx-lua - 195.00 bytes - 07/13/2016 at 08:26 |
|
Plug the screen into the ESP - 3.3v, GND, SCL and SDA - pin numbers for SCL and SDA can be set in the code
Flash a recent build of NodeMCU with http, cjson, bit, u8g modules plus fonts
Set your wifi details, upload the code and enjoy. The currency can be changed in httpget.lua
Create an account to leave a comment. Already have an account? Log In.
Looks like a nice product, you should probably consider accepting payment in cryptocurrency though, given your target market.
We are accepting crypto. :) Bitcoin or any altcoins. Bank transfers with traditional currencies are also possible.
Hello again. I have found a better api on coinmarketcap.com. They have al the currency.
So i wonder if it would be hard to implant ?
https://api.coinmarketcap.com/v1/ticker/bitcoin/
Kind regards Alex
BTW gets 15h runtime with deep sleep:P
Should be fairly simple, change the URL in line 1 and the 'rate' JSON source on line 9, "price_usd" is available directly, dunno about euros...
edit: https://api.coinmarketcap.com/v1/ticker/bitcoin/?convert=EUR "price_eur"
Neat.
That easy, have changed currency before on the coinbase api, I will test with this one:P Thank you
I can't seem to reply to your later comment, but you're also going to have to find a way to convert the date/time if you switch to coinmarketcap.com, 'last_updated' looks like unix time.
Hello
Nice work, i got it working after 2 days:P hehe
I have a suggestion, it would be cool if you could add 2 led´s to the project! One red and one green. So when the price goes up it will flash green or red if it goes down:P
I dont have the knowledge to implant this:(
This guy did it. but arduino coded his esp!
It would be fairly easy to implement between the current and new price but that'd mean it'll (potentially) change every minute. It would be more useful IMO to have it based on the last hour of data, if it's generally climbing or falling, but that would be a bit trickier.
edit: I'm not actively developing this, I have an ESP/OLED on my desk running this but it does what I need for now...
You are right about that. I have now completed my build, Have put it in a smal box with charge controller,700mah 1cell lipo, on/off switch. So i get about 7 1/2 hours runtime on one charge and update every minute, I have now modified the code with wifi setup, so first time you turn it on it will enter ap mode and you just connect and point it to your local wifi in a webpage:P And if it cant connect to AP then it goes back to AP mode so you can change wifi ssid. Now i testing deep sleep for 5 minutes. hope i can get some more hours. BTW i connect to my cellphone hotspot at work:P getting addicted to btc. haha
Stationary and mobile, best of to worlds:P
PANIC: unprotected error in call to Lua API (httpget.lua:9: bad argument #2 to 'format' (number expected, got string))
Do you have any idea what I've done wrong?
Not really, what does your httpget.lua look like?
I've just updated the code to deal with 4 digit prices, might be related, even though we're back below 1000 now.... try the new versions?
Okay so I've come back to this project after a hiatus, looks like it will come to work but there's the intermittent error "PANIC: unprotected error in call to Lua API (httpget.lua:7: attempt to index global 'cjson' (a nil value))".
It does not happen consistently, if i spam the reset button a few times it will usually work properly for a while.
UPDATE: Fixed by simply changing line 7 of init.lua to use sjson instead of cjson.
I got that error when i just put in the init.lua file, be sure you get all three files into the esp and reset.
There's code and pictures... What are you having trouble with?
Become a member to follow this project and never miss any updates
Hey, great little project! We've been working on a battery-powered version of this concept for some time now. We made a consumer-friendly device with lots of customization, enhancements and many APIs. We call it the TicrThing: your hands-free crypto companion.
For those who like the idea you can now get the TicrThing at https://www.ticrthing.com . However, unlike this project, ours is not yet open-source. If there is sufficient interest in our device, we will release the code and the hardware schematics for better transparency and also to give back to the community which inspired us.