Welcome to the Cumulus Support forum.

Latest Cumulus MX V4 release 4.0.1 (build 4023) - 16 May 2024

(Note that 4.1.0 (build 4024) - 05 June 2024 remains available, but usage of this version is not recommended for Davis stations - and the included utility in this distribution for migrating to v4 is known to contain errors affecting conversion of dayfile.txt)

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

Homemade weather station question

For discussion of DIY weather equipment - sensors, accessories, improvements to existing kit etc
Post Reply
nansmico
Posts: 1
Joined: Thu 16 Dec 2021 8:46 pm
Weather Station: Home made
Operating System: linux Raspbian

Homemade weather station question

Post by nansmico »

I have built my own weather station using an Arduino and a Raspberry pi. The Arduino is outdoors with the weather sensors and communicates via wireless to the pi. I have configured the Raspberry pi with Cumulus MX and displays the web pages nicely and looks like it's working properly as far as I can tell. I don't have any data going to it because I'm not sure how to do this since there is no option to select for a homemade weather station. Can someone explain to me what file needs to be updated in order for the web pages to show the data? At the moment the Arduino has been programmed to output realtime.txt format to the pi. Can this file be used?
User avatar
mcrossley
Posts: 12966
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Homemade weather station question

Post by mcrossley »

Probably the simplest way would be to use the EasyWeather station. This just reads a file for input, see - https://cumuluswiki.org/a/EasyWeather_Format
IainA_42
Posts: 4
Joined: Sat 06 May 2023 11:34 am
Weather Station: RPi Pico based PWS
Operating System: Linux (OpenSUSE)

Re: Homemade weather station question

Post by IainA_42 »

I have a RPi pico based station which can send the data to a Raspberry Pi3A running CumulusMX (from the pre-built RPi image). I can take that data and rearrange it into any format necessary, but what I'm missing is where should that data actually be for CumulusMX to read it?
water01
Posts: 3345
Joined: Sat 13 Aug 2011 9:33 am
Weather Station: Ecowitt HP2551
Operating System: Windows 10 64bit
Location: Burnham-on-Sea
Contact:

Re: Homemade weather station question

Post by water01 »

You configure it as a Davis Station see here https://www.meteocercal.info/forum/thre ... l#pid16032 (you may have to subscribe to the forum to see it).

Also look at this Topic viewtopic.php?t=12083 where Werk_AG has documented the software and hardware. I have also PMd him to see if he will help.
David
Image
User avatar
Werk_AG
Posts: 198
Joined: Sun 13 Jan 2013 8:04 pm
Weather Station: WeatherDuino 4Pro
Operating System: Windows 7
Location: Cercal CDV - Portugal
Contact:

Re: Homemade weather station question

Post by Werk_AG »

Hi water01

I agree with mcrossley, probably the easier solution is use EasyWeather station.

Configuring it as Davis Station would imply implementing on the Arduino the capability to emulate the Davis protocol, as WeatherDuino does.
Image
The freedom to choose the weather instruments you want
IainA_42
Posts: 4
Joined: Sat 06 May 2023 11:34 am
Weather Station: RPi Pico based PWS
Operating System: Linux (OpenSUSE)

Re: Homemade weather station question

Post by IainA_42 »

OK, not making myself clear so starting from scratch....
I have data from my weather station; I can take that data and write it into a file in Easyweather.dat format. Where should that file be placed in the filesystem (I'm running it on a Raspberry Pi) for Cumulus to read the file.
If I understand the setup correctly, Cumulus will read the file at one minute intervals (default) to update the dashboard. (And store the data in a database??)
At the moment it doesn't seem to read the file which is in the /home/cmx directory, although that is where I have specified the file to be.
User avatar
mcrossley
Posts: 12966
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Homemade weather station question

Post by mcrossley »

I understood it could be anywhere on your filesystem that is accessible to CMX. You just need to provide the absolute full path and filename.
watsonm
Posts: 209
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: Homemade weather station question

Post by watsonm »

I create my own data stream based on the Ecowitt data protocol and send it to:

"http://CMX_IP:8998/station/ecowitt"

I used to use easweather.dat format but have long since deleted any old files relating to this . You could try using the url above first ....

However I found that the ECowitt format was a lot more useful to me . The following link may help if you wish to give it a try. (dont forget to switch to http(ecowitt) in settings -> station setting->general)

viewtopic.php?p=169042#p169042
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
IainA_42
Posts: 4
Joined: Sat 06 May 2023 11:34 am
Weather Station: RPi Pico based PWS
Operating System: Linux (OpenSUSE)

Re: Homemade weather station question

Post by IainA_42 »

Ok, so I have a file in the right location but Cumulus doesn't seem to be referencing it. I note the wiki says the station type should be "Easyweather (using .dat file)". I don't see an entry like that in the stations list.

Note the point about Ecowitt but that just seems a a whole new lot of stuff to get to grips with at the moment!
User avatar
mcrossley
Posts: 12966
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Homemade weather station question

Post by mcrossley »

The station type is just "EasyWeather"
IainA_42
Posts: 4
Joined: Sat 06 May 2023 11:34 am
Weather Station: RPi Pico based PWS
Operating System: Linux (OpenSUSE)

Re: Homemade weather station question

Post by IainA_42 »

OK, think I'm sorted now! Most of my problems seem to stem from me using three different machines to put the system together and trying to read files on the wrong machine. Once I got my brain into gear it all looks much better!
Jimmy06
Posts: 9
Joined: Wed 09 Dec 2009 4:25 am
Weather Station: Arduino DIY
Operating System: Debian 12

Re: Homemade weather station question

Post by Jimmy06 »

I've written some Arduino code that sends direct to cumulus using the Ecowitt protocol.

Much easier to use one thing instead of more.
ysam
Posts: 3
Joined: Mon 20 May 2024 11:15 am
Weather Station: Raspberry PIs with I2c Sensors
Operating System: Debian 11/12

Re: Homemade weather station question

Post by ysam »

Latest developments on the topic suggest best way is to use JSON Data Station type and for me MQTT Works like a charm.(If you are running on RPi)

Only problem now is that we need either JSON Data (with mqtt) for extra sensors in order to be able to bring feed lightning sensor and others.
BMP388: Alt, Baro, Temp
BME680: Hum, Press, Temp, AirQ
AS3935: Lightning Sensor
SPS30: Particle Matter
BMP280+LTR390: Temp, Humidity, Baro, UV, Illuminance
MCP3008 A/D on SPI: Wind Speed, Wind Direction, Rain
DS18B20 1-Wire: Ground Temp
Post Reply