Addition of timestamps, data collection and additional data to door tutorial Puck.js #3049
Replies: 3 comments
-
|
Posted at 2019-08-06 by @gfwilliams No problem! For anyone else looking, this is the tutorial: http://www.espruino.com/Puck.js+Door+Light If you go into the Web IDE communications settings and ensure 'Set Current Time' down the bottom is enabled, then upload the following to your Puck.js: Then the Puck will start logging the time and temperature of all door openings (when the blue LED flashes). All you need to do is set it up as it was in the tutorial and then come back to it some time later with a laptop with the Web IDE. You can then connect and type It doesn't store how many times a day, but that should be easy to work out by looking at the amount of events in each day. On the phone side, the easiest solution would be to use some kind of web service that you could push the data to (do you have one that you've used before?), and then have a Web Bluetooth site. It wouldn't be totally seamless (requiring maybe 3 taps of the screen) but it is so much easier to implement because otherwise you'd be looking at a custom phone app. Does the web bluetooth site sound good as a starting point? Your other option is to use another Espruino device with Bluetooth and WiFi as a base station, but again that's more cost & work than the site. |
Beta Was this translation helpful? Give feedback.
-
|
Posted at 2019-08-07 by user101989 https://www.espruino.com/Data+Collection This is where I learnt how to leverage the puck and web bluetooth to do data collection. In addition to that I added a nodejs process that takes the data from the custom downloading site in that article and puts into a file in my computer for convenience. I found that the best way to actually get the data in a practical way. I understand that you are not computer literate and that maybe you already saw that article but if you are feeling brave and wanna dive deeper I am here to help :) |
Beta Was this translation helpful? Give feedback.
-
|
Posted at 2019-08-08 by @gfwilliams Thanks! I should have pointed to that link originally :) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2019-08-06 by jp
Hi
Unfortunately, I am not very computer literate.
Congratulations on a great product and what you have developed. It has introduced me to a new world of tinkering and having fun making stuff.
For my own use, I would like to modify some of your tutorials - I would like to use the Puck.js door opening and closing tutorial, but in addition to having the green and red LEDs light up when opening or closing the door I would like the following:
I have spent many hours going through your web material and I feel like I’m on the edge of knowing what to use from different bits but I don’t have the skill
Kind regards
JP
Beta Was this translation helpful? Give feedback.
All reactions