Just wanted to share my NodeRED Flow that shares data from my WeatherFlow weather station to EmonCMS. The station in particular is shown here Smart Home Weather Stations_sh - WeatherFlow I have one of the earlier stations due to an indegogo campaign.
I was particularly interested in getting the solar radiation data into EmonCMS to compare my solar production to it.
The flow takes UDP data from the Wifi connected hub that is broadcast across my LAN and converts it into datapoint that can be sent to Emoncms.
Im very sure there is a more efficient way of achieving this function in NodeRed. Im more than happy to take feedback on this flow!
One thing thoughā¦ Instead of posting the raw flow data, could you post it as a file attachment?
Thatāll make it easy to get and eliminate copy/paste mistakes.
Hi Bill,
Im pretty green with NodeRed and working remotely (over a VPN) to the server so retrieving the file is a little complicated. Ill see if I can export it and move it over using some file sharing at a later date. Cheers.
I have been playing with the node-red flow posted here (thanks for doing the hard part) and expanded it to allow to monitor 2 complete stations (if you need one, just kill the parts not needed, or if you want to monitor even more, just duplicate)
It listens on a local network to the udp packages and from there you send it to your emoncms locally or remotely.
Works like a charm but choose well the input and feed names.
Full UDP api details are here if you wonder what is what: https://weatherflow.github.io/SmartWeather/api/udp.html
For us EmonCMS noobs, what exactly does one do with this file? I have the Weatherflow station, and already capture the data from the UDP broadcast, but would love to capture temp data along with power usage.
First step would be to install Node-RED on your Pi (or EmonPi, though I donāt use one, so Iām not 100% sure itās possible on one. I would imagine it is though). The instructions for that how to do that are somewhere in this forum, and probably in the main OEM guide too - but itās fairly simple. Couple of NPM install instructions, from memory.
Then once Node-RED is installed, itās just a case of visiting the IP address of your Pi on port 1880 (e.g. http://my.emonpi:1880/ or http://192.168.0.44:1880 (substitute IP or hostname for your situation). Youāll see a āconstruction kitā of sorts, but youāll just use the menu to import the flow from the document that was uploaded here, and itāll take care of it all, pretty much.
Then spend a bit of time getting your head around Node-RED and before you know it, youāll be writing your own stuff and tweaking the stuff you find.
If you want some other flows that pull data from remote weatherstations other than your own, or a flow that pulls back oodles of historical data from the PWC history-bank, Iāve got a couple of flows that might be of use. Just holler if you want to see them.
My badā¦ I donāt actually have the Weatherflow unit, so I hadnāt actually downloaded the flow myself and tested it. Doing so now, and yes, I can see the same bits of non-JSON stuff in it, and it wonāt parse correctly in my text-editorās JSON manager plugin, so yeah, youāre right - something is up with the file. Looks like both @MikeC and @bidouilleur 's versions have the same prefixed junk, so maybe itās something to do with the forum engine itself?
Off now to check that the file I recently uploaded (in a different thread) hasnāt similarly been rendered useless by whatever process is going on here!
Sorry for making assumptions! Was just trying to help because nobody had answered.
If nobody else does, Iāll try and rescue the data if at all possible, and let you know. Currently working on a Node-RED project that someone elseās has given me to play with, and itās rather occupied my time today! Need to get that working first, before I can be of much further help.
youāll have to rework it as I have several devices from weatherflow.
Youāll have to clean out what is not needed and change the names and numbers to fit your system
Resurrecting an old thread here, since Iāve moved twice, but now that Iām re-establishing my tech lab, Iād still like to be able to query the emon TSDB from an outside device, whether thatās directly as a data source in Grafana (ideal) or duplicating it into Influx somehow.