Page 1 of 1

Import to Cumulus FROM MQTT

Posted: Fri 21 Jan 2022 10:57 am
by watsonm
Has anyone implemented a way of inputting TO CumulusMX FROM MQTT or RTL_433.

For those who have lost there Fine Offset console to old age RTL_433 will
capture the 433Mhz signals and output the data in various forms. It would be
useful to try and get this in to CumlusMX for further processing/display.

I appreciate that pressure and indoor temp will be missing....

Re: Import to Cumulus FROM MQTT

Posted: Fri 21 Jan 2022 2:13 pm
by mcrossley
I think you would have to write a receiver, then output the data to an EasyWeather format file would be the simplest solution.

Re: Import to Cumulus FROM MQTT

Posted: Fri 21 Jan 2022 3:15 pm
by watsonm
Thanks Mark,

Not being familiar with all the weather station protocols I was looking to see if I could re-purpose one.

The easyweather protocol does seem the one to look at first.

Thanks again. Mike

Re: Import to Cumulus FROM MQTT

Posted: Fri 21 Jan 2022 3:24 pm
by mcrossley
The advantage of the EasyWeather station is that it just reads the data from the first line of a file with a simple data format. No complicated comms and handshakes involved.

https://cumuluswiki.org/a/EasyWeather_F ... eather.dat

Re: Import to Cumulus FROM MQTT

Posted: Mon 24 Jan 2022 11:42 am
by watsonm
Hi Mark,
I managed to set up a Pi4 with MQTT, RTL433 and CumulMX to update a webppage with data (apart from Pressure of course!)

I knocked up an experimental python script to read the MQTT data and create an EasyWeather.dat file

However I am a little puzzled by the wind speed as I seem to have to use a Mulitplier of 0.2 to get even close the the
wind displayed by my basic station. ANy clue as to why this may be?

The wind data from the RTL dongle is labelled as :
wind_avg_km_h
wind_max_km_h

and what I am doing is slotting them into the wind average and Wind Gust locations of the .dat file with a zero in the average BFT slot

0,2022-01-23 11:21:58,2022-01-24 11:27:35,0,0,0,68,9.5,0,0,1000,1001,1.224,0,3.672,0,10,SW,0,2.4,2.4,2.40,0,0,0,

I am also puzzled as to why my rain is not being displayed but I'll work on that!!!

Thanks for any suggestions... Mike

Re: Import to Cumulus FROM MQTT

Posted: Mon 24 Jan 2022 10:03 pm
by mcrossley
The EasyWeather file uses wind speeds in m/s - are you converting your km/h before writing to the file?

Re: Import to Cumulus FROM MQTT

Posted: Tue 25 Jan 2022 5:02 pm
by watsonm
:oops: Thanks for pointing that out!!!

Re: Import to Cumulus FROM MQTT

Posted: Thu 03 Feb 2022 9:31 am
by watsonm
Job Done!

To avoid duplication here is a link to the topic in the Fine Offset group describing my progress in a bit more detail.

viewtopic.php?f=13&t=16878