Subscribe to Receive Latest Posts
I do not publish a regular newsletter but If you want to to be notified when there are new posts on the site, new scripts to try and new videos on line then sign up below.
Best Regards
Steve
Last Newsletter
Hi
Many years ago I wrote a couple of python logging scripts. One was a topic logger and the other a data logger.
Both scripts took incoming MQTT JSON or string data and stored it in log files in JSON format.
I was approached last year to get the topic logger to be able to store the incoming data as CSV files which I did.
However I never updated the data logger and didn’t update the topic logger on Github.
Both scripts have now been updated and will log data in csv format if desired.
Currently incoming JSON data should be a flat JSON object and not a nested object.
As an example
{“voltage”:240,”current”:1}
will work but
{“Power:{“voltage”:240,”current”:1}}
will not.
The code to do the conversion from JSON to CSV is explained it this tutorial.
As an aside if you are using my logger scripts I would very much appreciate some feedback- just reply to this newsletter or use the suggestions page.
Node-Red Dashboard 2
The original node-red dashboard is slowly being replace by node-red dashboad2.
This is because the original dashboard was based on a version of angular that is no longer supported.
You can install node-red dashboard 2 alongside the original dashboard nodes and it would probably be a good idea to start using these nodes in preference to the original ones.
You can find out more here.
I will be working my way though this new dashboard and writing new tutorial to cover it starting in a few weeks.
Even though they will appear on my node-red site I will link to them in the newsletter.
Consulting Services and Help
I do offer consulting services and help and advice just use the Ask Steve page to get in touch.
My Other Sites
You may or may note be aware that I have two other related sites that you may find useful. They are:
Until next time.
Best Regards
Steve