Page 1 of 1

CumulusMX RPi wrong date?

Posted: Sun 02 Aug 2015 10:35 am
by Sadgit
Just got it running properly but it is giving me a strange problem, it doesn't show any current weather etc and gets itself in a bit of a muddle. It thinks it is last updated in July, even if I wipe all data and start totally clean. So it just sits there wondering.. current diag attached..

Getting rain totals, rain season start = 1
2015-08-02 11:27:27.287 Station type = Davis
2015-08-02 11:27:27.296 LOOP2 enabled
2015-08-02 11:27:27.297 Serial device = /dev/ttyUSB0
2015-08-02 11:27:27.384 Connected OK
2015-08-02 11:27:27.428 Reading firmware version
2015-08-02 11:27:27.760 FW version = 3.0

2015-08-02 11:27:27.761 Last update time = 25/07/2015 00:05:00
2015-08-02 11:27:27.801 Setting console time
2015-08-02 11:27:27.907 Wait for ACK...
2015-08-02 11:27:27.916 ACK received
2015-08-02 11:27:27.927 Wait for ACK...
2015-08-02 11:27:27.929 ACK received
2015-08-02 11:27:27.960 Reading console time
2015-08-02 11:27:29.073 1C-1B-0B-02-08-73-4E-3F
2015-08-02 11:27:29.074 Console clock: 02/08/2015 11:27:28
2015-08-02 11:27:29.075 Start reading archive data
2015-08-02 11:27:29.110 Reading archive data
2015-08-02 11:27:29.114 Loading last N hour data from data logs: 25/07/2015 00:05:00
2015-08-02 11:27:29.203 Loaded 0 entries to last hour data list
2015-08-02 11:27:29.291 Loaded 0 entries to last 3 hour data list
2015-08-02 11:27:29.420 Loaded 0 entries to last 24 hour data list
2015-08-02 11:27:29.521 Loaded 0 entries to recent data list
2015-08-02 11:27:29.561 Loaded 0 entries to daily data list
2015-08-02 11:27:30.234 Get Archive Data
2015-08-02 11:27:30.297 Rollover hour = 0
2015-08-02 11:27:30.298 Last Archive Date: 25/07/2015 00:05:00
2015-08-02 11:27:30.299 Date: 7929
2015-08-02 11:27:30.299 Time: 5
2015-08-02 11:27:30.412 Sending DMPAFT
2015-08-02 11:27:30.422 Received response to DMPAFT, sending date and time
2015-08-02 11:27:30.430 F9-1E-05-00-CB-AD
2015-08-02 11:27:30.431 Wait for ACK...
2015-08-02 11:27:31.457 625 web tags initialised
2015-08-02 11:27:31.622 HTML root path = /home/pi/CumulusMX/interface
2015-08-02 11:27:32.058 ACK received
2015-08-02 11:27:32.058 Waiting for response
2015-08-02 11:27:32.074 Response: E7 01 00 00 E2 F7
2015-08-02 11:27:32.075 Reading data: 487 pages , offset = 0
2015-08-02 11:27:32.482 Loaded archive record for Page=0 Record=0 Timestamp=25/07/2015 00:10:00
2015-08-02 11:27:32.770 Processing archive record for 25/07/2015 00:10:00
New monthly record, month = 7: 2015-07-25 00:10 90.000 "High humidity" 2015-02-08 11:27 0.000
New monthly record, month = 7: 2015-07-25 00:10 90.000 "Low humidity" 2015-02-08 11:27 999.000
2015-08-02 11:27:35.969 Starting web socket server on port 8002
New monthly record, month = 7: 2015-07-25 00:10 11.722 "High temperature" 2015-02-08 11:27 -999.000
New monthly record, month = 7: 2015-07-25 00:10 11.722 "Low temperature" 2015-02-08 11:27 999.000
New monthly record, month = 7: 2015-07-25 00:10 10.136 "High dew point" 2015-02-08 11:27 -999.000
New monthly record, month = 7: 2015-07-25 00:10 10.136 "Low dew point" 2015-02-08 11:27 999.000
New monthly record, month = 7: 2015-07-25 00:10 11.722 "High heat index" 2015-02-08 11:27 -999.000
New monthly record, month = 7: 2015-07-25 00:10 2.000 "High gust" 2015-02-08 11:27 0.000
New monthly record, month = 7: 2015-07-25 00:10 11.722 "Low wind chill" 2015-02-08 11:27 999.000
New monthly record, month = 7: 2015-07-25 00:10 11.805 "High apparent temp" 2015-02-08 11:27 -999.000
New monthly record, month = 7: 2015-07-25 00:10 11.805 "Low apparent temp" 2015-02-08 11:27 999.000
New monthly record, month = 7: 2015-07-25 00:10 0.083 "High daily windrun" 2015-02-08 11:27 0.000
New monthly record, month = 7: 2015-07-25 00:10 1010.735 "Low barometer" 2015-02-08 11:27 9999.000
New monthly record, month = 7: 2015-07-25 00:10 1010.735 "High barometer" 2015-02-08 11:27 0.000
2015-08-02 11:27:44.530 Page=0 Record=0 Timestamp=25/07/2015 00:10:00
2015-08-02 11:27:44.684 Writing log entry for 25/07/2015 00:10:00
2015-08-02 11:27:44.849 Written log entry for 25/07/2015 00:10:00
2015-08-02 11:27:44.908 Writing today.ini, LastUpdateTime = 25/07/2015 00:10:00 raindaystart = 247.599993896484 rain counter = 247.599993896484
2015-08-02 11:27:45.742 Loaded archive record for Page=0 Record=1 Timestamp=25/07/2015 00:15:00
2015-08-02 11:27:45.743 Processing archive record for 25/07/2015 00:15:00
New monthly record, month = 7: 2015-07-25 00:15 4.000 "High gust" 2015-07-25 00:10 2.000
New monthly record, month = 7: 2015-07-25 00:15 1.000 "High wind speed" 2015-02-08 11:27 0.000
New monthly record, month = 7: 2015-07-25 00:15 11.492 "Low apparent temp" 2015-07-25 00:10 11.805
New monthly record, month = 7: 2015-07-25 00:15 0.167 "High daily windrun" 2015-07-25 00:10 0.083
2015-08-02 11:27:48.629 Page=0 Record=1 Timestamp=25/07/2015 00:15:00
2015-08-02 11:27:48.630 Writing log entry for 25/07/2015 00:15:00
2015-08-02 11:27:48.634 Written log entry for 25/07/2015 00:15:00
2015-08-02 11:27:48.672 Writing today.ini, LastUpdateTime = 25/07/2015 00:15:00 raindaystart = 247.599993896484 rain counter = 247.599993896484
2015-08-02 11:27:48.685 Loaded archive record for Page=0 Record=2 Timestamp=25/07/2015 00:20:00
2015-08-02 11:27:48.686 Processing archive record for 25/07/2015 00:20:00
New monthly record, month = 7: 2015-07-25 00:20 11.778 "High temperature" 2015-07-25 00:10 11.722
New monthly record, month = 7: 2015-07-25 00:20 10.190 "High dew point" 2015-07-25 00:10 10.136
New monthly record, month = 7: 2015-07-25 00:20 11.778 "High heat index" 2015-07-25 00:10 11.722
New monthly record, month = 7: 2015-07-25 00:20 5.000 "High gust" 2015-07-25 00:15 4.000
New monthly record, month = 7: 2015-07-25 00:20 0.250 "High daily windrun" 2015-07-25 00:15 0.167
New monthly record, month = 7: 2015-07-25 00:20 1010.769 "High barometer" 2015-07-25 00:10 1010.735
2015-08-02 11:27:52.220 Page=0 Record=2 Timestamp=25/07/2015 00:20:00

Re: CumulusMX RPi wrong date?

Posted: Sun 02 Aug 2015 10:40 am
by steve
That timestamp is coming from today.ini (which is where it gets the timestamp to know when it last ran)

2015-08-02 11:27:24.982 Read today file: Date = 02/08/2015, LastUpdateTime = 25/07/2015 00:05:00, Month = 7

It's not showing current data yet because it's still downloading archive data from the logger from that date (at the point where you've attached the diags file).

Re: CumulusMX RPi wrong date?

Posted: Sun 02 Aug 2015 2:33 pm
by Sadgit
still the same Steve, went out and came back and it is the same. The diag ends with

2015-08-02 11:55:17.967 Page=0 Record=3 Timestamp=25/07/2015 00:50:00
2015-08-02 11:55:17.968 Writing log entry for 25/07/2015 00:50:00
2015-08-02 11:55:17.971 Written log entry for 25/07/2015 00:50:00
2015-08-02 11:55:18.029 Writing today.ini, LastUpdateTime = 25/07/2015 00:50:00 raindaystart = 247.599993896484 rain counter = 247.599993896484
2015-08-02 11:55:18.119 Loaded archive record for Page=0 Record=4 Timestamp=25/07/2015 00:55:00
2015-08-02 11:55:18.120 Processing archive record for 25/07/2015 00:55:00
New monthly record, month = 7: 2015-07-25 00:55 91.000 "High humidity" 2015-07-25 00:10 90.000
New monthly record, month = 7: 2015-07-25 00:55 10.246 "High dew point" 2015-07-25 00:20 10.190
New monthly record, month = 7: 2015-07-25 00:55 11.154 "Low apparent temp" 2015-07-25 00:35 11.249
New monthly record, month = 7: 2015-07-25 00:55 1.000 "High daily windrun" 2015-07-25 00:50 0.833
New monthly record, month = 7: 2015-07-25 00:55 1010.465 "Low barometer" 2015-07-25 00:50 1010.498
2015-08-02 11:55:20.823 Page=0 Record=4 Timestamp=25/07/2015 00:55:00
2015-08-02 11:55:20.824 Writing log entry for 25/07/2015 00:55:00
2015-08-02 11:55:20.828 Written log entry for 25/07/2015 00:55:00
2015-08-02 11:55:20.873 Writing today.ini, LastUpdateTime = 25/07/2015 00:55:00 raindaystart = 247.599993896484 rain counter = 247.599993896484

Re: CumulusMX RPi wrong date?

Posted: Sun 02 Aug 2015 2:39 pm
by steve
The best thing to do would be to stop Cumulus and delete the entire contents of the data folder, including the today.ini file.

Re: CumulusMX RPi wrong date?

Posted: Sun 02 Aug 2015 5:22 pm
by Sadgit
right I did that and it all worked, with no historical data.

I changed the Cumulus.ini and preprepared the data files, copied over and set it off again. The exact same issue. Thinks it is in July and even updates the July log file, but starting at the end and putting in several lines that are already in it for the 25th.

I plugged the Vue back into my windows nuc and let it catch up there and all is ok.
So I look at the today.ini on the windows and RPi the time formats are different for a start and surprised the windows is using 12hr clock (only in today.ini/month.ini), RPi is 24hr.

Still not sure why it doesn't like my old data.. could it be this?

Windows
[General]
Date=8/2/2015
Timestamp=8/2/2015 6:20:00 PM
CurrentYear=2015
CurrentMonth=8
CurrentDay=2

RPi
[General]
Date=25/07/2015
Timestamp=25/07/2015 00:05:00
CurrentYear=2015
CurrentMonth=7
CurrentDay=25

getting a bit stumped..

Re: CumulusMX RPi wrong date?

Posted: Sun 02 Aug 2015 5:51 pm
by Sadgit
ok I now know why the time format is wrong.. my PC upgraded to windows 10 and did some really bad things, 1 being messing with my time/date format. I need to now test to see is this is why things aren't going as I planned!

Re: CumulusMX RPi wrong date?

Posted: Sun 02 Aug 2015 6:26 pm
by Sadgit
and this is where the problem was..... sorry to have been a pain.

Looking good Steve thank you, finally loft RPi is plane radar and weather station.