Puck.js Smart Meter #3894
Replies: 1 comment
-
Posted at 2021-11-17 by @gfwilliams So you mean this example? https://www.espruino.com/Smart+Meter Did you connect with WebBLE on your iPhone, or did you just use Safari? If you just used Saafari I can pretty much guarantee you it didn't connect, which is why it's not working. Just connecting with the IDE should not overwrite the existing code - however obviously if you clicked the upload button, it'd upload the new code over the old code - and since previous readings are stored in RAM they would be lost. Posted at 2021-11-17 by @gfwilliams If it's not working when you connect with your Macbook, you could look in the 'Chrome dev console' and see if any errors are reported. Typing Posted at 2021-11-17 by DanDyse Hey Gordon, thank you for getting back so quickly. Yes, the electricity meter example. Posted at 2021-11-17 by @gfwilliams Ahh, that could be it. When you connect with WebBLE and the meter viewer it shouldn't reset anything, but yes, if you re-upload code with the Web IDE then it will. You can connect with the Web IDE and it won't reset anything - just don't click the 'upload' button or type If the power runs out then the data will be lost as well. It'd definitely be possible to save the data to a file in flash memory (maybe each day at midnight) so it wasn't lost, but that wasn't implemented in the code for the tutorial. Posted at 2021-11-18 by DanDyse Maybe I am blind, but I don't see any button / option to do this. How do I connect without uploading? Attachments: Posted at 2021-11-22 by ChrisS The button should be in the upper left corner but it is missing in your screenshot. Attachments: Posted at 2021-11-25 by @gfwilliams Did you sort this out? I just tried WebBLE again here and it works fine for me - I see the connect icon Posted at 2021-11-25 by DanDyse It's been my Adblocker misinterpreting the icon. Thank you! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2021-11-17 by DanDyse
Hi,
I am trying the above example, puck is attached to the meter and blinks whenever the electricity meter is blinking. Looks good in my eyes. Unfortunately, when I try the dashboard code on my iPhone (yes, it connects) it only shows 100% battery power, everything else is black. I have let it run for 24 hours now (thought it needs some data first), but no change.
Any hint is welcome.
Btw - whenever I connect with my Macbook now (https://www.espruino.com/ide/#) it OVERWRITES the existing code on puck and all is gone. No chance to check anything. WTF?!
Cheers,
Dan
Beta Was this translation helpful? Give feedback.
All reactions