Puck.js data logging #3725
Replies: 11 comments
-
Posted at 2021-06-10 by @MaBecker There is command line tool, look for Espruino Command-line tool in http://www.espruino.com/Programming https://www.npmjs.com/package/espruino you could redirect the output to a file. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2021-06-11 by user129960 Thanks for that tip, unfortunately I'm having some trouble installing the CLI b/c I can't install winnus. Log output below, any ideas?
|
Beta Was this translation helpful? Give feedback.
-
Posted at 2021-06-11 by @gfwilliams Ahh, ok - installing those tools on Windows is a bit of a pain. What I'd suggest is that you make a simple Web Bluetooth page. The code you need is basically what's in the second code example on https://www.espruino.com/Data+Collection#automatically-recovering-data And there's a bit more info on getting started on https://www.espruino.com/Web+Bluetooth However I've been asked about this a few times now, and it does make a lot of sense to have this functionality inside the Web IDE. I'll look into whether I can get an update in quickly to add the feature. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2021-06-11 by @MaBecker
That would be great to have! |
Beta Was this translation helpful? Give feedback.
-
Posted at 2021-06-11 by AkosLukacs Hey, while you are there, what about adding "simple" graph like one in MakeCode or Arduino Ide? :) |
Beta Was this translation helpful? Give feedback.
-
Posted at 2021-06-11 by @gfwilliams Ok, it's live now!
It doesn't 'stream' to a file, but realistically you could record hundreds of megabytes of data without running into any problems (and this way it's easy to integrate with the existing codebase) |
Beta Was this translation helpful? Give feedback.
-
Posted at 2021-06-11 by @fanoush Wow, many thanks :-) |
Beta Was this translation helpful? Give feedback.
-
Posted at 2021-06-11 by AkosLukacs Nice! |
Beta Was this translation helpful? Give feedback.
-
Posted at 2021-06-11 by user129960 Absolutely amazing! In all my years I've never seen such stellar support! It works perfect, thank you so much! We're working on an athlete tracking system using UWB and we need an independent way to verify system requirements when it comes to location and IMU data, and the Puck.js with this logging capability is perfect for the job. What would have taken a month with other industrial instrumentation solutions is working with literally 2 hours of effort at a fraction of the cost, I'm forever grateful and will be keeping on eye on what new capabilities you deliver. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2021-06-14 by AkosLukacs Btw, started working on a simple graphing solution like in the Micro:bit editor. Smoothie Charts, used by Micro:bit editor looks pretty nice for simple real-time graphing: http://smoothiecharts.org (MIT license) Input lines either JSON, for example A small difference compared to Micro:bit: I would open a popup, so you can resize or place the graphs where you want. Ideas, suggestions? |
Beta Was this translation helpful? Give feedback.
-
Posted at 2021-06-14 by @gfwilliams Thanks! Glad that's worked so well for you! @AkosLukacs merged - thanks! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2021-06-10 by user129960
We have an application where we would like to store the output of the accelerometer for relatively long periods of time (30 min or so) at 50ms intervals so the onboard flash won't do the trick. How do I pipe the output of the Web IDE to a file residing on the laptop's file system? All the file operation functions in the API seem to be related to local (to the Puck.js) memory. I could copy and paste from the console, but not sure how large that buffer is and anyway that's a pain.
Attachments:
Beta Was this translation helpful? Give feedback.
All reactions