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

0 Members and 1 Guest are viewing this topic.

Offline gszlag

  • Senior Contributor
  • ****
  • Posts: 181
    • 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.
--
Ecowitt GW1000/GW1100: WiFi Gateway
Ecowitt WS68: Anemometer, UV/solar radiation
Ecowitt WH40: Rain gauge
Ecowitt WH32E: Outside Temp & Humidity sensor
Ambient Weather WS-2000
Raspberry Pi 3B+ (running WeeWX)
Raspberry Pi Zero 2W (running CumulusMX & WeeWX)
---
http://weather.glenns.ca (pwsdashboard custom server upload)
http://weewx.glenns.ca and http://weewx2.glenns.ca/index.html (WeeWX 4.x.x)
http://glenns.ca/cumulusmx2/index.htm (CumulusMX)
---
WU: ITEHKUMM2
PWSweather.com: MBAYWX1
AWEKAS:id=15920
WINDY: Michael's Bay, Manitoulin Island
WOW: Michael's Bay

Offline davidmc36

  • He who dies with the most toys wins!
  • Forecaster
  • *****
  • Posts: 849
  • 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: 181
    • 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.
Ecowitt GW1000/GW1100: WiFi Gateway
Ecowitt WS68: Anemometer, UV/solar radiation
Ecowitt WH40: Rain gauge
Ecowitt WH32E: Outside Temp & Humidity sensor
Ambient Weather WS-2000
Raspberry Pi 3B+ (running WeeWX)
Raspberry Pi Zero 2W (running CumulusMX & WeeWX)
---
http://weather.glenns.ca (pwsdashboard custom server upload)
http://weewx.glenns.ca and http://weewx2.glenns.ca/index.html (WeeWX 4.x.x)
http://glenns.ca/cumulusmx2/index.htm (CumulusMX)
---
WU: ITEHKUMM2
PWSweather.com: MBAYWX1
AWEKAS:id=15920
WINDY: Michael's Bay, Manitoulin Island
WOW: Michael's Bay

Offline mcrossley

  • Forecaster
  • *****
  • Posts: 832
    • 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: 181
    • 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.
Ecowitt GW1000/GW1100: WiFi Gateway
Ecowitt WS68: Anemometer, UV/solar radiation
Ecowitt WH40: Rain gauge
Ecowitt WH32E: Outside Temp & Humidity sensor
Ambient Weather WS-2000
Raspberry Pi 3B+ (running WeeWX)
Raspberry Pi Zero 2W (running CumulusMX & WeeWX)
---
http://weather.glenns.ca (pwsdashboard custom server upload)
http://weewx.glenns.ca and http://weewx2.glenns.ca/index.html (WeeWX 4.x.x)
http://glenns.ca/cumulusmx2/index.htm (CumulusMX)
---
WU: ITEHKUMM2
PWSweather.com: MBAYWX1
AWEKAS:id=15920
WINDY: Michael's Bay, Manitoulin Island
WOW: Michael's Bay

Online box

  • Senior Contributor
  • ****
  • Posts: 184
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: 181
    • 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 »
Ecowitt GW1000/GW1100: WiFi Gateway
Ecowitt WS68: Anemometer, UV/solar radiation
Ecowitt WH40: Rain gauge
Ecowitt WH32E: Outside Temp & Humidity sensor
Ambient Weather WS-2000
Raspberry Pi 3B+ (running WeeWX)
Raspberry Pi Zero 2W (running CumulusMX & WeeWX)
---
http://weather.glenns.ca (pwsdashboard custom server upload)
http://weewx.glenns.ca and http://weewx2.glenns.ca/index.html (WeeWX 4.x.x)
http://glenns.ca/cumulusmx2/index.htm (CumulusMX)
---
WU: ITEHKUMM2
PWSweather.com: MBAYWX1
AWEKAS:id=15920
WINDY: Michael's Bay, Manitoulin Island
WOW: Michael's Bay

Online box

  • Senior Contributor
  • ****
  • Posts: 184
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: 181
    • 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
--
Ecowitt GW1000/GW1100: WiFi Gateway
Ecowitt WS68: Anemometer, UV/solar radiation
Ecowitt WH40: Rain gauge
Ecowitt WH32E: Outside Temp & Humidity sensor
Ambient Weather WS-2000
Raspberry Pi 3B+ (running WeeWX)
Raspberry Pi Zero 2W (running CumulusMX & WeeWX)
---
http://weather.glenns.ca (pwsdashboard custom server upload)
http://weewx.glenns.ca and http://weewx2.glenns.ca/index.html (WeeWX 4.x.x)
http://glenns.ca/cumulusmx2/index.htm (CumulusMX)
---
WU: ITEHKUMM2
PWSweather.com: MBAYWX1
AWEKAS:id=15920
WINDY: Michael's Bay, Manitoulin Island
WOW: Michael's Bay

Offline davidmc36

  • He who dies with the most toys wins!
  • Forecaster
  • *****
  • Posts: 849
  • 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: 181
    • 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.
Ecowitt GW1000/GW1100: WiFi Gateway
Ecowitt WS68: Anemometer, UV/solar radiation
Ecowitt WH40: Rain gauge
Ecowitt WH32E: Outside Temp & Humidity sensor
Ambient Weather WS-2000
Raspberry Pi 3B+ (running WeeWX)
Raspberry Pi Zero 2W (running CumulusMX & WeeWX)
---
http://weather.glenns.ca (pwsdashboard custom server upload)
http://weewx.glenns.ca and http://weewx2.glenns.ca/index.html (WeeWX 4.x.x)
http://glenns.ca/cumulusmx2/index.htm (CumulusMX)
---
WU: ITEHKUMM2
PWSweather.com: MBAYWX1
AWEKAS:id=15920
WINDY: Michael's Bay, Manitoulin Island
WOW: Michael's Bay

 

anything