Author Topic: CumulusMX on a raspberry pi zero 2W  (Read 1666 times)

0 Members and 1 Guest are viewing this topic.

Offline gszlag

  • Senior Contributor
  • ****
  • Posts: 288
  • ..have you calibrated your barometer today?
    • Michael's Bay - Manitoulin Island weather
CumulusMX on a raspberry pi zero 2W
« on: December 06, 2021, 07:03:36 PM »
Just did a CMX install on the new rpi zero 2W.

Installed raspberry pi os (Bullseye).

Some comments and caveats:

Since I needed to run the rpi "headless" (no monitor or keyboard ), I used the built-in vnc server so I can remote in from Windows or mac os.

The issue I had with Debian Bulseye is the size of the virtual desktop which was permanently fixed at a postage size desktop, After trying all the various fixes for a couple days, I gave up and went back  to Buster - which worked perfectly - just like my rpi 3B+.

Bullseye had some other issues - the package manager could not install software properly or if installed - would not run. Generally, I was disappointed with Bullseye. Hopefully they can fix it. There are some grumblings on the 'net...

Just some cautions with the zero 2W. You've only got 512MB memory to play with and even though the desktop loads amazingly fast, running multiple gui apps might be a bit much. You should run only one app at a time.

I can definitely tell you that running the  Chromium browser and Synaptic at the same time  crushed this tiny card and it hung.

Still though, an amazing computer for $15USD (if you can find one!)

No issues with installing or running the latest CMX build (Cumulus MX v3.14.0 build 3159, 04-December-2021).

It would be interesting to see if it could run WeeWX at the same time as CMX. Currently , WeeWX is running on my 3B+.

The raspberry pi zero 2W can now take over the duties from my old i7 Lenovo gaming laptop.
--
Ambient Weather WS-2000
Ecowitt GW1000/GW1100
Ecowitt WS68: Anemometer, UV/solar
Ecowitt WH40: Rain gauge
Ecowitt WH57 Lightning sensor
Ecowitt WH32E: Outside T & H sensor
Stratus Rain Gauge (manual)
Raspberry Pi 3B+ (WeeWX/CumulusMX)
Raspberry Pi Zero 2W WeeWX/MQTT/Belchertown)
---
http://weather.glenns.ca (pwsdashboard - live)
http://weewx.glenns.ca
http://glenns.ca/cumulusmx2/index.htm
---
Uploading to: AWN, ecowitt.net, Weather Underground, PWSweather.com, AWEKAS, Windy.com, WOW

Offline davidmc36

  • He who dies with the most toys wins!
  • Forecaster
  • *****
  • Posts: 1042
  • FN25ie61jw
    • MorewoodW34
Re: CumulusMX on a raspberry pi zero 2W
« Reply #1 on: December 06, 2021, 08:15:37 PM »
I have a Zero running I think over a year pushing Cumulus. I never tried anything other than Buster.

Definitely shines as a dedicated device. Not a multitasker lol

I did crank WeeWx up with it at one point but never tried both together.

Offline gszlag

  • Senior Contributor
  • ****
  • Posts: 288
  • ..have you calibrated your barometer today?
    • Michael's Bay - Manitoulin Island weather
Re: CumulusMX on a raspberry pi zero 2W
« Reply #2 on: December 14, 2021, 02:11:37 PM »
I have a Zero running I think over a year pushing Cumulus. I never tried anything other than Buster.

Definitely shines as a dedicated device. Not a multitasker lol

I did crank WeeWx up with it at one point but never tried both together.
I agree. Nope - not a desktop replacement!

But it will run WeeWX ( using Gary's excellent GW1000/GW1100 API driver) AND Cumulus MX simultaneously.

Will put more load on WeeWX and see if it can also ftp to my web site every 60 seconds or so.
Ambient Weather WS-2000
Ecowitt GW1000/GW1100
Ecowitt WS68: Anemometer, UV/solar
Ecowitt WH40: Rain gauge
Ecowitt WH57 Lightning sensor
Ecowitt WH32E: Outside T & H sensor
Stratus Rain Gauge (manual)
Raspberry Pi 3B+ (WeeWX/CumulusMX)
Raspberry Pi Zero 2W WeeWX/MQTT/Belchertown)
---
http://weather.glenns.ca (pwsdashboard - live)
http://weewx.glenns.ca
http://glenns.ca/cumulusmx2/index.htm
---
Uploading to: AWN, ecowitt.net, Weather Underground, PWSweather.com, AWEKAS, Windy.com, WOW

Offline mcrossley

  • Forecaster
  • *****
  • Posts: 935
    • Wilmslow Astro
Re: CumulusMX on a raspberry pi zero 2W
« Reply #3 on: December 14, 2021, 04:13:05 PM »
The Zero 2W is much more capable than the original Zero W.

The original with it's single slow CPU would run Cumulus, but it was slow, for instance asking it to do an extended historic data catch-up would tax it. The day rollover processing for instance would take long enough that the history data stream from Davis stations could time out and CMX would have to restart it.

And asking it to process multiple years of data to extract records allowed you to go and make a meal (and eat it) before it finished!
Mark

Offline gszlag

  • Senior Contributor
  • ****
  • Posts: 288
  • ..have you calibrated your barometer today?
    • Michael's Bay - Manitoulin Island weather
Re: CumulusMX on a raspberry pi zero 2W
« Reply #4 on: December 14, 2021, 04:53:06 PM »
The Zero 2W is much more capable than the original Zero W.

The original with it's single slow CPU would run Cumulus, but it was slow, for instance asking it to do an extended historic data catch-up would tax it. The day rollover processing for instance would take long enough that the history data stream from Davis stations could time out and CMX would have to restart it.

And asking it to process multiple years of data to extract records allowed you to go and make a meal (and eat it) before it finished!
Overall, quite happy with it. Considering it is running a desktop, CMX and WeeWX, I still have half of the memory remaining and CPU is still cycling in the single digits.
Speaking of slow..try running Chromium.. I have since uninstalled it and replaced the browser with something far more lightweight -Midori. Other stuff could be removed from the desktop too.

If I was a command line comando well, the desktop would go obviously but so far..so good.
Ambient Weather WS-2000
Ecowitt GW1000/GW1100
Ecowitt WS68: Anemometer, UV/solar
Ecowitt WH40: Rain gauge
Ecowitt WH57 Lightning sensor
Ecowitt WH32E: Outside T & H sensor
Stratus Rain Gauge (manual)
Raspberry Pi 3B+ (WeeWX/CumulusMX)
Raspberry Pi Zero 2W WeeWX/MQTT/Belchertown)
---
http://weather.glenns.ca (pwsdashboard - live)
http://weewx.glenns.ca
http://glenns.ca/cumulusmx2/index.htm
---
Uploading to: AWN, ecowitt.net, Weather Underground, PWSweather.com, AWEKAS, Windy.com, WOW

Offline box

  • Senior Contributor
  • ****
  • Posts: 255
Re: CumulusMX on a raspberry pi zero 2W
« Reply #5 on: December 14, 2021, 06:00:24 PM »
Interesting discussion

Just starting to look at raspberry pi as an alternative to my pc

Which spec is best, just to run cmx and feed the various weather services from cmx? Is a raspberry 4 overkill?

Doesn't have to be WiFi, ethernet is available, really only using it for logging

How do you backup from the pi? I assume the logging is to an SD card initially, or would an external USB drive be better? Currently I use a cloud service as backup, can pi do that?

Been a long time since I dabbled in Linux and i am unfamiliar with the Linux distributions that run on a pi

Some pointers would be gratefully received!

Offline gszlag

  • Senior Contributor
  • ****
  • Posts: 288
  • ..have you calibrated your barometer today?
    • Michael's Bay - Manitoulin Island weather
Re: CumulusMX on a raspberry pi zero 2W
« Reply #6 on: December 14, 2021, 06:52:36 PM »
Interesting discussion

Just starting to look at raspberry pi as an alternative to my pc

Which spec is best, just to run cmx and feed the various weather services from cmx? Is a raspberry 4 overkill?

Doesn't have to be WiFi, ethernet is available, really only using it for logging

How do you backup from the pi? I assume the logging is to an SD card initially, or would an external USB drive be better? Currently I use a cloud service as backup, can pi do that?

Been a long time since I dabbled in Linux and i am unfamiliar with the Linux distributions that run on a pi

Some pointers would be gratefully received!
If you are will be using the pi as strictlly a dedicated weather appliance then yeah, anything more would be overkill.

The rpi zero 2W has limited ports - just 1 USB2.0 and no ethernet so unless you want to add ports with an expansion HAT it would be easier to use WiFi and use the USB port for backup purposes. For more USB ports you can plug in a mini USB hub. Make sure it is the OTG type. Not sure about cloud backup maybe someone else can answer?

You do not want to backup to a SD card in case it fails/wears out, etc.

There is lots and lots of linux backup software to choose from.

The rpi zero has only 512MB memory so you have to go with a lightweight linux distro. As mentioned, you can install Raspberry Pi OS but there are lighter distros out there.

If you go with a rpi 4 you can install any "full" linux distro and easily run most things.

If you want to try out a linux distro without installing anything make yourself a live persistent USB drive that can run under Windows or mac os.. I ran CumulusMX for quite a few months from a linux USB distro.You can do the same and try it out.

EDIT: Here is a great resource for the zero 2W:
https://picockpit.com/raspberry-pi/everything-about-raspberry-pi-zero-2-w/
« Last Edit: December 15, 2021, 07:18:32 AM by gszlag »
Ambient Weather WS-2000
Ecowitt GW1000/GW1100
Ecowitt WS68: Anemometer, UV/solar
Ecowitt WH40: Rain gauge
Ecowitt WH57 Lightning sensor
Ecowitt WH32E: Outside T & H sensor
Stratus Rain Gauge (manual)
Raspberry Pi 3B+ (WeeWX/CumulusMX)
Raspberry Pi Zero 2W WeeWX/MQTT/Belchertown)
---
http://weather.glenns.ca (pwsdashboard - live)
http://weewx.glenns.ca
http://glenns.ca/cumulusmx2/index.htm
---
Uploading to: AWN, ecowitt.net, Weather Underground, PWSweather.com, AWEKAS, Windy.com, WOW

Offline box

  • Senior Contributor
  • ****
  • Posts: 255
Re: CumulusMX on a raspberry pi zero 2W
« Reply #7 on: December 15, 2021, 05:01:25 AM »
Interesting discussion

Just starting to look at raspberry pi as an alternative to my pc

Which spec is best, just to run cmx and feed the various weather services from cmx? Is a raspberry 4 overkill?

Doesn't have to be WiFi, ethernet is available, really only using it for logging

How do you backup from the pi? I assume the logging is to an SD card initially, or would an external USB drive be better? Currently I use a cloud service as backup, can pi do that?

Been a long time since I dabbled in Linux and i am unfamiliar with the Linux distributions that run on a pi

Some pointers would be gratefully received!
If you are will be using the pi as strictlly a dedicated weather appliance then yeah, anything more would be overkill.

The rpi zero 2W has limited ports - just 1 USB2.0 and no ethernet so unless you want to add ports with an expansion HAT it would be easier to use WiFi and use the USB port for backup purposes. For more USB ports you can plug in a mini USB hub. Make sure it is the OTG type. Not sure about cloud backup maybe someone else can answer?

You do not want to backup to a SD card in case it fails/wears out, etc.

There is lots and lots of linux backup software to choose from.

The rpi zero has only 512MB memory so you have to go with a lightweight linux distro. As mentioned, you can install Raspberry Pi OS but there are lighter distros out there.

If you go with a rpi 4 you can install any "full" linux distro and easily run most things.

If you want to try out a linux distro without installing anything make yourself a live persistent USB drive that can run under Windows or mac os.. I ran CumulusMX for quite a few months from a linux USB distro.You can do the same and try it out.

Thanks for the advice, saved me hours of research!!

I like the idea of a USB distro, I have done that before in the distant past - Lubuntu IIRC, trying to rescue a very old laptop!!

Offline gszlag

  • Senior Contributor
  • ****
  • Posts: 288
  • ..have you calibrated your barometer today?
    • Michael's Bay - Manitoulin Island weather
Re: CumulusMX on a raspberry pi zero 2W
« Reply #8 on: December 17, 2021, 02:34:28 PM »
I have a Zero running I think over a year pushing Cumulus. I never tried anything other than Buster.

Definitely shines as a dedicated device. Not a multitasker lol

I did crank WeeWx up with it at one point but never tried both together.

Will put more load on WeeWX and see if it can also ftp to my web site every 60 seconds or so.
I can confirm both CumulusMX and WeeWX can happily co-exist on the rpi zero 2W:

Cumulus MX:
http://glenns.ca/cumulusmx2/index.htm

WeeWX:
http://weewx2.glenns.ca/index.html
--
Ambient Weather WS-2000
Ecowitt GW1000/GW1100
Ecowitt WS68: Anemometer, UV/solar
Ecowitt WH40: Rain gauge
Ecowitt WH57 Lightning sensor
Ecowitt WH32E: Outside T & H sensor
Stratus Rain Gauge (manual)
Raspberry Pi 3B+ (WeeWX/CumulusMX)
Raspberry Pi Zero 2W WeeWX/MQTT/Belchertown)
---
http://weather.glenns.ca (pwsdashboard - live)
http://weewx.glenns.ca
http://glenns.ca/cumulusmx2/index.htm
---
Uploading to: AWN, ecowitt.net, Weather Underground, PWSweather.com, AWEKAS, Windy.com, WOW

Offline davidmc36

  • He who dies with the most toys wins!
  • Forecaster
  • *****
  • Posts: 1042
  • FN25ie61jw
    • MorewoodW34
Re: CumulusMX on a raspberry pi zero 2W
« Reply #9 on: December 17, 2021, 03:28:30 PM »
Cool  [tup]

How are they receiving Data? Each software with data coming in a different port? IP?

Offline gszlag

  • Senior Contributor
  • ****
  • Posts: 288
  • ..have you calibrated your barometer today?
    • Michael's Bay - Manitoulin Island weather
Re: CumulusMX on a raspberry pi zero 2W
« Reply #10 on: December 17, 2021, 03:49:02 PM »
Cool  [tup]

How are they receiving Data? Each software with data coming in a different port? IP?

Everything left on default settings.
Both get their data from the same Ecowitt GW1100.
I reserved a local IP so both programs can see the GW1100..just a personal preference I guess... rather than using network discovery.
Not hosting this - using a remote web host.
Other than struggling with Debian Bullseye and reverting back to Buster ,everything worked OOTB.
Ambient Weather WS-2000
Ecowitt GW1000/GW1100
Ecowitt WS68: Anemometer, UV/solar
Ecowitt WH40: Rain gauge
Ecowitt WH57 Lightning sensor
Ecowitt WH32E: Outside T & H sensor
Stratus Rain Gauge (manual)
Raspberry Pi 3B+ (WeeWX/CumulusMX)
Raspberry Pi Zero 2W WeeWX/MQTT/Belchertown)
---
http://weather.glenns.ca (pwsdashboard - live)
http://weewx.glenns.ca
http://glenns.ca/cumulusmx2/index.htm
---
Uploading to: AWN, ecowitt.net, Weather Underground, PWSweather.com, AWEKAS, Windy.com, WOW

Offline BackWoodsTech

  • Member
  • *
  • Posts: 15
Re: CumulusMX on a raspberry pi zero 2W
« Reply #11 on: January 21, 2022, 01:03:00 PM »
@gszlag
have you tried or are you able to log data from the GW1100 to the pi zero 2w?

Offline gszlag

  • Senior Contributor
  • ****
  • Posts: 288
  • ..have you calibrated your barometer today?
    • Michael's Bay - Manitoulin Island weather
Re: CumulusMX on a raspberry pi zero 2W
« Reply #12 on: January 21, 2022, 04:19:45 PM »
@gszlag
have you tried or are you able to log data from the GW1100 to the pi zero 2w?
Think of the GW1100 as a displayless console. The two software packages that I mentioned previously are WeeWX and Cumulus MX. They are sometimes referred to as "logger" software but they do much more than just logging data. In WeeWX you would install the GW1000/1100API driver(on github) to retrieve the data as fast as my weather station can produce it. The data is stored in the WeeWX database which is local to your machine.
For Cumulus MX the process is even simpler - just give the local IP address of the GW1100 and you are done. As in WeeWX, Cumulus MX stores/logs the GW1100 data in a local database.   
If you are looking to buy a raspberry pi as a dedicated weather appliance, you will want to back up these databases and other key files from time to time.                                                                             
Ambient Weather WS-2000
Ecowitt GW1000/GW1100
Ecowitt WS68: Anemometer, UV/solar
Ecowitt WH40: Rain gauge
Ecowitt WH57 Lightning sensor
Ecowitt WH32E: Outside T & H sensor
Stratus Rain Gauge (manual)
Raspberry Pi 3B+ (WeeWX/CumulusMX)
Raspberry Pi Zero 2W WeeWX/MQTT/Belchertown)
---
http://weather.glenns.ca (pwsdashboard - live)
http://weewx.glenns.ca
http://glenns.ca/cumulusmx2/index.htm
---
Uploading to: AWN, ecowitt.net, Weather Underground, PWSweather.com, AWEKAS, Windy.com, WOW

Offline BackWoodsTech

  • Member
  • *
  • Posts: 15
Re: CumulusMX on a raspberry pi zero 2W
« Reply #13 on: January 21, 2022, 05:11:53 PM »
Thanks a bunch...I feel like after months if not years of searching and giving up I'm finally able to see a way forward that addresses my goals.

Do both of those options write to the same DB type?
Do either offer any basic analytics on their own?I'm looking to keep this all in house without pushing to the cloud, at least for now.

Offline gszlag

  • Senior Contributor
  • ****
  • Posts: 288
  • ..have you calibrated your barometer today?
    • Michael's Bay - Manitoulin Island weather
Re: CumulusMX on a raspberry pi zero 2W
« Reply #14 on: January 21, 2022, 06:01:23 PM »
Thanks a bunch...I feel like after months if not years of searching and giving up I'm finally able to see a way forward that addresses my goals.

Do both of those options write to the same DB type?
Do either offer any basic analytics on their own?I'm looking to keep this all in house without pushing to the cloud, at least for now.

WeeWX can use either MySQL or SQLite. I may have to correct myself for CumulusMX. I am a new user of Cumulus MX so I may not have it right. The data is stored locally but can be exported to a MySQL database. Perhaps others can do a better job of describing what the native data format is..tables?

The best way is to look at some cumulus mx and weewx websites that are online.

http://weewx.com/showcase.html
https://cumuluswiki.org/a/Cumulus_Users

« Last Edit: January 21, 2022, 06:58:42 PM by gszlag »
Ambient Weather WS-2000
Ecowitt GW1000/GW1100
Ecowitt WS68: Anemometer, UV/solar
Ecowitt WH40: Rain gauge
Ecowitt WH57 Lightning sensor
Ecowitt WH32E: Outside T & H sensor
Stratus Rain Gauge (manual)
Raspberry Pi 3B+ (WeeWX/CumulusMX)
Raspberry Pi Zero 2W WeeWX/MQTT/Belchertown)
---
http://weather.glenns.ca (pwsdashboard - live)
http://weewx.glenns.ca
http://glenns.ca/cumulusmx2/index.htm
---
Uploading to: AWN, ecowitt.net, Weather Underground, PWSweather.com, AWEKAS, Windy.com, WOW

Offline mcrossley

  • Forecaster
  • *****
  • Posts: 935
    • Wilmslow Astro
Re: CumulusMX on a raspberry pi zero 2W
« Reply #15 on: January 21, 2022, 06:38:38 PM »
Cumulus MX stores the data primarily to CSV files, but it can also push it to MySQL at the same time - you provide the database. It can also push it to an MQTT server for onward reception if that is your bag.

CMX runs as a console application with no direct GUI, it has an internal mini web server that you connect to in order to configure it and view real time data, graphs, stats, reports etc.

It will process "template" files and populate them with data in format you define, or it has a local API you can query to retrieve data on the fly.

I hope that gives you flavour of the capabilities.

Weewx of course can also do very similar things.
Mark

Offline davidmc36

  • He who dies with the most toys wins!
  • Forecaster
  • *****
  • Posts: 1042
  • FN25ie61jw
    • MorewoodW34
Re: CumulusMX on a raspberry pi zero 2W
« Reply #16 on: January 21, 2022, 07:14:30 PM »
This link is Cumulus that is pushed to my website.

http://www.morewoodweather.ca/CumulusMX/gauges.htm

Data is stored on the Pi Zero It gets to my site by FTP. Cumulus does all the work. It's good for dummies like me lol. It has many more capabilities too.
« Last Edit: January 21, 2022, 07:17:08 PM by davidmc36 »

Offline BackWoodsTech

  • Member
  • *
  • Posts: 15
Re: CumulusMX on a raspberry pi zero 2W
« Reply #17 on: January 22, 2022, 01:48:07 PM »

I may have missed it, but are you using the rpi 0 USB port to power the GW1100?

Thanks for answering my questions!
Thanks a bunch...I feel like after months if not years of searching and giving up I'm finally able to see a way forward that addresses my goals.

Do both of those options write to the same DB type?
Do either offer any basic analytics on their own?I'm looking to keep this all in house without pushing to the cloud, at least for now.

WeeWX can use either MySQL or SQLite. I may have to correct myself for CumulusMX. I am a new user of Cumulus MX so I may not have it right. The data is stored locally but can be exported to a MySQL database. Perhaps others can do a better job of describing what the native data format is..tables?

The best way is to look at some cumulus mx and weewx websites that are online.

http://weewx.com/showcase.html
https://cumuluswiki.org/a/Cumulus_Users

Offline gszlag

  • Senior Contributor
  • ****
  • Posts: 288
  • ..have you calibrated your barometer today?
    • Michael's Bay - Manitoulin Island weather
Re: CumulusMX on a raspberry pi zero 2W
« Reply #18 on: January 23, 2022, 07:33:40 AM »
Quote
I may have missed it, but are you using the rpi 0 USB port to power the GW1100?

@BackWoodsTech

No. I have a GW1000 and GW1100 - all powered independently. I prefer the less-is-more philosophy avoiding the octopus of cables from a hub. I use the rpi USB port for a USB flash drive and operate the rpi headless  The raspberry pi OS has a VNC server already installed so all you need to do is enable it - install the VNC client (linux, Windows. or Mac version) on your other computer and remote in. No need for monitor keyboard or mouse.
Or, if you are a CLI person you can remote in using SSH.
Ambient Weather WS-2000
Ecowitt GW1000/GW1100
Ecowitt WS68: Anemometer, UV/solar
Ecowitt WH40: Rain gauge
Ecowitt WH57 Lightning sensor
Ecowitt WH32E: Outside T & H sensor
Stratus Rain Gauge (manual)
Raspberry Pi 3B+ (WeeWX/CumulusMX)
Raspberry Pi Zero 2W WeeWX/MQTT/Belchertown)
---
http://weather.glenns.ca (pwsdashboard - live)
http://weewx.glenns.ca
http://glenns.ca/cumulusmx2/index.htm
---
Uploading to: AWN, ecowitt.net, Weather Underground, PWSweather.com, AWEKAS, Windy.com, WOW

Offline BackWoodsTech

  • Member
  • *
  • Posts: 15
Re: CumulusMX on a raspberry pi zero 2W
« Reply #19 on: January 23, 2022, 08:57:07 AM »
@gszlag
Haha! That's funny. To me, I figured I'd be minimalist by having less cables to plug into outlets! So I'm happy to have the alternative perspective. I suppose having the USB port open lends options for backups (I plan to use the SD for OS).
Yes, totally plan on using it headless.
Thanks for all your help!
« Last Edit: January 23, 2022, 09:00:20 AM by BackWoodsTech »

Offline gszlag

  • Senior Contributor
  • ****
  • Posts: 288
  • ..have you calibrated your barometer today?
    • Michael's Bay - Manitoulin Island weather
Re: CumulusMX on a raspberry pi zero 2W
« Reply #20 on: April 10, 2022, 04:29:57 PM »
Quote
I can confirm both CumulusMX and WeeWX can happily co-exist on the rpi zero 2W:
..spoke too soon.

Looks like it was a "proof of concept" experiment.
It seems that I have more than maxed out the rpi zero 2W.

Maybe..some sort of memory leak but the "big iron" definitely is working very hard after a period of time. Increasing swap had no effect.

Read somewhere "mono" might be the culprit. A reboot cures everything temporarily but then things start to slow down after a few days.
I have now installed CMX to my rpi 3B+ which is now running both WeeWX and CMX.

The rpi zero 2W is still running WeeWX/Belchertown/nginx/mosquitto.
CMX is still on the zero 2W (not running) and on a rainy Sunday, I'll try disabling the desktop, fire up CMX once again and see what happens.
Ambient Weather WS-2000
Ecowitt GW1000/GW1100
Ecowitt WS68: Anemometer, UV/solar
Ecowitt WH40: Rain gauge
Ecowitt WH57 Lightning sensor
Ecowitt WH32E: Outside T & H sensor
Stratus Rain Gauge (manual)
Raspberry Pi 3B+ (WeeWX/CumulusMX)
Raspberry Pi Zero 2W WeeWX/MQTT/Belchertown)
---
http://weather.glenns.ca (pwsdashboard - live)
http://weewx.glenns.ca
http://glenns.ca/cumulusmx2/index.htm
---
Uploading to: AWN, ecowitt.net, Weather Underground, PWSweather.com, AWEKAS, Windy.com, WOW

Offline mcrossley

  • Forecaster
  • *****
  • Posts: 935
    • Wilmslow Astro
Re: CumulusMX on a raspberry pi zero 2W
« Reply #21 on: April 11, 2022, 06:54:37 AM »
Please check the memory usage of CMX, some of the drivers that use the network do have a memory leak (and the leak is in Mono, plans are afoot to remedy that) I advise restarting CMX for those instances say once a week. A restart of CMX will release the memory though, no need to reboot.

And the memory leak does not occur under Windows where Mono is not being used.
Mark

Offline gszlag

  • Senior Contributor
  • ****
  • Posts: 288
  • ..have you calibrated your barometer today?
    • Michael's Bay - Manitoulin Island weather
Re: CumulusMX on a raspberry pi zero 2W
« Reply #22 on: April 11, 2022, 09:52:26 AM »
Please check the memory usage of CMX, some of the drivers that use the network do have a memory leak (and the leak is in Mono, plans are afoot to remedy that) I advise restarting CMX for those instances say once a week. A restart of CMX will release the memory though, no need to reboot.

And the memory leak does not occur under Windows where Mono is not being used.
Thanks for the advice!
I have restarted CMX ( after a fresh boot- to establish a base line) and will keep an eye on it.
Here is what htop reports (filtering mono and sorting by MEM%) shortly after restarting CMX:



Ambient Weather WS-2000
Ecowitt GW1000/GW1100
Ecowitt WS68: Anemometer, UV/solar
Ecowitt WH40: Rain gauge
Ecowitt WH57 Lightning sensor
Ecowitt WH32E: Outside T & H sensor
Stratus Rain Gauge (manual)
Raspberry Pi 3B+ (WeeWX/CumulusMX)
Raspberry Pi Zero 2W WeeWX/MQTT/Belchertown)
---
http://weather.glenns.ca (pwsdashboard - live)
http://weewx.glenns.ca
http://glenns.ca/cumulusmx2/index.htm
---
Uploading to: AWN, ecowitt.net, Weather Underground, PWSweather.com, AWEKAS, Windy.com, WOW

 

anything