CumulusMX backend crashes if weather station's USB is unplugged
Posted: Fri 07 Sep 2018 10:41 am
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.
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.