Welcome to the Cumulus Support forum.

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Cumulus MX V4 beta test release 4.0.0 (build 4017) - 17 March 2024

Legacy Cumulus 1 release v1.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

CumulusMX backend crashes if weather station's USB is unplugged

Topics about the Beta trials up to Build 3043, the last build by Cumulus's founder Steve Loft. It was by this time way out of Beta but Steve wanted to keep it that way until he made a decision on his and Cumulus's future.

Moderator: mcrossley

Locked
martinu
Posts: 85
Joined: Wed 01 Jan 2014 7:54 pm
Weather Station: Davis Vantage Vue
Operating System: Raspberry Pi: Raspbian Stretch
Location: Rudston, North Yorkshire

CumulusMX backend crashes if weather station's USB is unplugged

Post by martinu »

While I'm comparing Cumulus 1 on my Windows PC and CumulusMX on Linux, I'm swapping the USB cable between the two, being careful to do so between the 10-minute updates the log files. It's a shame the USB doesn't allow you to tee a connection so it can feed two computers :-)

I've noticed that if I unplug the USB lead from the Linux (Ubuntu 18.04) PC without stopping the backend, it produces various error messages which seem to imply that it has crashed and needs to be restarted. Now loss of data feed is pretty catastrophic, but should the backend be able to handle this a bit more gracefully?

I've attached an MXdiags.zip file. The on-screen error message is in error-msg.txt. The relevant log file is 20180906-201349.txt; ignore the later ones.

It would be nice if the backend would carry on running and resume accepting data if the USB cable fault was rectified. In the real world, and not during testing, it might be caused a momentary disturbance of the cable, and it would be a shame if this required the backend to be restarted.


I notice that you've closed the thread "things in Cumulus 1 that you'd like in CumulusMX", so I'll take the opportunity here to mention a couple of things that I'd like to see:

Dashboard: display of inside temp and humidity; display of moon phase graphic (likewise for the graphic on the "Now" web page); "error" and "new record" lights and pages; station and remote sensor voltage - the latter at least shows "OK" or "LOW" for a Davis Vantage Vue remote unit to show that its battery is getting low and needs replacing.

Graphs: separate graph for inside temperature, so the outside temp graph doesn't re-scale itself when the "inside" trace is turned on (and also so small variations in inside value aren't masked by a reduced scale that accommodates both inside and outside); some form of thumbnail graphs at the bottom of the graphs page to give a quick overview of all the parameters, no mater which one is being displayed in detail; ability to customise colours and/or weight of trace lines on a graph to make one trace (eg normal outside temperature) stand out better from derived values such as dew point and wind chill.

Configuration of USB device in frontend: for the Linux installation, it might be useful if the default value for the device was something like "/dev/ttyUSB0" rather than COM1. If that's not possible because it's a single installation for all platforms, maybe mention this in tooltip help text, and the need to run dmesg to determine the correct value - and (the thing that caught me out!) the need for the "/dev/" prefix.
You do not have the required permissions to view the files attached to this post.
User avatar
ConligWX
Posts: 1570
Joined: Mon 19 May 2014 10:45 pm
Weather Station: Davis vPro2+ w/DFARS + AirLink
Operating System: Ubuntu 22.04 LTS
Location: Bangor, NI
Contact:

Re: CumulusMX backend crashes if weather station's USB is unplugged

Post by ConligWX »

AFAIK Cumulus is not designed to have the USB lead pulled out. (full stop) - It's a 24/7 application.

asking for future changes may not happen. Steve has retired and enjoying life.

As for help, there is plenty of helpful users in the forums, along with the wiki and FAQ's to get people setup.
Regards Simon

https://www.conligwx.org - @conligwx
Davis Vantage Pro2 Plus with Daytime FARS • WeatherLink Live • Davis AirLink • PurpleAir •

Image
martinu
Posts: 85
Joined: Wed 01 Jan 2014 7:54 pm
Weather Station: Davis Vantage Vue
Operating System: Raspberry Pi: Raspbian Stretch
Location: Rudston, North Yorkshire

Re: CumulusMX backend crashes if weather station's USB is unplugged

Post by martinu »

Toxic17 wrote:asking for future changes may not happen. Steve has retired and enjoying life.
Ah, I hadn't realised that Steve had retired and that he'd been through a family crisis.

Many thanks Steve for all your work on Cumulus over the years.
User avatar
steve
Cumulus Author
Posts: 26702
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: CumulusMX backend crashes if weather station's USB is unplugged

Post by steve »

It’s unlikely that I’ll ever do any changes to the MX user interface. One of the reasons for doing it the way it’s done (using HTML and JavaScript) is that it can be modified and tailored without any changes from me. I will however look at adding items to the API if they are not already there, to facilitate the tailoring of the UI. And of course, the API needs documenting.

I spent a lot of time when developing Cumulus 1 trying to handle stations being deliberately unplugged and it proved quite difficult so that’s not something I want to spend any more on, given there are other things which are probably of higher importance.

The MX installation instructions and/or FAQ mention the need to configure the serial port differently on Linux.
Steve
User avatar
dazza1223
Posts: 860
Joined: Sun 25 Jan 2015 8:41 pm
Weather Station: Davis Vantage Pro 2 plus
Operating System: Raspberry pi 4 (4gb)
Location: Worthing
Contact:

Re: CumulusMX backend crashes if weather station's USB is unplugged

Post by dazza1223 »

dose that mean Steve you be bringing out a update off CumulusMX or you enjoying ur life to much??
Have fun and keep learning

dazza :D

https://www.davisworthing.co.uk

Image
ExperiMentor
Posts: 214
Joined: Tue 24 Nov 2015 11:30 pm
Weather Station: Fine Offset & Davis Vantage Vue
Operating System: Windows 10; Raspbian Buster
Location: Switzerland

Re: CumulusMX backend crashes if weather station's USB is unplugged

Post by ExperiMentor »

martinu wrote:It would be nice if the backend would carry on running and resume accepting data if the USB cable fault was rectified. In the real world, and not during testing, it might be caused a momentary disturbance of the cable, and it would be a shame if this required the backend to be restarted.
I was asked why I have set my Raspberry Pi running CumulusMX to reboot itself once a day in the early hours. This is a good example of what that would help with. OK, so it crashes, but then at 0258 (even if I'm away on holiday) it will reboot and upload all the 10-minute-interval updates that my weather stationn has collected in the interim.

OK, it doesn't fix everything, but worth doing just in case
Locked