Adding a new Wizkers device
As described in the documentation, adding a new Wizkers device is fairly straightforward:
- Create the front-end visualization.
- Create the front-end driver.
- Create a back-end driver for Chrome and/or server mode.
- Connect the new instrument to the front-end and server instrument managers.
The task is made easier by the fact you can use the “sample_instrument” template for most of the files. There are already a couple of devices on Wizkers which speak JSON, so getting the drivers to work literally just took a couple of minutes.
For most time visualizations, Wizkers provides a “flotplot” library, based on “Flot Charts”, which makes it super easy to add graphs in your screens: flotplot takes care of all formatting, data buffer and storage, etc. The only real task is to tell Wizkers the name of the json keys which you want to plot.
Likewise, our Ardiuno sketch outputs json data, so we can use nearly the same driver as some of the other instruments (USB geiger, Onyx, etc). A future revision of Wizkers might actually include a fully generic driver for any device that outputs JSON-formatted data, in order to make this even simpler.
Receiving the power monitor, installing it, researching online, adapting/programming a new Arduino sketch and soldering a simple radio receiver took about 3 hours.
Writing the basic visualization for a new “Power Monitor” instrument on Wizkers took about 2 hours from start to the first graph.
All in all, a good busy Sunday!