Author Topic: Can't Change Archive Interval  (Read 3358 times)

0 Members and 1 Guest are viewing this topic.

Offline currymac

  • Member
  • *
  • Posts: 5
    • Home Weather
Can't Change Archive Interval
« on: March 25, 2015, 08:21:35 AM »
I just switched to a new Davis Vantage Pro2. I'm using one of Belfryboy's latest data loggers. Everything seems to work fine and I'm sending Rapidfire reports to Weather Underground (http://tinyurl.com/kgabbjv). My Weewx software is also sending updates to CWOPS and my own website, but CWOPS and my own website only get updated every 1800 seconds. I've issued the command to change the archive interval to 300 seconds but I get an error and it won't take the adjustment. I'm including the command line output for you to see. I've tried it twice with 2 different errors. Anyone have any idea what's going on?

Thanks in advance..

pi@raspberrypi /etc/weewx $ sudo wee_config_device --set-interval=300
Using configuration file /etc/weewx/weewx.conf
Using Vantage driver version 3.0 (weewx.drivers.vantage)
Traceback (most recent call last):
  File "/usr/bin/wee_config_device", line 43, in <module>
    main()
  File "/usr/bin/wee_config_device", line 40, in main
    device.configure(config_dict)
  File "/usr/share/weewx/weewx/drivers/__init__.py", line 65, in configure
    self.do_options(options, parser, config_dict, prompt)
  File "/usr/share/weewx/weewx/drivers/vantage.py", line 1745, in do_options
    station = Vantage(**config_dict[DRIVER_NAME])
  File "/usr/share/weewx/weewx/drivers/vantage.py", line 413, in __init__
    self._setup()
  File "/usr/share/weewx/weewx/drivers/vantage.py", line 1081, in _setup
    self.port.wakeup_console(max_tries=self.max_tries, wait_before_retry=self.wait_before_retry)
  File "/usr/share/weewx/weewx/drivers/vantage.py", line 78, in wakeup_console
    raise weewx.WakeupError("Unable to wake up Vantage console")
weewx.WakeupError: Unable to wake up Vantage console
pi@raspberrypi /etc/weewx $ sudo wee_config_device --set-interval=300
Using configuration file /etc/weewx/weewx.conf
Using Vantage driver version 3.0 (weewx.drivers.vantage)
Traceback (most recent call last):
  File "/usr/bin/wee_config_device", line 43, in <module>
    main()
  File "/usr/bin/wee_config_device", line 40, in main
    device.configure(config_dict)
  File "/usr/share/weewx/weewx/drivers/__init__.py", line 65, in configure
    self.do_options(options, parser, config_dict, prompt)
  File "/usr/share/weewx/weewx/drivers/vantage.py", line 1745, in do_options
    station = Vantage(**config_dict[DRIVER_NAME])
  File "/usr/share/weewx/weewx/drivers/vantage.py", line 413, in __init__
    self._setup()
  File "/usr/share/weewx/weewx/drivers/vantage.py", line 1087, in _setup
    unit_bits              = self._getEEPROM_value(0x29)[0]
  File "/usr/share/weewx/weewx/drivers/vantage.py", line 1171, in _getEEPROM_value
    raise weewx.RetriesExceeded("While getting EEPROM data value at address 0x%X" % offset)
weewx.RetriesExceeded: While getting EEPROM data value at address 0x29
pi@raspberrypi /etc/weewx $
Gerry Curry
546 Cedar Lake Rd,
Cedar Lake, NS, B5A 5L8
phone (902) 649-2368
gerry@currysystems.com
iChat & AIM - gcurry@mac.com
http://www.gerrycurry.com/personal

CWOPS Station EW2461
Weather Underground Personal Weather Station INOVASCO121
Official CoCoRaHS Canada Station
Personal Weather Webpage: http://tinyurl.com/blopbwr

Offline nincehelser

  • Forecaster
  • *****
  • Posts: 2247
    • nincehelser.com
Re: Can't Change Archive Interval
« Reply #1 on: May 06, 2015, 04:24:34 PM »
I just switched to a new Davis Vantage Pro2. I'm using one of Belfryboy's latest data loggers. Everything seems to work fine and I'm sending Rapidfire reports to Weather Underground (http://tinyurl.com/kgabbjv). My Weewx software is also sending updates to CWOPS and my own website, but CWOPS and my own website only get updated every 1800 seconds. I've issued the command to change the archive interval to 300 seconds but I get an error and it won't take the adjustment. I'm including the command line output for you to see. I've tried it twice with 2 different errors. Anyone have any idea what's going on?

Thanks in advance..

pi@raspberrypi /etc/weewx $ sudo wee_config_device --set-interval=300
Using configuration file /etc/weewx/weewx.conf
Using Vantage driver version 3.0 (weewx.drivers.vantage)
Traceback (most recent call last):
  File "/usr/bin/wee_config_device", line 43, in <module>
    main()
  File "/usr/bin/wee_config_device", line 40, in main
    device.configure(config_dict)
  File "/usr/share/weewx/weewx/drivers/__init__.py", line 65, in configure
    self.do_options(options, parser, config_dict, prompt)
  File "/usr/share/weewx/weewx/drivers/vantage.py", line 1745, in do_options
    station = Vantage(**config_dict[DRIVER_NAME])
  File "/usr/share/weewx/weewx/drivers/vantage.py", line 413, in __init__
    self._setup()
  File "/usr/share/weewx/weewx/drivers/vantage.py", line 1081, in _setup
    self.port.wakeup_console(max_tries=self.max_tries, wait_before_retry=self.wait_before_retry)
  File "/usr/share/weewx/weewx/drivers/vantage.py", line 78, in wakeup_console
    raise weewx.WakeupError("Unable to wake up Vantage console")
weewx.WakeupError: Unable to wake up Vantage console
pi@raspberrypi /etc/weewx $ sudo wee_config_device --set-interval=300
Using configuration file /etc/weewx/weewx.conf
Using Vantage driver version 3.0 (weewx.drivers.vantage)
Traceback (most recent call last):
  File "/usr/bin/wee_config_device", line 43, in <module>
    main()
  File "/usr/bin/wee_config_device", line 40, in main
    device.configure(config_dict)
  File "/usr/share/weewx/weewx/drivers/__init__.py", line 65, in configure
    self.do_options(options, parser, config_dict, prompt)
  File "/usr/share/weewx/weewx/drivers/vantage.py", line 1745, in do_options
    station = Vantage(**config_dict[DRIVER_NAME])
  File "/usr/share/weewx/weewx/drivers/vantage.py", line 413, in __init__
    self._setup()
  File "/usr/share/weewx/weewx/drivers/vantage.py", line 1087, in _setup
    unit_bits              = self._getEEPROM_value(0x29)[0]
  File "/usr/share/weewx/weewx/drivers/vantage.py", line 1171, in _getEEPROM_value
    raise weewx.RetriesExceeded("While getting EEPROM data value at address 0x%X" % offset)
weewx.RetriesExceeded: While getting EEPROM data value at address 0x29
pi@raspberrypi /etc/weewx $

I just noticed this post.  Did you ever get this solved?

To me it doesn't look like it has anything to do with setting the archive interval, but in communicating with the device.

Have you tried stopping weewx, making the change in weewx.config, and then restarting weewx?

Offline N0NB

  • Amateur weather observer
  • Senior Member
  • **
  • Posts: 70
    • N0NB.us
Re: Can't Change Archive Interval
« Reply #2 on: May 18, 2015, 01:58:00 PM »
I tried the config utility while the WeeWX daemon was running and it failed like yours above.  I stopped the daemon:

sudo service weewx stop

And then I was able to read the settings with the --info option and set the archive interval to 60S.

HTH.
Nate


Offline currymac

  • Member
  • *
  • Posts: 5
    • Home Weather
Re: Can't Change Archive Interval
« Reply #3 on: May 19, 2015, 11:03:30 AM »
I finally reinstalled Weewx, yet again, and now have everything up and running properly... until the next time I do an update. It always seems to be the updates that trip me up! They scare the hell out of me now.  :lol:
Gerry Curry
546 Cedar Lake Rd,
Cedar Lake, NS, B5A 5L8
phone (902) 649-2368
gerry@currysystems.com
iChat & AIM - gcurry@mac.com
http://www.gerrycurry.com/personal

CWOPS Station EW2461
Weather Underground Personal Weather Station INOVASCO121
Official CoCoRaHS Canada Station
Personal Weather Webpage: http://tinyurl.com/blopbwr

Offline N0NB

  • Amateur weather observer
  • Senior Member
  • **
  • Posts: 70
    • N0NB.us
Re: Can't Change Archive Interval
« Reply #4 on: May 19, 2015, 11:33:03 AM »
Certainly, one has to treat updates with a bit of caution.  That said, the archive interval shouldn't be changed by an update as I understand it as the utility needs to be specifically run to change the archive interval in the Vantage Pro2.

A year ago I installed WeeWX from the tar.gz package but this time on the Pi I chose to use the .deb package and it was quite a bit easier.  Rather than use the old 2.7.x config file I simply edited the relevant portions of the 3.1 config file and it all worked well.  Dealing with a lot of this stuff is probably made easier by nearly 19 years of experience with Linux and almost 16 with Debian, upon which Raspbian is based.
Nate


Offline currymac

  • Member
  • *
  • Posts: 5
    • Home Weather
Re: Can't Change Archive Interval
« Reply #5 on: May 19, 2015, 12:17:14 PM »
As for Raspberry Pi's I've completely given up on them for production work like running Weewx 24/7. The cards keep failing, and I use fast, name brand cards. The last time I moved everything I could over to a Lexar thumb drive. The card didn't fail, but the thumb drive did. I now run Weewx on an old PowerPC Mac mini running debian. I run it headless and do admin via ssh. It never misses a beat. I have 3 Pis, including one of the new ones, but I only use them for fooling around now.
Gerry Curry
546 Cedar Lake Rd,
Cedar Lake, NS, B5A 5L8
phone (902) 649-2368
gerry@currysystems.com
iChat & AIM - gcurry@mac.com
http://www.gerrycurry.com/personal

CWOPS Station EW2461
Weather Underground Personal Weather Station INOVASCO121
Official CoCoRaHS Canada Station
Personal Weather Webpage: http://tinyurl.com/blopbwr

Offline nincehelser

  • Forecaster
  • *****
  • Posts: 2247
    • nincehelser.com
Re: Can't Change Archive Interval
« Reply #6 on: May 19, 2015, 01:32:10 PM »
As for Raspberry Pi's I've completely given up on them for production work like running Weewx 24/7. The cards keep failing, and I use fast, name brand cards. The last time I moved everything I could over to a Lexar thumb drive. The card didn't fail, but the thumb drive did. I now run Weewx on an old PowerPC Mac mini running debian. I run it headless and do admin via ssh. It never misses a beat. I have 3 Pis, including one of the new ones, but I only use them for fooling around now.

That's odd.  Are you sure your power supplies are adequate? 
« Last Edit: May 19, 2015, 10:13:34 PM by nincehelser »

Offline N0NB

  • Amateur weather observer
  • Senior Member
  • **
  • Posts: 70
    • N0NB.us
Re: Can't Change Archive Interval
« Reply #7 on: May 19, 2015, 01:32:36 PM »
Understood.  When I moved over to using the Pi with a custom Perl script taking data from the now retired Ultimeter 2000, I moved the root partition data to a laptop hard drive running in a USB enclosure I had laying around.  With a real drive it has been running 24/7 since November without a hiccup.  The SD card is only used for loading the kernel and when it starts loading the OS the HD takes over.  It's a bit more complicated and it took more time getting the answer to getting the data copied from the SD card to the HD than anything else!  I wound up reading the SD card to an image file and then mounted it as a loopback device and then copied the data over using rsync.  I use the Pi headless and SSH into for all maintenance.

I have the OS pared to the minimum needed to do the job.  At last count only 250 packages are installed as I removed all the desktop stuff and other nonessential packages.  I like that there are some many ways to do a task with this stuff.
Nate