Welcome to the Cumulus Support forum.

Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025

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

If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080

PC browser loses connection to Cumulus on Pi, why

From build 3044 the development baton passed to Mark Crossley. Mark has been responsible for all the Builds since. He has made the code available on GitHub. It is Mark's hope that others will join in this development, but at the very least he welcomes your ideas for future developments (see Cumulus MX Development suggestions).

Moderator: mcrossley

Post Reply
Dublin-Bay-Prawn
Posts: 7
Joined: Sat 01 Oct 2016 3:00 pm
Weather Station: WH1080
Operating System: Mac OSX

PC browser loses connection to Cumulus on Pi, why

Post by Dublin-Bay-Prawn »

I have recently got CumulusMX running on a Pi2. Data is being collected from the Fine Offset weather station stored and sent to Wunderground.

If I re-start the Pi whilst the PC is running, I can access the Cumulus Dashboard from the PC Firefox browser......great

If I re-start the PC whilst the Pi is running, I cannot connect to the Cumulus Dashboard (meanwhile the Pi is still running and sending data to Wunderground).

Why can I not re-connect to (PI-wifi-IP):8998 only after a PC re-boot?

When I setup the Pi I followed the "sticky" and did the

Code: Select all

"sudo crontab -e"
and

Code: Select all

"# Start Cumulus as background task 30s after reboot (delay to allow WiFi to startup)
@reboot (sleep 30;cd /home/pi/CumulusMX;sudo mono CumulusMX.exe) &

# Reboot each day at 0253
53 02 * * * sudo reboot"
But, I read on the thread viewtopic.php?f=27&t=17680&hilit=dashboard

that
I assume you started Cumulus as root using "sudo mono CumulusMX.exe", because the 200 code means "Such a response means the remote resource located at the URL doesn't listen or at least can't respond to a websocket request."., which would happen if Cumulus could not open the listening port because it was started incorrectly.
If I do "sudo mono CumulusMX.exe" at root, I get the response "No such file or directory"

Have I set up something incorrectly here?
freddie
Posts: 2870
Joined: Wed 08 Jun 2011 11:19 am
Weather Station: Davis Vantage Pro 2 + Ecowitt
Operating System: GNU/Linux Ubuntu 24.04 LXC
Location: Alcaston, Shropshire, UK
Contact:

Re: PC browser loses connection to Cumulus on Pi, why

Post by freddie »

You need to do "sudo mono CumulusMX.exe" in the directory in which CumulusMX.exe is located.
Freddie
Image
Dublin-Bay-Prawn
Posts: 7
Joined: Sat 01 Oct 2016 3:00 pm
Weather Station: WH1080
Operating System: Mac OSX

Re: PC browser loses connection to Cumulus on Pi, why

Post by Dublin-Bay-Prawn »

You need to do "sudo mono CumulusMX.exe" in the directory in which CumulusMX.exe is located.
freddie, this is the only way that Cumulus will run. If I start it at root I get the message "No such file or directory".

I mentioned the thread viewtopic.php?f=27&t=17680&hilit=dashboard because he also had problems connecting a browser to his dashboard.

To fix this water01 said
I assume you started Cumulus as root using "sudo mono CumulusMX.exe", because the 200 code means "Such a response means the remote resource located at the URL doesn't listen or at least can't respond to a websocket request."., which would happen if Cumulus could not open the listening port because it was started incorrectly.
I can't start Cumulus in root, Is this why Firefox will not re-connect to the Pi Cumulus dashboard?
freddie
Posts: 2870
Joined: Wed 08 Jun 2011 11:19 am
Weather Station: Davis Vantage Pro 2 + Ecowitt
Operating System: GNU/Linux Ubuntu 24.04 LXC
Location: Alcaston, Shropshire, UK
Contact:

Re: PC browser loses connection to Cumulus on Pi, why

Post by freddie »

You're not being asked to start CUMULUS MX in root - you're being asked to start CumulusMX AS root. Hence the "sudo" part of the command. You should always start it in the location it is installed.
Freddie
Image
water01
Posts: 3670
Joined: Sat 13 Aug 2011 9:33 am
Weather Station: Ecowitt HP2551
Operating System: Windows 10/11 64bit Synology NAS
Location: Burnham-on-Sea
Contact:

Re: PC browser loses connection to Cumulus on Pi, why

Post by water01 »

As Freddie said I said start CumulusMX AS root (hence the SUDO command) NOT start it IN Root.
David
Image
Dublin-Bay-Prawn
Posts: 7
Joined: Sat 01 Oct 2016 3:00 pm
Weather Station: WH1080
Operating System: Mac OSX

Re: PC browser loses connection to Cumulus on Pi, why

Post by Dublin-Bay-Prawn »

Ahh OK, thanks. Sorry still learning (and a long way to go!).
Post Reply