Welcome to the Cumulus Support forum.

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

Cumulus MX V4 beta test release 4.0.0 (build 4018) - 28 March 2024

Legacy Cumulus 1 release v1.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

Import to Cumulus FROM MQTT

A Forum to archive Cumulus MX development suggestions that have been rejected or solved by other means.
Post Reply
watsonm
Posts: 208
Joined: Sun 03 Jan 2016 3:39 pm
Weather Station: N96GY -but like Triggers Broom!!
Operating System: Raspberry Pi4 Vers:11 Bullseye
Location: Poundbury, Dorset

Import to Cumulus FROM MQTT

Post 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....
You do not have the required permissions to view the files attached to this post.
Regards Mike
Image
Raspberry Pi 4 Bullseye
Directly connected : BMP388 pressure sensor. DHT22 For internal Humidity/temp Sensor. PMS5003 Particle Sensor
Wireless connected: 3 (WS2083)Temp TXr's, WH57 Lightning Sensor, FO Solar sensor
User avatar
mcrossley
Posts: 12695
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Import to Cumulus FROM MQTT

Post 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.
watsonm
Posts: 208
Joined: Sun 03 Jan 2016 3:39 pm
Weather Station: N96GY -but like Triggers Broom!!
Operating System: Raspberry Pi4 Vers:11 Bullseye
Location: Poundbury, Dorset

Re: Import to Cumulus FROM MQTT

Post 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
Regards Mike
Image
Raspberry Pi 4 Bullseye
Directly connected : BMP388 pressure sensor. DHT22 For internal Humidity/temp Sensor. PMS5003 Particle Sensor
Wireless connected: 3 (WS2083)Temp TXr's, WH57 Lightning Sensor, FO Solar sensor
User avatar
mcrossley
Posts: 12695
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Import to Cumulus FROM MQTT

Post 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
watsonm
Posts: 208
Joined: Sun 03 Jan 2016 3:39 pm
Weather Station: N96GY -but like Triggers Broom!!
Operating System: Raspberry Pi4 Vers:11 Bullseye
Location: Poundbury, Dorset

Re: Import to Cumulus FROM MQTT

Post 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
Regards Mike
Image
Raspberry Pi 4 Bullseye
Directly connected : BMP388 pressure sensor. DHT22 For internal Humidity/temp Sensor. PMS5003 Particle Sensor
Wireless connected: 3 (WS2083)Temp TXr's, WH57 Lightning Sensor, FO Solar sensor
User avatar
mcrossley
Posts: 12695
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Import to Cumulus FROM MQTT

Post by mcrossley »

The EasyWeather file uses wind speeds in m/s - are you converting your km/h before writing to the file?
watsonm
Posts: 208
Joined: Sun 03 Jan 2016 3:39 pm
Weather Station: N96GY -but like Triggers Broom!!
Operating System: Raspberry Pi4 Vers:11 Bullseye
Location: Poundbury, Dorset

Re: Import to Cumulus FROM MQTT

Post by watsonm »

:oops: Thanks for pointing that out!!!
Regards Mike
Image
Raspberry Pi 4 Bullseye
Directly connected : BMP388 pressure sensor. DHT22 For internal Humidity/temp Sensor. PMS5003 Particle Sensor
Wireless connected: 3 (WS2083)Temp TXr's, WH57 Lightning Sensor, FO Solar sensor
watsonm
Posts: 208
Joined: Sun 03 Jan 2016 3:39 pm
Weather Station: N96GY -but like Triggers Broom!!
Operating System: Raspberry Pi4 Vers:11 Bullseye
Location: Poundbury, Dorset

Re: Import to Cumulus FROM MQTT

Post 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
Regards Mike
Image
Raspberry Pi 4 Bullseye
Directly connected : BMP388 pressure sensor. DHT22 For internal Humidity/temp Sensor. PMS5003 Particle Sensor
Wireless connected: 3 (WS2083)Temp TXr's, WH57 Lightning Sensor, FO Solar sensor
Post Reply