--
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.
For more options, visit https://groups.google.com/d/optout.
Feb 8 12:31:34 RPIweeWx weewx[3020]: engine: Initializing weewx version 3.1.0Feb 8 12:31:34 RPIweeWx weewx[3020]: engine: Using Python 2.7.3 (default, Mar 18 2014, 05:13:23) #012[GCC 4.6.3]Feb 8 12:31:34 RPIweeWx weewx[3020]: engine: pid file is /var/run/weewx.pidFeb 8 12:31:34 RPIweeWx weewx[3022]: engine: Using configuration file /etc/weewx/weewx.confFeb 8 12:31:34 RPIweeWx weewx[3022]: engine: Loading station type Vantage (weewx.drivers.vantage)Feb 8 12:31:36 RPIweeWx weewx[3022]: vantage: No <ACK> received from consoleFeb 8 12:31:36 RPIweeWx weewx[3022]: engine: Unable to load driver: No <ACK> received from Vantage consoleFeb 8 12:31:36 RPIweeWx weewx[3022]: **** Exiting...
#! /bin/sh# Author: Just van den Broecke <justb4 ATAT gmail DOTSDOTS com># Restart weewx if not running.# Modification by nick ATAT nirica DOTSDOTS com 2/1/2015
NPROC=`ps ax | grep 'python /usr/bin/weewxd'| wc -l`if [ $NPROC -gt 2 ]; then echo "`date` weewx running multiple times on `date`! Attempting restart." >> /var/log/weewxcheck.log /etc/init.d/weewx restartelif [ $NPROC = 2 ]; then echo "`date` Weewx is ok: $status"else echo "`date` weewx not running on `date`! Attempting restart." >> /var/log/weewxcheck.log /etc/init.d/weewx restartfi
#Check and see if weewxd is running, if not start it*/15 * * * * /home/pi/weewxcheck.sh >> /var/log/weewxcheck.log 2>&1
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/ZcqShGOZv0k/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+unsubscribe@googlegroups.com.
--
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/ZcqShGOZv0k/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+unsubscribe@googlegroups.com.
Feb 8 12:26:57 RPIweeWx dhclient: DHCPREQUEST on eth0 to 255.255.255.255 port 67Feb 8 12:26:57 RPIweeWx dhclient: DHCPOFFER from 10.11.12.100Feb 8 12:26:57 RPIweeWx ifplugd(eth0)[1688]: client: DHCPOFFER from 10.11.12.100Feb 8 12:26:57 RPIweeWx dhclient: DHCPACK from 10.11.12.100Feb 8 12:26:57 RPIweeWx ifplugd(eth0)[1688]: client: DHCPACK from 10.11.12.100Feb 8 12:26:57 RPIweeWx dhclient: bound to 10.11.12.50 -- renewal in 32712 seconds.Feb 8 12:26:57 RPIweeWx ifplugd(eth0)[1688]: client: bound to 10.11.12.50 -- renewal in 32712 seconds.Feb 8 12:26:58 RPIweeWx ifplugd(eth0)[1688]: Program executed successfully.Feb 8 12:26:58 RPIweeWx ntpd[2226]: Listen normally on 2 eth0 10.11.12.50 UDP 123Feb 8 12:26:58 RPIweeWx ntpd[2226]: peers refreshedFeb 8 12:27:00 RPIweeWx ntpd_intres[2235]: DNS 0.debian.pool.ntp.org -> 74.207.242.71Feb 8 12:27:00 RPIweeWx ntpd_intres[2235]: DNS 1.debian.pool.ntp.org -> 74.117.238.11Feb 8 12:27:00 RPIweeWx ntpd_intres[2235]: DNS 2.debian.pool.ntp.org -> 38.229.71.1Feb 8 12:27:01 RPIweeWx ntpd_intres[2235]: DNS 3.debian.pool.ntp.org -> 23.226.142.216Feb 8 12:29:22 RPIweeWx weewx[2675]: engine: retrying...Feb 8 12:29:22 RPIweeWx weewx[2675]: engine: Using configuration file /etc/weewx/weewx.confFeb 8 12:29:22 RPIweeWx weewx[2675]: engine: Loading station type Vantage (weewx.drivers.vantage)Feb 8 12:29:22 RPIweeWx weewx[2675]: vantage: No <ACK> received from consoleFeb 8 12:29:22 RPIweeWx weewx[2675]: engine: Unable to load driver: No <ACK> received from Vantage consoleFeb 8 12:29:22 RPIweeWx weewx[2675]: **** Exiting...
Feb 8 12:31:34 RPIweeWx weewx[3020]: engine: Initializing weewx version 3.1.0Feb 8 12:31:34 RPIweeWx weewx[3020]: engine: Using Python 2.7.3 (default, Mar 18 2014, 05:13:23) #012[GCC 4.6.3]Feb 8 12:31:34 RPIweeWx weewx[3020]: engine: pid file is /var/run/weewx.pidFeb 8 12:31:34 RPIweeWx weewx[3022]: engine: Using configuration file /etc/weewx/weewx.confFeb 8 12:31:34 RPIweeWx weewx[3022]: engine: Loading station type Vantage (weewx.drivers.vantage)Feb 8 12:31:36 RPIweeWx weewx[3022]: vantage: No <ACK> received from consoleFeb 8 12:31:36 RPIweeWx weewx[3022]: engine: Unable to load driver: No <ACK> received from Vantage consoleFeb 8 12:31:36 RPIweeWx weewx[3022]: **** Exiting...
Feb 8 12:31:59 RPIweeWx weewx[3055]: engine: Initializing weewx version 3.1.0Feb 8 12:31:59 RPIweeWx weewx[3055]: engine: Using Python 2.7.3 (default, Mar 18 2014, 05:13:23) #012[GCC 4.6.3]Feb 8 12:31:59 RPIweeWx weewx[3055]: engine: pid file is /var/run/weewx.pidFeb 8 12:32:00 RPIweeWx weewx[3057]: engine: Using configuration file /etc/weewx/weewx.confFeb 8 12:32:00 RPIweeWx weewx[3057]: engine: Loading station type Vantage (weewx.drivers.vantage)Feb 8 12:32:01 RPIweeWx weewx[3057]: engine: StdConvert target unit is 0x1Feb 8 12:32:01 RPIweeWx weewx[3057]: engine: Archive will use data binding wx_bindingFeb 8 12:32:01 RPIweeWx weewx[3057]: engine: Record generation will be attempted in 'hardware'Feb 8 12:32:01 RPIweeWx weewx[3057]: engine: Using archive interval of 300 secondsFeb 8 12:32:01 RPIweeWx weewx[3057]: engine: Using binding 'wx_binding' to database 'weewx'
Feb 8 15:12:57 RPIweeWx ifplugd(eth0)[1602]: Program executed successfully.Feb 8 15:12:58 RPIweeWx ntpd[2102]: Listen normally on 2 eth0 10.11.12.50 UDP 123Feb 8 15:12:58 RPIweeWx ntpd[2102]: peers refreshedFeb 8 15:13:00 RPIweeWx ntpd_intres[2108]: DNS 0.debian.pool.ntp.org -> 54.235.96.196Feb 8 15:13:00 RPIweeWx ntpd_intres[2108]: DNS 1.debian.pool.ntp.org -> 50.116.38.157Feb 8 15:13:00 RPIweeWx ntpd_intres[2108]: DNS 2.debian.pool.ntp.org -> 70.35.113.43Feb 8 15:13:00 RPIweeWx ntpd_intres[2108]: DNS 3.debian.pool.ntp.org -> 76.191.88.3Feb 8 16:28:20 RPIweeWx weewx[2559]: engine: retrying...Feb 8 16:28:20 RPIweeWx weewx[2559]: engine: Using configuration file /etc/weewx/weewx.confFeb 8 16:28:20 RPIweeWx weewx[2559]: engine: Loading station type Vantage (weewx.drivers.vantage)Feb 8 16:28:21 RPIweeWx weewx[2559]: vantage: No <ACK> received from consoleFeb 8 16:28:21 RPIweeWx weewx[2559]: engine: Unable to load driver: No <ACK> received from Vantage consoleFeb 8 16:28:21 RPIweeWx weewx[2559]: **** Exiting...
I get the same message from time to time and I'm using a Pi. I'm not too concerned about it, I've got bigger things to worry about.
Dave-KB1PVH
Sent from my Samsung S4
DAEMON_ARGS="--daemon --pidfile=$PIDFILE $WEEWX_CFG --loop-on-init"
Jun 4 02:01:00 localhost weewx[16226]: manager: added record 2015-06-04 02:00:00 BST (1433379600) to daily summary in 'archive/weewx.sdb'Jun 4 02:01:01 localhost weewx[16226]: restx: Wunderground-PWS: Published record 2015-06-04 02:00:00 BST (1433379600)Jun 4 02:01:04 localhost weewx[16226]: cheetahgenerator: Generated 14 files for report StandardReport in 3.38 secondsJun 4 02:01:08 localhost weewx[16226]: genimages: Generated 24 images for StandardReport in 4.32 secondsJun 4 02:01:10 localhost weewx[16226]: cheetahgenerator: Generated 3 files for report SaratogaReport in 2.21 secondsJun 4 02:01:15 localhost weewx[16226]: genimages: Generated 25 images for SaratogaReport in 4.44 secondsJun 4 02:01:15 localhost weewx[16226]: cheetahgenerator: Generated 2 files for report YoWindowReport in 0.08 secondsJun 4 02:01:44 localhost weewx[16226]: reportengine: ftp'd 68 files in 29.53 secondsJun 4 02:30:01 localhost weewx[16226]: engine: Shutting down StdReport threadJun 4 02:30:02 localhost weewx[16226]: engine: Terminating weewx version 3.1.0Jun 4 02:40:20 localhost kernel: [565899.532217] Transfer to device 6 endpoint 0x1 frame 1880 failed - FIQ reported NYET. Data may have been lost.Jun 4 02:53:04 localhost weewx[4982]: engine: Initializing weewx version 3.1.0Jun 4 02:53:04 localhost weewx[4982]: engine: Using Python 2.7.3 (default, Mar 18 2014, 05:13:23) #012[GCC 4.6.3]Jun 4 02:53:04 localhost weewx[4982]: engine: pid file is /var/run/weewx.pidJun 4 02:53:04 localhost weewx[4984]: engine: Using configuration file /home/weewx/weewx.confJun 4 02:53:04 localhost weewx[4984]: engine: Loading station type Vantage (weewx.drivers.vantage)Jun 4 02:53:05 localhost weewx[4984]: vantage: No <ACK> received from consoleJun 4 02:53:05 localhost weewx[4984]: engine: Unable to load driver: No <ACK> received from Vantage consoleJun 4 02:53:05 localhost weewx[4984]: **** Exiting...Jun 4 02:53:14 localhost sSMTP[4989]: Creating SSL connection to hostJun 4 02:53:15 localhost sSMTP[4989]: SSL connection using RSA_ARCFOUR_SHA1Jun 4 02:53:17 localhost sSMTP[4989]: Sent mail for root@localhost (221 2.0.0 closing connection fm8sm4059414wib.9 - gsmtp) uid=0 username=root outbytes=688
root@max2play:/home/weewx# ./bin/wee_config_device --infoUsing configuration file /home/weewx/weewx.confUsing Vantage driver version 3.0 (weewx.drivers.vantage)Traceback (most recent call last):File "./bin/wee_config_device", line 43, in <module>main()File "./bin/wee_config_device", line 40, in maindevice.configure(config_dict)File "/home/weewx/bin/weewx/drivers/__init__.py", line 65, in configureself.do_options(options, parser, config_dict, prompt)File "/home/weewx/bin/weewx/drivers/vantage.py", line 1745, in do_optionsstation = Vantage(**config_dict[DRIVER_NAME])File "/home/weewx/bin/weewx/drivers/vantage.py", line 413, in __init__self._setup()File "/home/weewx/bin/weewx/drivers/vantage.py", line 1084, in _setupself.port.send_data("WRD" + chr(0x12) + chr(0x4d) + "\n")File "/home/weewx/bin/weewx/drivers/vantage.py", line 91, in send_data_resp = self.read()File "/home/weewx/bin/weewx/drivers/vantage.py", line 219, in readraise weewx.WeeWxIOError("Expected to read %d chars; got %d instead" % (chars, N))weewx.WeeWxIOError: Expected to read 1 chars; got 0 instead
Jun 5 13:17:08 localhost weewx[2625]: engine: Starting main packet loop.Jun 5 13:17:08 localhost dbus[2574]: [system] Activating service name='org.freedesktop.UDisks' (using servicehelper)Jun 5 13:17:08 localhost dbus[2574]: [system] Successfully activated service 'org.freedesktop.UDisks'Jun 5 13:17:08 localhost weewx[2625]: vantage: successfully woke up consoleJun 5 13:17:08 localhost ifplugd(eth0)[1875]: Program executed successfully.Jun 5 13:17:08 localhost weewx[2625]: vantage: Requesting 200 LOOP packets.Jun 5 13:17:09 localhost weewx[2625]: vantage: successfully woke up console
root@max2play:/home/weewx# ./bin/wee_config_device --infoUsing configuration file /home/weewx/weewx.confUsing Vantage driver version 3.0 (weewx.drivers.vantage)Traceback (most recent call last):File "./bin/wee_config_device", line 43, in <module>main()File "./bin/wee_config_device", line 40, in maindevice.configure(config_dict)File "/home/weewx/bin/weewx/drivers/__init__.py", line 65, in configureself.do_options(options, parser, config_dict, prompt)File "/home/weewx/bin/weewx/drivers/vantage.py", line 1745, in do_optionsstation = Vantage(**config_dict[DRIVER_NAME])File "/home/weewx/bin/weewx/drivers/vantage.py", line 413, in __init__self._setup()
File "/home/weewx/bin/weewx/drivers/vantage.py", line 1087, in _setupunit_bits = self._getEEPROM_value(0x29)[0]File "/home/weewx/bin/weewx/drivers/vantage.py", line 1163, in _getEEPROM_valueself.port.send_data(command)
File "/home/weewx/bin/weewx/drivers/vantage.py", line 91, in send_data_resp = self.read()
File "/home/weewx/bin/weewx/drivers/vantage.py", line 210, in read_buffer = self.serial_port.read(chars)File "/usr/lib/python2.7/dist-packages/serial/serialposix.py", line 449, in readbuf = os.read(self.fd, size-len(read))OSError: [Errno 11] Resource temporarily unavailable
Jun 5 13:20:05 localhost weewx[2625]: vantage: LOOP #62; read error. Try #1Jun 5 13:20:05 localhost weewx[2625]: **** Expected to read 99 chars; got 8 insteadJun 5 13:20:15 localhost weewx[2625]: vantage: LOOP #63; read error. Try #2Jun 5 13:20:15 localhost weewx[2625]: **** Expected to read 99 chars; got 4 insteadJun 5 13:20:26 localhost weewx[2625]: vantage: LOOP #64; read error. Try #3Jun 5 13:20:26 localhost weewx[2625]: **** Expected to read 99 chars; got 4 insteadJun 5 13:20:36 localhost weewx[2625]: vantage: LOOP #65; read error. Try #4Jun 5 13:20:36 localhost weewx[2625]: **** Expected to read 99 chars; got 6 insteadJun 5 13:20:47 localhost weewx[2625]: vantage: LOOP #66; read error. Try #5Jun 5 13:20:47 localhost weewx[2625]: **** Expected to read 99 chars; got 6 insteadJun 5 13:20:57 localhost weewx[2625]: vantage: LOOP #67; read error. Try #6Jun 5 13:20:57 localhost weewx[2625]: **** Expected to read 99 chars; got 4 insteadJun 5 13:21:18 localhost weewx[2625]: vantage: LOOP #68; read error. Try #7Jun 5 13:21:18 localhost weewx[2625]: **** Expected to read 99 chars; got 10 insteadJun 5 13:21:29 localhost weewx[2625]: vantage: LOOP #69; read error. Try #8Jun 5 13:21:29 localhost weewx[2625]: **** Expected to read 99 chars; got 4 insteadJun 5 13:21:39 localhost weewx[2625]: vantage: LOOP #70; read error. Try #9Jun 5 13:21:39 localhost weewx[2625]: **** Expected to read 99 chars; got 4 insteadJun 5 13:21:50 localhost weewx[2625]: vantage: LOOP #71; read error. Try #10Jun 5 13:21:50 localhost weewx[2625]: **** Expected to read 99 chars; got 4 insteadJun 5 13:22:00 localhost weewx[2625]: vantage: LOOP #72; read error. Try #11Jun 5 13:22:00 localhost weewx[2625]: **** Expected to read 99 chars; got 6 insteadJun 5 13:22:01 localhost weewx[2625]: vantage: SerialException.Jun 5 13:22:01 localhost weewx[2625]: **** device reports readiness to read but returned no data (device disconnected?)Jun 5 13:22:01 localhost weewx[2625]: **** Is there a competing process running??Jun 5 13:22:01 localhost weewx[2625]: vantage: LOOP #73; read error. Try #12Jun 5 13:22:01 localhost weewx[2625]: **** device reports readiness to read but returned no data (device disconnected?)
...
...
At present, the system is running just fine, and has been for the last 7 or 8 hours; after startup, it correctly updated itself from the Vantage logger memory, and posted the outstanding data to the Met Office WOW system. So, for now, I plan to keep an eye on the logs, and trust that all is well. A bit strange, though, after I spent several hours yesterday trying to sort out the problem!
You can see the output on http://weather.cusick.org.uk
I will post in a new thread some notes about the RPi configuration, which may be of interest to others.
Cheers
Geoff
--
I'd feel a lot better with a deterministic explanation to go with your empirical evidence. :-)
# First try a gently wake up
try:
self.write('\n')
_resp = self.read(2)
if _resp == '\n\r':
syslog.syslog(syslog.LOG_DEBUG, "vantage: successfully woke up console gently")
return
except weewx.WeeWxIOError:
pass
# Now try wake up the console more thorough. Try up to max_tries times
for unused_count in xrange(max_tries):
try:
# Clear out any pending input or output characters:
self.flush_output()
self.flush_input()
# It can be hard to get the console's attention, particularly
# when in the middle of a LOOP command. Send a whole bunch of line feeds.
# Use separate calls, as this forces the WLIP implementation to invoke the
# tcp_send_delay between each one.
self.write('\n')
self.write('\n')
self.write('\n')
time.sleep(0.5)
# Now flush everything, do it again, then look for the \n\r acknowledgment
self.flush_input()
self.write('\n')
_resp = self.read(2)
if _resp == '\n\r':
syslog.syslog(syslog.LOG_DEBUG, "vantage: successfully woke up console thorough")
return
print "Unable to wake up console... sleeping"
time.sleep(wait_before_retry)
print "Unable to wake up console... retrying"
except weewx.WeeWxIOError:
pass
syslog.syslog(syslog.LOG_DEBUG, "vantage: retry-1 no %s" % unused_count)
--
Tom,
wxdata is the extension from William Phelps with the Pitft display.
I'm assuming it's the new driver from Luc. I upgraded Weewx from 3.0.1 to 3.4.0 yesterday after you said you made the commit.
--
I'll give it a go in a bit.
Replaced with new driver and we'll see how it goes.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/899be542-5560-4b52-be14-9237c064727bn%40googlegroups.com.