Welcome to the Cumulus Support forum.

Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080

Node-Red, writing Function nodes

From Cumulus MX version 3 build 3044 the development baton passed to Mark Crossley. Mark has been responsible for all the Builds since, and has recently released Cumulus MX version 4. He has made the code available on GitHub. It is Mark's hope that others will join in this development, but at the very least he welcomes your ideas for future developments (see Cumulus MX Development suggestions).

Moderator: mcrossley

Post Reply
rbuxton
Posts: 7
Joined: Sun 26 Mar 2017 6:15 pm
Weather Station: Davis VP2
Operating System: Debian Bookworm

Node-Red, writing Function nodes

Post by rbuxton »

I'm looking for help from anyone who is using Node-Red and MQTT. I do not know how to write the code for the Function node in order to separate out the different variables (e.g. Temp, Wind, Humidity, etc.) from the Interval and Data Update messages.

Some specific examples would help me a lot.

Thanks.
rbuxton
Posts: 7
Joined: Sun 26 Mar 2017 6:15 pm
Weather Station: Davis VP2
Operating System: Debian Bookworm

Re: Node-Red, writing Function nodes

Post by rbuxton »

I got 'er figured out. Now I can help someone else if they run in to the same mental roadblock as I did.
AndyO2
Posts: 8
Joined: Thu 12 Jan 2023 2:52 pm
Weather Station: Instromet
Operating System: Debian Bookworm

Re: Node-Red, writing Function nodes

Post by AndyO2 »

I'm expecting to look at this 'soon' - likely over the next couple of weeks. Moral support would be appreciated given previous experience of similar challenges in Node-Red. Main lesson so far is that it's best to get Node-Red to recognise the variables as natively as possible (e.g. dates as dates, rather than strings, values as such, rather than strings...)
For me it will be MQTT > Node-Red > MySQL DB.
Post Reply