No updates since 2am start of British Summer Time

147 views
Skip to first unread message

Phil Owers

unread,
Mar 31, 2019, 10:55:25 AM3/31/19
to weewx-user
Hi All
Have 2 vantage pro,s each working to its own raspberry and both stopped downloading from the davis console at 2am this morning which is when the clocks moved forward 1hr in the UK. Both davis consoles had the correct new time on there screen. On one of them I de-powered the davis console (batteries out as well) and the raspberry and then powered them both up, as yet still no new downloads. On the 2nd one I just re-booted, that didnt work either. Weewx is downloading to the web pages as the times are changing so it would appear that the davis console may be the problem. Using minicom from both rpi's they both return TEST ok. Incidentally when the clocks went back last October they were both ok. Im working at strange times at the moment so replying make take a while but any clues would be very helpfull. Weewx version is still 3.8.2 Thanks for your time Phil

Phil Green

unread,
Mar 31, 2019, 12:55:33 PM3/31/19
to weewx-user
Hi Phil,
This is a known issue with the Davis weather station.
This is what I do to correct the issues, I usually do this when the clocks go forwards or backwards.

I have installed Weewx by apt-get method so the file locations may change.

From a command prompt on the Pi.
Stop Weewx
sudo /etc/init.d/weewx stop

Then clear the memory in the Davis logger

cd /user/bin
./wee_device —clear-memory

Then either reboot, or
sudo /etc/init.d/weewx start

To restart Weewx

Then check if you are seeing the data, I use

sudo tail -F /var/log/syslog

You should then see the system messages every 5mins showing the data being received from the weather station and the web pages updating

To exit that real-time logging type
Ctrl-C

Regards
Phil

Jeff A. D.

unread,
Mar 31, 2019, 1:28:48 PM3/31/19
to weewx-user
Instead of clearing memory in the logger, which could cause loss of data, I use the command "sudo wee_device --dump".  This fills in all the missing values in the data base since the time change, and seems to get things back on track.  At least it has for me.

Phil Owers

unread,
Mar 31, 2019, 1:33:30 PM3/31/19
to weewx-user
Hi Phil. Thanks for the reply but I get
wee_device error: no such option -c when i tried.
Message has been deleted

Jeff A. D.

unread,
Mar 31, 2019, 1:51:57 PM3/31/19
to weewx-user
It's hard to tell here, but the dash before clear or dump is really a double dash.

Still, I would try "wee_device - -dump" (without the extra space between the dashes) first, instead of "wee_device --clear" to avoid losing data.

Phil Owers

unread,
Mar 31, 2019, 2:17:28 PM3/31/19
to weewx-user
Thanks.
The rpi/davis console which I de_powered worked perfectly with --dump, i didnt try -clear--memory on this set up so thanks for that as it only missed 2 timestamps.
The other one (only rebooted) failed clear--memory also failed --dump which i have a screen jpg off. It seemed to fail on the same time stamp at 0410 this morning. I can download the failure but not till tommorrow when i can explore more. Again to both thanks for your time and also the url with notes regarding this problem
Phil

ge...@cusick.org.uk

unread,
Apr 1, 2019, 11:47:15 AM4/1/19
to weewx-user
The solution that Phil G posted certainly works for me, though I’ve done belt-and-braces with:

sudo su # become super-user for now
service weewx stop # stop weewx (same effect as Phil’s /etc/init.d......step
wee_device —dump # (Note the double hyphen) Download all the logger’s stored records - may take a while
wee_device —clear-memory # (Again, note the double hyphen) Clear the logger memory
service weewx start # Restart weewx
exit # Stop being super-user

I keep meaning to put this into a shell script, and invoke it with cron soon after the BST change.

Phil Green

unread,
Apr 1, 2019, 11:55:15 AM4/1/19
to weewx-user
Hi
Why do you need to do a ‘dump’ command when you do the clear-memory?

Yes would be interested in a cron script.
I presume the same one to be run twice a year when the clocks change forwards & backwards?
Regards
Phil

Geoff Cusick

unread,
Apr 1, 2019, 12:01:18 PM4/1/19
to weewx...@googlegroups.com
The —clear-memory command does just that - it deletes all the data held in the logger. That means that any data that has not been collected by weewx would be lost. The —dump option downloads everything in the logger to weewx, which will (should, does, at least with MySQL) reject any records that have already been downloaded, but retain all new records, thus losing no data. The sequence has to be —dump followed by —clear-memory.

Geoff

17 Westcroft Road Holsworthy, EX22 6BY
Phone: +44 (0)1409 254330
Mobile: +44 (0)7976 285950
Web: http://www.cusick.org.uk
> --
> You received this message because you are subscribed to a topic in the Google Groups "weewx-user" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/topic/weewx-user/F4w4LutBHLk/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Jeff A. D.

unread,
Apr 1, 2019, 12:56:30 PM4/1/19
to weewx-user
Personally, I've never had to clear memory after the dump.  Once I've dumped the memory everything seems to sych back up to normal.


On Monday, April 1, 2019 at 10:01:18 AM UTC-6, Geoff Cusick wrote:
The —clear-memory command does just that - it deletes all the data held in the logger. That means that any data that has not been collected by weewx would be lost.  The —dump option downloads everything in the logger to weewx, which will (should, does, at least with MySQL) reject any records that have already been downloaded, but retain all new records, thus losing no data.  The sequence has to be —dump followed by —clear-memory.

Geoff

17 Westcroft Road Holsworthy, EX22 6BY
Phone: +44 (0)1409 254330
Mobile: +44 (0)7976 285950
Web: http://www.cusick.org.uk

> On 1 Apr 2019, at 16:55, Phil Green <phil...@gmail.com> wrote:
>
> Hi
> Why do you need to do a ‘dump’ command when you do the clear-memory?
>
> Yes would be interested in a cron script.
> I presume the same one to be run twice a year when the clocks change forwards & backwards?
> Regards
> Phil
>
> --
> You received this message because you are subscribed to a topic in the Google Groups "weewx-user" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/topic/weewx-user/F4w4LutBHLk/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to weewx...@googlegroups.com.

Geoff Cusick

unread,
Apr 1, 2019, 1:03:58 PM4/1/19
to weewx...@googlegroups.com
As I said, belt-and-braces!


17 Westcroft Road Holsworthy, EX22 6BY
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.

Phil Owers

unread,
Apr 2, 2019, 7:21:24 AM4/2/19
to weewx...@googlegroups.com
As an update, my second rpi although it failed clear memory and dump commands must have done some good as it started working again shortly after i did the dump command. Phil O

--
You received this message because you are subscribed to the Google Groups "weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.

hind...@gmail.com

unread,
Apr 2, 2019, 12:07:33 PM4/2/19
to weewx-user
I had the same problem, but only noticed it today.  I used the solution suggested here, which correctly reset the system, so many thanks for the suggestion.  However, my NOAA reports are missing 1 April - which is strange, as I would presume that data would have been in the logger.  I also got the following errors when I did the wee_device dump command:

root@raspberrypi:/home/pi# wee_device --dump
Using configuration file /etc/weewx/weewx.conf
Using Vantage driver version 3.1.1 (weewx.drivers.vantage)
Proceeding will dump all data in the logger.
Are you sure you want to proceed (y/n)? y
Starting dump ...
 Traceback (most recent call last): 2019-03-25 05:10:00 GMT (1553490600)
  File "/usr/bin/wee_device", line 66, in <module>
    main()
  File "/usr/bin/wee_device", line 62, in main
    device.configure(config_dict)
  File "/usr/share/weewx/weewx/drivers/__init__.py", line 69, in configure
    self.do_options(options, parser, config_dict, prompt)
  File "/usr/share/weewx/weewx/drivers/vantage.py", line 2016, in do_options
    self.dump_logger(station, config_dict, options.noprompt)
  File "/usr/share/weewx/weewx/drivers/vantage.py", line 2616, in dump_logger
    for record in converted_generator:
  File "/usr/share/weewx/weewx/units.py", line 1247, in next
    _record = self.input_generator.next()
  File "/usr/share/weewx/weewx/drivers/vantage.py", line 659, in genArchiveDump
    _page = self.port.get_data_with_crc16(267, prompt=_ack, max_tries=self.max_tries)
  File "/usr/share/weewx/weewx/drivers/vantage.py", line 206, in get_data_with_crc16
    raise weewx.CRCError("Unable to pass CRC16 check while getting data")
weewx.CRCError: Unable to pass CRC16 check while getting data


I didn't do the wee_device clear, just in case I am able to get back the missing 1 April data from the logger.

Any ideas on how I get back the missing 1 April data from the logger?

Thanks

David.



On Tuesday, 2 April 2019 12:21:24 UTC+1, Phil Owers wrote:
As an update, my second rpi although it failed clear memory and dump commands must have done some good as it started working again shortly after i did the dump command. Phil O

On Mon, 1 Apr 2019, 16:55 Phil Green, <phil...@gmail.com> wrote:
Hi
Why do you need to do a ‘dump’ command when you do the clear-memory?

Yes would be interested in a cron script.
I presume the same one to be run twice a year when the clocks change forwards & backwards?
Regards
Phil

--
You received this message because you are subscribed to the Google Groups "weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx...@googlegroups.com.

Geoff Cusick

unread,
Apr 2, 2019, 2:28:42 PM4/2/19
to weewx...@googlegroups.com
Do I infer that the —dump option failed immediately, and didn’t download any records?

Geoff

17 Westcroft Road Holsworthy, EX22 6BY
You received this message because you are subscribed to a topic in the Google Groups "weewx-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/weewx-user/F4w4LutBHLk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.

David Hindley

unread,
Apr 2, 2019, 3:43:07 PM4/2/19
to weewx...@googlegroups.com
Not sure, but after using  —dump, the system updated itself to show the current day as today (2 April) rather than 31 March. 

David. 

ge...@cusick.org.uk

unread,
Apr 3, 2019, 7:54:06 AM4/3/19
to weewx-user
Did you retry the --dump option again afterwards?
To unsubscribe from this group and all its topics, send an email to weewx...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to a topic in the Google Groups "weewx-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/weewx-user/F4w4LutBHLk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx...@googlegroups.com.

Liz

unread,
Apr 15, 2019, 6:52:32 AM4/15/19
to weewx...@googlegroups.com
Do you need to have the summer time on the console?
Can you just leave it on standard time?

Liz
Reply all
Reply to author
Forward
0 new messages