My little weather station setup - looking for improvement ideas

Alles, was keinem Spezialbereich zugeordnet werden kann. Hier gehören keine Themen hin, die ein eigenes Fachforum haben. Deshalb ist dieses Forum moderiert.
Antworten
Psyt0s
Offline
Beiträge: 1
Registriert: 10 Jun 2025, 10:23

My little weather station setup - looking for improvement ideas

#1

Beitrag von Psyt0s »

Hey everyone! I know this is a german forum, hope its ok to write in english. If you prefer I can translate the text next time. Thought I'd share my current weather monitoring setup and see if anyone has suggestions for improvements.

Hardware:

Raspberry Pi Zero with a Weather HAT (temperature, humidity, pressure, light sensors)
Been running continuously since January 2024 and collecting data every minute

Data Collection:
The Pi runs a Python script that reads the sensors and handles a few things:

Collects sensor data
Calculates dew point and "feels like" temperature
Stores everything in a local PostgreSQL database

Data Storage & Sharing:

Local PostgreSQL database on the Pi
Set up replication to another PostgreSQL instance on a VM in my home-server
Also uploads readings to Weather Underground and OpenWeatherMap every minute.

Data Visualization:

Integration with Grafana and PostgreSQL as a data source.

Anyone running similar setups? Any suggestions for improvements or additional metrics worth tracking?
Also any other services i should integrate with?
ProfMobilux
Offline
Beiträge: 18
Registriert: 29 Jul 2024, 21:07
Hat sich bedankt: 2 mal
Danksagung erhalten: 5 mal

Re: My little weather station setup - looking for improvement ideas

#2

Beitrag von ProfMobilux »

We created a project very similar to your approach, but focus was sensor selection: https://wiki.loxberry.de/howtos_knowled ... tion/start

I would prefer to seperate the sensors from the data storage. Reading the sensors can be done easily with an ESP32 whch sends data to a MQTT Broker on a NAS or separate Raspberry (located protected inside). From the Broker to the database. The databse on the sdcard will destroy the card sooner or later. SDCards have limited write cycles. 100% Data loss will be the result. Use a SSD for storage.

As database I would use Influx instead of PostgreSQL. SQL isn‘t needed for storing timeseries data. Influx is perfect optimized for that. And you can use data aggregation for older data.
Benutzeravatar
Gyvate
Offline
Beiträge: 3857
Registriert: 10 Aug 2021, 23:41
Wohnort: Saarbrücken
Hat sich bedankt: 14 mal
Danksagung erhalten: 553 mal
Kontaktdaten:

Re: My little weather station setup - looking for improvement ideas

#3

Beitrag von Gyvate »

ProfMobilux hat geschrieben: 22 Jun 2025, 14:35 We created a project very similar to your approach, but focus was sensor selection: https://wiki.loxberry.de/howtos_knowled ... tion/start

I would prefer to seperate the sensors from the data storage. Reading the sensors can be done easily with an ESP32 whch sends data to a MQTT Broker on a NAS or separate Raspberry (located protected inside). From the Broker to the database. The databse on the sdcard will destroy the card sooner or later. SDCards have limited write cycles. 100% Data loss will be the result. Use a SSD for storage.

As database I would use Influx instead of PostgreSQL. SQL isn‘t needed for storing timeseries data. Influx is perfect optimized for that. And you can use data aggregation for older data.
only cheap SD cards will be destroyed by often repeated read/write processes.
Of course one can use a SSD, but a proper professional industrial SLC SD card will also do the job.
That's why e.g. the Meteobridge datalogger/weather server makes industrial SLC SD cards mandatory for use in the appliances or RaspberryPi installations !
Ecowitt Konsolen und Sensoren
WS2320E, HP2553, HP3501, WN1910, WN1980, WN1820, WS3800, WS3910, WH2810,
GW1000, GW1100, GW1200, GW2000, GW3000, WH2650,WS6210,
WS68, WS69, WS80, WS85, WS90,
WN30, WH31[EP], WH32[EP], WN32P, WN34L, WN34S,WN34D, WN35, WH41, WH45, WH46D, WH51, WH55, WH57, LDS01
Meteobridge Pro, MB RPi (2), MB VM, Weewx v4, CumulusMX v3, CumulusMX v4
Barani MeteoShield Pro (G2 + G3), MetSpec Rad02, SIAP SMarTCELLino,
Personal Weather Tablet(PWT), FOSHKplugin, Dracal BAR20
Weather Landing page: http://meshka.eu
Ecowitt WiKi Englisch: http://meshka.eu/Ecowitt/dokuwiki
ProfMobilux
Offline
Beiträge: 18
Registriert: 29 Jul 2024, 21:07
Hat sich bedankt: 2 mal
Danksagung erhalten: 5 mal

Re: My little weather station setup - looking for improvement ideas

#4

Beitrag von ProfMobilux »

Gyvate hat geschrieben: 22 Jun 2025, 17:57 only cheap SD cards will be destroyed by often repeated read/write processes.
Of course one can use a SSD, but a proper professional industrial SLC SD card will also do the job.
No, it doesn‘t. It‘s far better - right. But it cannot resist database applications. Beside the speed problem SDCards have with small write accesses. The only option is to use a SSD.
Benutzeravatar
Gyvate
Offline
Beiträge: 3857
Registriert: 10 Aug 2021, 23:41
Wohnort: Saarbrücken
Hat sich bedankt: 14 mal
Danksagung erhalten: 553 mal
Kontaktdaten:

Re: My little weather station setup - looking for improvement ideas

#5

Beitrag von Gyvate »

ProfMobilux hat geschrieben: 22 Jun 2025, 22:28
Gyvate hat geschrieben: 22 Jun 2025, 17:57 only cheap SD cards will be destroyed by often repeated read/write processes.
Of course one can use a SSD, but a proper professional industrial SLC SD card will also do the job.
No, it doesn‘t. It‘s far better - right. But it cannot resist database applications. Beside the speed problem SDCards have with small write accesses. The only option is to use a SSD.
Of course, you know it better than the experts who are using it and have tested it in different scenarios .... :prayer:
Such apodictic statements don't really show expertise. Especially when practical examples show the opposite.

But, of course, a SSD can be used and may have a better I/O performance - but it's definitely NOT the only option. Maybe your only personal option. And if a high performance is needed in the first place or is just hardware overkill is still another question.
Plus, an average user may have difficulties to get a RPi boot from a SSD as it doesn't do it out of the box - not everyone is the top expert in this area.

I'm not saying that a SSD cannot be a good and feasible solution, but the only one ....??? Simply not true as many cases in practice show - and without significant performance issues.
Ecowitt Konsolen und Sensoren
WS2320E, HP2553, HP3501, WN1910, WN1980, WN1820, WS3800, WS3910, WH2810,
GW1000, GW1100, GW1200, GW2000, GW3000, WH2650,WS6210,
WS68, WS69, WS80, WS85, WS90,
WN30, WH31[EP], WH32[EP], WN32P, WN34L, WN34S,WN34D, WN35, WH41, WH45, WH46D, WH51, WH55, WH57, LDS01
Meteobridge Pro, MB RPi (2), MB VM, Weewx v4, CumulusMX v3, CumulusMX v4
Barani MeteoShield Pro (G2 + G3), MetSpec Rad02, SIAP SMarTCELLino,
Personal Weather Tablet(PWT), FOSHKplugin, Dracal BAR20
Weather Landing page: http://meshka.eu
Ecowitt WiKi Englisch: http://meshka.eu/Ecowitt/dokuwiki
ProfMobilux
Offline
Beiträge: 18
Registriert: 29 Jul 2024, 21:07
Hat sich bedankt: 2 mal
Danksagung erhalten: 5 mal

Re: My little weather station setup - looking for improvement ideas

#6

Beitrag von ProfMobilux »

Apperently you are not one of those experts. So you shouldn‘t write down your Google knowledge here and tell everyone that this is what experts say. You apperently do not know anything about Databases and their functionallity.

There‘s absolutely no need to boot a Pi from SSD. You may google for that, too.
Zuletzt geändert von ProfMobilux am 25 Jun 2025, 15:26, insgesamt 2-mal geändert.
Benutzeravatar
Gyvate
Offline
Beiträge: 3857
Registriert: 10 Aug 2021, 23:41
Wohnort: Saarbrücken
Hat sich bedankt: 14 mal
Danksagung erhalten: 553 mal
Kontaktdaten:

Re: My little weather station setup - looking for improvement ideas

#7

Beitrag von Gyvate »

I hold it with the Roman philosopher Boethius "o si tacuisses philosophus mansisses". 8-)
With my professional background I don't need Google nor a self-proclaimed database expert who tells me what works in this context and what doesn't ... We are not talking SAP HANA here, even though that's one of the fields of my expertise ...
Hence, I don't know anything about databases and DB applications as per you. Interesting perception.
Your apodictic wording and terms speak for themselves.
You want to know it better, so be it - I can live with that.
Discussion closed from my end
Ecowitt Konsolen und Sensoren
WS2320E, HP2553, HP3501, WN1910, WN1980, WN1820, WS3800, WS3910, WH2810,
GW1000, GW1100, GW1200, GW2000, GW3000, WH2650,WS6210,
WS68, WS69, WS80, WS85, WS90,
WN30, WH31[EP], WH32[EP], WN32P, WN34L, WN34S,WN34D, WN35, WH41, WH45, WH46D, WH51, WH55, WH57, LDS01
Meteobridge Pro, MB RPi (2), MB VM, Weewx v4, CumulusMX v3, CumulusMX v4
Barani MeteoShield Pro (G2 + G3), MetSpec Rad02, SIAP SMarTCELLino,
Personal Weather Tablet(PWT), FOSHKplugin, Dracal BAR20
Weather Landing page: http://meshka.eu
Ecowitt WiKi Englisch: http://meshka.eu/Ecowitt/dokuwiki
ProfMobilux
Offline
Beiträge: 18
Registriert: 29 Jul 2024, 21:07
Hat sich bedankt: 2 mal
Danksagung erhalten: 5 mal

Re: My little weather station setup - looking for improvement ideas

#8

Beitrag von ProfMobilux »

Gyvate hat geschrieben: 25 Jun 2025, 14:44 Discussion closed from my end
Thanks for that.
icedeerreindeer
Offline
Beiträge: 1
Registriert: 10 Jan 2024, 12:49

Re: My little weather station setup - looking for improvement ideas

#9

Beitrag von icedeerreindeer »

I am running a similar setup software side (Node-RED/InfluxDB/Grafana). Additionally, I am pulling API data (open data) from the national official weather service and writing it also into InfluxDB via Node-RED for sensors that my personal weather station doesn't have (e.g. sunshine duration, cloud coverage, weather alerts...). Luckily this weather station is located very close to me. All this data tied together, results in a pretty complete weather dashboard in my opinion.

Bild
Antworten