On restarting CMX the archived data stored in the console is successfully downloaded, but doesn't seem to overwrite the flat-line data from the previous several hours.
When this happened the first time I deleted the bad entries from my local Aug15log.txt before restarting CumulusMX. This allowed the archived data from the console to get written again to the Aug15log.txt file after I restarted CMX and it retrieved the data from the console. I forgot to do this when this happened yesterday, so still had the flat-line data in my local data file after archive retrieval from the console. And I'm guessing that because the local file didn't have any new data, this must be why Weather Underground didn't get the new data either.
It also appears that CMX does not attempt to re-connect after the station console connection is lost. My weather console is usually connected to /dev/ttyUSB0 on this Linux machine, and is what WAS set in my Cumulus.ini file for the port setting. I found that if I plugged or unplugged some particular devices into another USB port that for whatever reason, this machine re-mapped my Davis console connection to /dev/ttyUSB1 on-the-fly. This is what happened on instance one of this. After some research I found that I could create a symlink to whatever port the console ended up at, which makes it so I can use that symlink in Cumulus.ini for com port (Cumulus does see it), which I hoped would solve all this, but without any station reconnect attempts data collection stops and I end up with the flat-line data over and over.
And last night I had a power outage. The weather station and the DSL modem are on a battery backup. Since this Linux laptop is a temporary test for MX for me, it's just plugged into the wall and has an internal battery. During some of the switches to main-power, battery-backup to house-generator last night, the USB ports on the laptop were dancing around (stopping and restarting) -- I'm not sure why. The new symlink didn't make a difference as there didn't seem to be any reconnect attempts from MX to the weather station. MX just stopped collecting data and kept logging and re-sending the same data over and over.
Have I overlooked anything? Any ideas to solve the lack of reconnect attempts?
For anybody interested, here's how I created the symlink for ttyUSBx:
http://hintshop.ludvig.co.nz/show/persi ... l-devices/
and
http://superuser.com/questions/212443/l ... usb-device
EDIT (I forgot the log entries in the first draft):
Code: Select all
2015-08-19 20:30:00.489 Updating CWOP
2015-08-19 20:30:01.364 WU Response: OK: success
2015-08-19 20:30:53.597 Reading reception stats
2015-08-19 20:31:00.488 Writing log entry for 8/19/2015 8:31:00 PM
2015-08-19 20:31:00.488 Written log entry for 8/19/2015 8:31:00 PM
2015-08-19 20:31:00.489 Writing today.ini, LastUpdateTime = 8/19/2015 8:31:00 PM raindaystart = 22.62 rain counter = 22.62
2015-08-19 20:32:00.489 Writing log entry for 8/19/2015 8:32:00 PM
2015-08-19 20:32:00.490 Written log entry for 8/19/2015 8:32:00 PM
2015-08-19 20:32:00.491 Writing today.ini, LastUpdateTime = 8/19/2015 8:32:00 PM raindaystart = 22.62 rain counter = 22.62
2015-08-19 20:32:31.509 Reading reception stats
2015-08-19 20:33:00.491 Writing log entry for 8/19/2015 8:33:00 PM
2015-08-19 20:33:00.491 Written log entry for 8/19/2015 8:33:00 PM
2015-08-19 20:33:00.492 Writing today.ini, LastUpdateTime = 8/19/2015 8:33:00 PM raindaystart = 22.62 rain counter = 22.62
2015-08-19 20:33:59.109 System.IO.IOException: Input/output error
at System.IO.Ports.SerialPortStream.ThrowIOException () [0x00000] in <filename unknown>:0
at System.IO.Ports.SerialPortStream.get_BytesToRead () [0x00000] in <filename unknown>:0
at System.IO.Ports.SerialPort.get_BytesToRead () [0x00000] in <filename unknown>:0
at (wrapper remoting-invoke-with-check) System.IO.Ports.SerialPort:get_BytesToRead ()
at . (Int32 ) [0x00000] in <filename unknown>:0
2015-08-19 20:33:59.110 Reading reception stats
2015-08-19 20:33:59.110 System.IO.IOException: Input/output error
at System.IO.Ports.SerialPortStream.ThrowIOException () [0x00000] in <filename unknown>:0
at System.IO.Ports.SerialPortStream.DiscardInBuffer () [0x00000] in <filename unknown>:0
at System.IO.Ports.SerialPort.DiscardInBuffer () [0x00000] in <filename unknown>:0
at (wrapper remoting-invoke-with-check) System.IO.Ports.SerialPort:DiscardInBuffer ()
at . (System.IO.Ports.SerialPort ) [0x00000] in <filename unknown>:0
2015-08-19 20:33:59.111 System.IO.IOException: Input/output error
at System.IO.Ports.SerialPortStream.ThrowIOException () [0x00000] in <filename unknown>:0
at System.IO.Ports.SerialPortStream.DiscardInBuffer () [0x00000] in <filename unknown>:0
at System.IO.Ports.SerialPort.DiscardInBuffer () [0x00000] in <filename unknown>:0
at (wrapper remoting-invoke-with-check) System.IO.Ports.SerialPort:DiscardInBuffer ()
at . (System.IO.Ports.SerialPort ) [0x00000] in <filename unknown>:0
System.IO.IOException: Input/output error
at System.IO.Ports.SerialPortStream.ThrowIOException () [0x00000] in <filename unknown>:0
at System.IO.Ports.SerialPortStream.DiscardInBuffer () [0x00000] in <filename unknown>:0
at System.IO.Ports.SerialPort.DiscardInBuffer () [0x00000] in <filename unknown>:0
at (wrapper remoting-invoke-with-check) System.IO.Ports.SerialPort:DiscardInBuffer ()
at . (System.IO.Ports.SerialPort , System.String ) [0x00000] in <filename unknown>:0
at . () [0x00000] in <filename unknown>:0
at System.Threading.Thread.StartInternal () [0x00000] in <filename unknown>:0
2015-08-19 20:34:00.492 Writing log entry for 8/19/2015 8:34:00 PM
2015-08-19 20:34:00.493 Written log entry for 8/19/2015 8:34:00 PM
2015-08-19 20:34:00.494 Writing today.ini, LastUpdateTime = 8/19/2015 8:34:00 PM raindaystart = 22.62 rain counter = 22.62
2015-08-19 20:35:00.494 *** Data input appears to have stopped
2015-08-19 20:35:00.494 Writing log entry for 8/19/2015 8:35:00 PM
2015-08-19 20:35:00.495 Written log entry for 8/19/2015 8:35:00 PM
2015-08-19 20:35:00.496 Writing today.ini, LastUpdateTime = 8/19/2015 8:35:00 PM raindaystart = 22.62 rain counter = 22.62
2015-08-19 20:35:00.615 WU Response: OK: success...