This is a followup to my previous post: DMM Logging with Web Bluetooth .
I wanted to extend the HTML interface to allow me to plot the data that is received via Bluetooth from the DMM. It seems that nowadays when I want to capture and visualize data that I'm usually using some form of IDE or dashboard in the cloud. There are many great services out there and they are very good for analysis and generating reports. For the purposes of a tool like a DMM I thought that it would be better to have a simpler interface that did not require internet/cloud connectivity and that could be reasonably portable. Since I'm starting with a browser based interface I thought that I would use JavaScript libraries to do the data plotting and analysis within the HTML code. If I use local libraries that would allow the code to be portable between computers without requiring internet connectivity.
First question was which plotting library to use. I decided to try Plotly as I have used the cloud based interface and it has both JavaScript and Python libraries available. I thought that getting things working would be fairly simple but the devil is in the details..... Getting a basic plot working was easy but doing simple things like controlling the axes configuration is something I'm still trying to figure out. And, of course, if you roll your own configuration - you only get what you implement (that's the good news and bad news).
I've now got a simple plotting interface working. I need to work on making it more configurable but I think that's something that will happen over time. I thought that I'd just share what I have at this point.
Top Comments