weewx stops reporting data

299 views
Skip to first unread message

Luke Marcum

unread,
Aug 22, 2020, 8:01:43 PM8/22/20
to weewx-user
So, I've recently set up weewx to run on my pi.  It was running fine the first few days but now on the file:///var/www/html/weewx/index.html page with graphs and current conditions it has stopped updating twice today.  The first time it stopped updating, it didn't update for around two hours so I decided to restart my pi and it started updating again.  This lead to there being a spot in the graphs where there is no data.  Now it has done it again for the second time today.  Is there any way I can fix it from doing this?  I am using my GW1000 to upload data to weewx.  

Tom Keffer

unread,
Aug 22, 2020, 8:32:37 PM8/22/20
to weewx-user
Hard to say what's going on without the log. See the wiki article Help! Posting to weewx-user.

On Sat, Aug 22, 2020 at 5:01 PM Luke Marcum <eastcentra...@gmail.com> wrote:
So, I've recently set up weewx to run on my pi.  It was running fine the first few days but now on the file:///var/www/html/weewx/index.html page with graphs and current conditions it has stopped updating twice today.  The first time it stopped updating, it didn't update for around two hours so I decided to restart my pi and it started updating again.  This lead to there being a spot in the graphs where there is no data.  Now it has done it again for the second time today.  Is there any way I can fix it from doing this?  I am using my GW1000 to upload data to weewx.  

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/4aeb0619-7dea-49d0-8fe3-a46e3edca5f1o%40googlegroups.com.

Luke Marcum

unread,
Aug 22, 2020, 9:48:24 PM8/22/20
to weewx-user
Here's what it says in the log around the time it stopped reporting.  This seems top be what is happening. 

Aug 22 19:02:56 raspberrypi weewx[1533] CRITICAL __main__: Caught unrecoverable exception:
Aug 22 19:02:56 raspberrypi weewx[1533] CRITICAL __main__:     ****  Gw1000Collector needs to shutdown
Aug 22 19:02:56 raspberrypi weewx[1533] CRITICAL __main__:     ****  Traceback (most recent call last):
Aug 22 19:02:56 raspberrypi weewx[1533] CRITICAL __main__:     ****    File "/usr/share/weewx/weewxd", line 154, in main
Aug 22 19:02:56 raspberrypi weewx[1533] CRITICAL __main__:     ****      engine.run()
Aug 22 19:02:56 raspberrypi weewx[1533] CRITICAL __main__:     ****    File "/usr/share/weewx/weewx/engine.py", line 188, in run
Aug 22 19:02:56 raspberrypi weewx[1533] CRITICAL __main__:     ****      for packet in self.console.genLoopPackets():
Aug 22 19:02:56 raspberrypi weewx[1533] CRITICAL __main__:     ****    File "/usr/share/weewx/user/gw1000.py", line 1499, in genLoopPackets
Aug 22 19:02:56 raspberrypi weewx[1533] CRITICAL __main__:     ****      raise GW1000IOError("Gw1000Collector needs to shutdown")
Aug 22 19:02:56 raspberrypi weewx[1533] CRITICAL __main__:     ****  user.gw1000.GW1000IOError: Gw1000Collector needs to shutdown
Aug 22 19:02:56 raspberrypi weewx[1533] CRITICAL __main__:     ****  Exiting.

Luke Marcum

unread,
Aug 22, 2020, 9:48:47 PM8/22/20
to weewx-user
How can I fix this?  What is happening?

gjr80

unread,
Aug 22, 2020, 10:17:07 PM8/22/20
to weewx-user
Hi,

Long story short but part of the GW1000 driver wants to shutdown. To try and work out why we need a bit more info. Could you edit weewx.conf, set debug = 1, save weewx.conf and restart WeeWX. Let WeeWX run for a couple of archive intervals and then take a log extract from when you restarted WeeWX through until the couple of archive intervals have passed. Post the log extract here. If no errors such as the above are in the extract let WeeWX continue to run and when you next find an error in the log take a log extract from around five minutes before the error through until  a couple of minutes after the error and post that extract.

Would also help to see you [GW1000] stanza from weewx.conf.

Gary

Luke Marcum

unread,
Aug 26, 2020, 12:51:42 PM8/26/20
to weewx-user
Ok, I just had the error happen again last night.  I will post the log extract here, I've been a little busy lately so its taken me a little bit to work on this!

Luke Marcum

unread,
Aug 26, 2020, 3:58:11 PM8/26/20
to weewx-user
Here's the log:

Aug 26 13:47:52 raspberrypi weewx[1528] DEBUG gw1000: user.gw1000: Next update in 60 seconds
Aug 26 13:48:53 raspberrypi weewx[1528] DEBUG gw1000: user.gw1000: Next update in 60 seconds
Aug 26 13:49:53 raspberrypi weewx[1528] DEBUG gw1000: user.gw1000: Next update in 60 seconds
Aug 26 13:50:53 raspberrypi weewx[1528] DEBUG gw1000: user.gw1000: Next update in 60 seconds
Aug 26 13:50:53 raspberrypi weewx[1528] INFO weewx.manager: Added record 2020-08-26 13:50:00 EDT (1598464200) to database 'weewx.sdb'
Aug 26 13:50:53 raspberrypi weewx[1528] INFO weewx.manager: Added record 2020-08-26 13:50:00 EDT (1598464200) to daily summary in 'weewx.sdb'
Aug 26 13:50:53 raspberrypi weewx[1528] INFO weewx.manager: Added record 2020-08-26 13:50:00 EDT (1598464200) to database 'weewxwd.sdb'
Aug 26 13:50:53 raspberrypi weewx[1528] INFO weewx.manager: Added record 2020-08-26 13:50:00 EDT (1598464200) to daily summary in 'weewxwd.sdb'
Aug 26 13:50:53 raspberrypi weewx[1528] INFO weewx.manager: Added record 2020-08-26 13:50:00 EDT (1598464200) to database 'wdsupp.sdb'
Aug 26 13:50:53 raspberrypi weewx[1528] DEBUG weewx.reportengine: Running reports for latest time in the database.
Aug 26 13:50:53 raspberrypi weewx[1528] DEBUG weewx.reportengine: Running report 'SeasonsReport'
Aug 26 13:50:53 raspberrypi weewx[1528] DEBUG weewx.reportengine: Found configuration file /etc/weewx/skins/Seasons/skin.conf for report 'SeasonsReport'
Aug 26 13:50:53 raspberrypi weewx[1528] DEBUG weewx.cheetahgenerator: Using search list ['weewx.cheetahgenerator.Almanac', 'weewx.cheetahgenerator.Station', 'weewx.cheetahgenerator.Current', 'weewx.cheetahgenerator.Stats', 'weewx.cheetahgenerator.UnitInfo', 'weewx.cheetahgenerator.Extras']
Aug 26 13:50:53 raspberrypi weewx[1528] DEBUG weewx.manager: Daily summary version is 2.0
Aug 26 13:50:54 raspberrypi weewx[1528] DEBUG weewx.restx: Wunderground-PWS: Failed upload attempt 1: HTTP Error 401: Unauthorized
Aug 26 13:50:54 raspberrypi weewx[1528] INFO weewx.cheetahgenerator: Generated 8 files for report SeasonsReport in 0.85 seconds
Aug 26 13:50:54 raspberrypi weewx[1528] DEBUG weewx.manager: Daily summary version is 2.0
Aug 26 13:50:55 raspberrypi weewx[1528] INFO weewx.imagegenerator: Generated 15 images for report SeasonsReport in 0.50 seconds
Aug 26 13:50:55 raspberrypi weewx[1528] INFO weewx.reportengine: Copied 0 files to /var/www/html/weewx
Aug 26 13:50:55 raspberrypi weewx[1528] DEBUG weewx.reportengine: Report 'SmartphoneReport' not enabled. Skipping.
Aug 26 13:50:55 raspberrypi weewx[1528] DEBUG weewx.reportengine: Report 'MobileReport' not enabled. Skipping.
Aug 26 13:50:55 raspberrypi weewx[1528] DEBUG weewx.reportengine: Report 'StandardReport' not enabled. Skipping.
Aug 26 13:50:55 raspberrypi weewx[1528] DEBUG weewx.reportengine: Running report 'wdPWS'
Aug 26 13:50:55 raspberrypi weewx[1528] DEBUG weewx.reportengine: Found configuration file /etc/weewx/skins/PWS/skin.conf for report 'wdPWS'
Aug 26 13:50:55 raspberrypi weewx[1528] DEBUG weewx.cheetahgenerator: Using search list ['weewx.cheetahgenerator.Almanac', 'weewx.cheetahgenerator.Station', 'weewx.cheetahgenerator.Current', 'weewx.cheetahgenerator.Stats', 'weewx.cheetahgenerator.UnitInfo', 'weewx.cheetahgenerator.Extras', '']
Aug 26 13:50:55 raspberrypi weewx[1528] DEBUG weewx.manager: Daily summary version is 2.0
Aug 26 13:50:55 raspberrypi weewx[1528] INFO weewx.cheetahgenerator: Generated 1 files for report wdPWS in 0.04 seconds
Aug 26 13:50:55 raspberrypi weewx[1528] DEBUG weewx.reportengine: Running report 'wdStackedWindRose'
Aug 26 13:50:55 raspberrypi weewx[1528] DEBUG weewx.reportengine: Found configuration file /etc/weewx/skins/StackedWindRose/skin.conf for report 'wdStackedWindRose'
Aug 26 13:50:55 raspberrypi weewx[1528] DEBUG weewx.manager: Daily summary version is 2.0
Aug 26 13:50:55 raspberrypi weewx[1528] INFO user.stackedwindrose: Generated 1 images for wdStackedWindRose in 0.05 seconds
Aug 26 13:50:55 raspberrypi weewx[1528] DEBUG weewx.reportengine: Running report 'wdTesttags'
Aug 26 13:50:55 raspberrypi weewx[1528] DEBUG weewx.reportengine: Found configuration file /etc/weewx/skins/Testtags/skin.conf for report 'wdTesttags'
Aug 26 13:50:55 raspberrypi weewx[1528] DEBUG weewx.cheetahgenerator: Using search list ['weewx.cheetahgenerator.Almanac', 'weewx.cheetahgenerator.Station', 'weewx.cheetahgenerator.Current', 'weewx.cheetahgenerator.Stats', 'weewx.cheetahgenerator.UnitInfo', 'weewx.cheetahgenerator.Extras', 'user.wdsearchlist.WdMonthStats', 'user.wdsearchlist.WdLastRainTags', 'user.wdsearchlist.WdTimeSpanTags', 'user.wdsearchlist.WdAvgWindTags', 'user.wdsearchlist.WdSundryTags', 'user.wdsearchlist.WdSkinDict', 'user.wdsearchlist.WdMonthlyReportStats', 'user.wdsearchlist.WdWindRunTags', 'user.wdsearchlist.WdHourRainTags', 'user.wdsearchlist.WdGdDays', 'user.wdsearchlist.WdForToday', 'user.wdsearchlist.WdRainThisDay', 'user.wdsearchlist.WdRainDays', 'user.wdastro.MoonApsis', 'user.wdastro.Eclipse', 'user.wdastro.EarthApsis', 'user.wdastro.ChineseNewYear', 'user.wdsearchlist.WdYestAlmanac', 'user.wdsearchlist.WdTaggedStats', 'user.wdsearchlist.WdTaggedArchiveStats', 'user.wdsearchlist.WdManualAverages']
Aug 26 13:50:55 raspberrypi weewx[1528] DEBUG weewx.manager: Daily summary version is 2.0
Aug 26 13:50:55 raspberrypi weewx[1528] DEBUG weewx.manager: Daily summary version is 2.0
Aug 26 13:50:55 raspberrypi weewx[1528] INFO weewx.cheetahgenerator: Generated 1 files for report wdTesttags in 0.59 seconds
Aug 26 13:50:55 raspberrypi weewx[1528] DEBUG weewx.reportengine: Running report 'wdClientraw'
Aug 26 13:50:55 raspberrypi weewx[1528] DEBUG weewx.reportengine: Found configuration file /etc/weewx/skins/Clientraw/skin.conf for report 'wdClientraw'
Aug 26 13:50:56 raspberrypi weewx[1528] DEBUG weewx.cheetahgenerator: Using search list ['weewx.cheetahgenerator.Almanac', 'weewx.cheetahgenerator.Station', 'weewx.cheetahgenerator.Current', 'weewx.cheetahgenerator.Stats', 'weewx.cheetahgenerator.UnitInfo', 'weewx.cheetahgenerator.Extras', 'user.wdsearchlist.WdMonthStats', 'user.wdsearchlist.WdLastRainTags', 'user.wdsearchlist.WdTimeSpanTags', 'user.wdsearchlist.WdSundryTags', 'user.wdsearchlist.WdSkinDict', 'user.wdsearchlist.WdWindRunTags', 'user.wdsearchlist.WdYestAlmanac', 'user.wdsearchlist.WdTaggedStats', 'user.wdsearchlist.WdTaggedArchiveStats', 'user.wdsearchlist.WdRainDays', 'user.wdsearchlist.WdManualAverages']
Aug 26 13:50:56 raspberrypi weewx[1528] DEBUG weewx.manager: Daily summary version is 2.0
Aug 26 13:50:56 raspberrypi weewx[1528] DEBUG weewx.manager: Daily summary version is 2.0
Aug 26 13:50:56 raspberrypi weewx[1528] DEBUG weewx.cheetahgenerator: Skip 'clientrawextra.txt': last_mod=1598463954.7997284 age=301.32956314086914 stale=600
Aug 26 13:50:56 raspberrypi weewx[1528] DEBUG weewx.cheetahgenerator: Skip 'clientrawhour.txt': last_mod=1598463955.0897214 age=301.04062151908875 stale=600
Aug 26 13:50:56 raspberrypi weewx[1528] DEBUG weewx.cheetahgenerator: Skip 'clientrawdaily.txt': last_mod=1598463955.2897165 age=300.8416323661804 stale=600
Aug 26 13:50:56 raspberrypi weewx[1528] INFO weewx.cheetahgenerator: Generated 1 files for report wdClientraw in 0.14 seconds
Aug 26 13:50:56 raspberrypi weewx[1528] DEBUG weewx.reportengine: Running report 'FTP'
Aug 26 13:50:56 raspberrypi weewx[1528] DEBUG weewx.reportengine: Found configuration file /etc/weewx/skins/Ftp/skin.conf for report 'FTP'
Aug 26 13:50:56 raspberrypi weewx[1528] DEBUG weeutil.ftpupload: Attempting connection to ekyrrgweather.com
Aug 26 13:50:56 raspberrypi weewx[1528] DEBUG weeutil.ftpupload: Connected to ekyrrgweather.com
Aug 26 13:50:57 raspberrypi weewx[1528] DEBUG weeutil.ftpupload: Uploaded file /var/www/html/weewx/dayhum.png to /ekyrrgweather.com/dayhum.png
Aug 26 13:50:58 raspberrypi weewx[1528] DEBUG weeutil.ftpupload: Uploaded file /var/www/html/weewx/dayrain.png to /ekyrrgweather.com/dayrain.png
Aug 26 13:50:58 raspberrypi weewx[1528] DEBUG weeutil.ftpupload: Uploaded file /var/www/html/weewx/dayuv.png to /ekyrrgweather.com/dayuv.png
Aug 26 13:50:59 raspberrypi weewx[1528] DEBUG weeutil.ftpupload: Uploaded file /var/www/html/weewx/daybarometer.png to /ekyrrgweather.com/daybarometer.png
Aug 26 13:50:59 raspberrypi weewx[1528] DEBUG weewx.restx: Wunderground-PWS: Failed upload attempt 2: HTTP Error 401: Unauthorized
Aug 26 13:50:59 raspberrypi weewx[1528] DEBUG weeutil.ftpupload: Uploaded file /var/www/html/weewx/index.html to /ekyrrgweather.com/index.html
Aug 26 13:51:00 raspberrypi weewx[1528] DEBUG weeutil.ftpupload: Uploaded file /var/www/html/weewx/daytempin.png to /ekyrrgweather.com/daytempin.png
Aug 26 13:51:01 raspberrypi weewx[1528] DEBUG weeutil.ftpupload: Uploaded file /var/www/html/weewx/dayrx.png to /ekyrrgweather.com/dayrx.png
Aug 26 13:51:01 raspberrypi weewx[1528] DEBUG weeutil.ftpupload: Uploaded file /var/www/html/weewx/daytempdew.png to /ekyrrgweather.com/daytempdew.png
Aug 26 13:51:02 raspberrypi weewx[1528] DEBUG weeutil.ftpupload: Uploaded file /var/www/html/weewx/statistics.html to /ekyrrgweather.com/statistics.html
Aug 26 13:51:03 raspberrypi weewx[1528] DEBUG weeutil.ftpupload: Uploaded file /var/www/html/weewx/daywindvec.png to /ekyrrgweather.com/daywindvec.png
Aug 26 13:51:03 raspberrypi weewx[1528] DEBUG weeutil.ftpupload: Uploaded file /var/www/html/weewx/daywinddir.png to /ekyrrgweather.com/daywinddir.png
Aug 26 13:51:03 raspberrypi weewx[1528] DEBUG weeutil.ftpupload: Uploaded file /var/www/html/weewx/daytemp.png to /ekyrrgweather.com/daytemp.png
Aug 26 13:51:04 raspberrypi weewx[1528] DEBUG weeutil.ftpupload: Uploaded file /var/www/html/weewx/daytempfeel.png to /ekyrrgweather.com/daytempfeel.png
Aug 26 13:51:04 raspberrypi weewx[1528] DEBUG weewx.restx: Wunderground-PWS: Failed upload attempt 3: HTTP Error 401: Unauthorized
Aug 26 13:51:04 raspberrypi weewx[1528] ERROR weewx.restx: Wunderground-PWS: Failed to publish record 2020-08-26 13:50:00 EDT (1598464200): Failed upload after 3 tries
Aug 26 13:51:04 raspberrypi weewx[1528] DEBUG weeutil.ftpupload: Uploaded file /var/www/html/weewx/daywind.png to /ekyrrgweather.com/daywind.png
Aug 26 13:51:05 raspberrypi weewx[1528] DEBUG weeutil.ftpupload: Uploaded file /var/www/html/weewx/dayradiation.png to /ekyrrgweather.com/dayradiation.png
Aug 26 13:51:05 raspberrypi weewx[1528] DEBUG weeutil.ftpupload: Uploaded file /var/www/html/weewx/rss.xml to /ekyrrgweather.com/rss.xml
Aug 26 13:51:06 raspberrypi weewx[1528] DEBUG weeutil.ftpupload: Uploaded file /var/www/html/weewx/dayhumin.png to /ekyrrgweather.com/dayhumin.png
Aug 26 13:51:06 raspberrypi weewx[1528] DEBUG weeutil.ftpupload: Uploaded file /var/www/html/weewx/dayvolt.png to /ekyrrgweather.com/dayvolt.png
Aug 26 13:51:07 raspberrypi weewx[1528] DEBUG weeutil.ftpupload: Uploaded file /var/www/html/weewx/tabular.html to /ekyrrgweather.com/tabular.html
Aug 26 13:51:07 raspberrypi weewx[1528] DEBUG weeutil.ftpupload: Uploaded file /var/www/html/weewx/celestial.html to /ekyrrgweather.com/celestial.html
Aug 26 13:51:08 raspberrypi weewx[1528] DEBUG weeutil.ftpupload: Uploaded file /var/www/html/weewx/telemetry.html to /ekyrrgweather.com/telemetry.html
Aug 26 13:51:08 raspberrypi weewx[1528] DEBUG weeutil.ftpupload: Uploaded file /var/www/html/weewx/WD/daywindrose.png to /ekyrrgweather.com/WD/daywindrose.png
Aug 26 13:51:09 raspberrypi weewx[1528] DEBUG weeutil.ftpupload: Uploaded file /var/www/html/weewx/WD/testtags.php to /ekyrrgweather.com/WD/testtags.php
Aug 26 13:51:09 raspberrypi weewx[1528] DEBUG weeutil.ftpupload: Uploaded file /var/www/html/weewx/WD/clientraw.txt to /ekyrrgweather.com/WD/clientraw.txt
Aug 26 13:51:10 raspberrypi weewx[1528] DEBUG weeutil.ftpupload: Uploaded file /var/www/html/weewx/WD/weewx_pws.xml to /ekyrrgweather.com/WD/weewx_pws.xml
Aug 26 13:51:10 raspberrypi weewx[1528] DEBUG weeutil.ftpupload: Uploaded file /var/www/html/weewx/NOAA/NOAA-2020-08.txt to /ekyrrgweather.com/NOAA/NOAA-2020-08.txt
Aug 26 13:51:11 raspberrypi weewx[1528] DEBUG weeutil.ftpupload: Uploaded file /var/www/html/weewx/NOAA/NOAA-2020.txt to /ekyrrgweather.com/NOAA/NOAA-2020.txt
Aug 26 13:51:11 raspberrypi weewx[1528] INFO weewx.reportengine: ftpgenerator: Ftp'd 27 files in 15.08 seconds
Aug 26 13:51:11 raspberrypi weewx[1528] DEBUG weewx.reportengine: Report 'RSYNC' not enabled. Skipping.
Aug 26 13:51:53 raspberrypi weewx[1528] DEBUG gw1000: user.gw1000: Next update in 60 seconds
Aug 26 13:52:56 raspberrypi weewx[1528] DEBUG gw1000: user.gw1000: Failed attempt 1 to send command 'CMD_GW1000_LIVEDATA': timed out
Aug 26 13:53:08 raspberrypi weewx[1528] DEBUG gw1000: user.gw1000: Failed attempt 2 to send command 'CMD_GW1000_LIVEDATA': timed out
Aug 26 13:53:20 raspberrypi weewx[1528] DEBUG gw1000: user.gw1000: Failed attempt 3 to send command 'CMD_GW1000_LIVEDATA': timed out
Aug 26 13:53:20 raspberrypi weewx[1528] ERROR gw1000: user.gw1000: Failed to send command 'CMD_GW1000_LIVEDATA' after 3 attempts
Aug 26 13:53:20 raspberrypi weewx[1528] INFO gw1000: user.gw1000: Attempting to re-discover GW1000...
Aug 26 13:53:22 raspberrypi weewx[1528] INFO gw1000: user.gw1000: GW1000 was found at 192.168.100.101:45000
Aug 26 13:53:22 raspberrypi weewx[1528] INFO gw1000: user.gw1000: GW1000 at address 192.168.100.101:45000 will be used
Aug 26 13:53:22 raspberrypi weewx[1528] DEBUG gw1000: user.gw1000: Unable to obtain live data
Aug 26 13:53:22 raspberrypi weewx[1528] DEBUG gw1000: user.gw1000: Next update in 60 seconds
Aug 26 13:53:23 raspberrypi weewx[1528] DEBUG gw1000: user.gw1000: Gw1000Collector thread has been terminated
Aug 26 13:53:23 raspberrypi weewx[1528] INFO weewx.engine: Main loop exiting. Shutting engine down.
Aug 26 13:53:23 raspberrypi weewx[1528] INFO weewx.engine: Shutting down StdReport thread
Aug 26 13:53:23 raspberrypi weewx[1528] DEBUG weewx.engine: StdReport thread has been terminated
Aug 26 13:53:23 raspberrypi weewx[1528] DEBUG weewx.restx: Shut down Wunderground-PWS thread.
Aug 26 13:53:23 raspberrypi weewx[1528] CRITICAL __main__: Caught unrecoverable exception:
Aug 26 13:53:23 raspberrypi weewx[1528] CRITICAL __main__:     ****  Gw1000Collector needs to shutdown
Aug 26 13:53:23 raspberrypi weewx[1528] CRITICAL __main__:     ****  Traceback (most recent call last):
Aug 26 13:53:23 raspberrypi weewx[1528] CRITICAL __main__:     ****    File "/usr/share/weewx/weewxd", line 154, in main
Aug 26 13:53:23 raspberrypi weewx[1528] CRITICAL __main__:     ****      engine.run()
Aug 26 13:53:23 raspberrypi weewx[1528] CRITICAL __main__:     ****    File "/usr/share/weewx/weewx/engine.py", line 188, in run
Aug 26 13:53:23 raspberrypi weewx[1528] CRITICAL __main__:     ****      for packet in self.console.genLoopPackets():
Aug 26 13:53:23 raspberrypi weewx[1528] CRITICAL __main__:     ****    File "/usr/share/weewx/user/gw1000.py", line 1499, in genLoopPackets
Aug 26 13:53:23 raspberrypi weewx[1528] CRITICAL __main__:     ****      raise GW1000IOError("Gw1000Collector needs to shutdown")
Aug 26 13:53:23 raspberrypi weewx[1528] CRITICAL __main__:     ****  user.gw1000.GW1000IOError: Gw1000Collector needs to shutdown
Aug 26 13:53:23 raspberrypi weewx[1528] CRITICAL __main__:     ****  Exiting.
Aug 26 13:56:21 raspberrypi rngd[346]: stats: bits received from HRNG source: 80064
Aug 26 13:56:21 raspberrypi rngd[346]: stats: bits sent to kernel pool: 34336
Aug 26 13:56:21 raspberrypi rngd[346]: stats: entropy added to kernel pool: 34336
Aug 26 13:56:21 raspberrypi rngd[346]: stats: FIPS 140-2 successes: 4
Aug 26 13:56:21 raspberrypi rngd[346]: stats: FIPS 140-2 failures: 0
Aug 26 13:56:21 raspberrypi rngd[346]: stats: FIPS 140-2(2001-10-10) Monobit: 0
Aug 26 13:56:21 raspberrypi rngd[346]: stats: FIPS 140-2(2001-10-10) Poker: 0
Aug 26 13:56:21 raspberrypi rngd[346]: stats: FIPS 140-2(2001-10-10) Runs: 0
Aug 26 13:56:21 raspberrypi rngd[346]: stats: FIPS 140-2(2001-10-10) Long run: 0
Aug 26 13:56:21 raspberrypi rngd[346]: stats: FIPS 140-2(2001-10-10) Continuous run: 0
Aug 26 13:56:21 raspberrypi rngd[346]: stats: HRNG source speed: (min=108.054; avg=181.075; max=501.882)Kibits/s
Aug 26 13:56:21 raspberrypi rngd[346]: stats: FIPS tests speed: (min=5.796; avg=9.849; max=15.685)Mibits/s
Aug 26 13:56:21 raspberrypi rngd[346]: stats: Lowest ready-buffers level: 2
Aug 26 13:56:21 raspberrypi rngd[346]: stats: Entropy starvations: 0
Aug 26 13:56:21 raspberrypi rngd[346]: stats: Time spent starving for entropy: (min=0; avg=0.000; max=0)us
Aug 26 14:17:01 raspberrypi CRON[2517]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
Aug 26 14:56:21 raspberrypi rngd[346]: stats: bits received from HRNG source: 120064
Aug 26 14:56:21 raspberrypi rngd[346]: stats: bits sent to kernel pool: 64096
Aug 26 14:56:21 raspberrypi rngd[346]: stats: entropy added to kernel pool: 64096

gjr80

unread,
Aug 27, 2020, 9:15:27 AM8/27/20
to weewx-user
Thanks Luke, I have a logic error in the code that sends commands direct to the GW1000 API. Under certain circumstances the code incorrectly signals that it needs to shutdown which for a driver causes WeeWX to shutdown. I am working through problem now and should have  fix in a day or so.

Gary

Luke Marcum

unread,
Aug 28, 2020, 3:45:47 PM8/28/20
to weewx-user
Ok, thanks!

Luke Marcum

unread,
Sep 5, 2020, 5:11:18 PM9/5/20
to weewx-user
Have you go the new GW1000 driver ready to download yet?  If so, how can I do it? Sorry for all the trouble!

gjr80

unread,
Sep 5, 2020, 5:59:11 PM9/5/20
to weewx-user
Yes, the b12 release was notified here. Just install b12 over the top of your current version.

Gary

Luke Marcum

unread,
Sep 6, 2020, 5:20:13 PM9/6/20
to weewx-user
Ok, so im trying to install the new realease and heres what happens. 

pi@raspberrypi:~ $ wee_extension --install=/var/tmp/gw1000-0.1.0b12.tar.gz
Request to install '/var/tmp/gw1000-0.1.0b12.tar.gz'
Extracting from tar archive /var/tmp/gw1000-0.1.0b12.tar.gz
Traceback (most recent call last):
  File "/usr/share/weewx/wee_extension", line 88, in <module>
    main()
  File "/usr/share/weewx/wee_extension", line 80, in main
    ext.install_extension(options.install)
  File "/usr/share/weewx/weecfg/extension.py", line 123, in install_extension
    self.install_from_dir(extension_dir)
  File "/usr/share/weewx/weecfg/extension.py", line 181, in install_from_dir
    shutil.copy(source_path, destination_path)
  File "/usr/lib/python3.7/shutil.py", line 245, in copy
    copyfile(src, dst, follow_symlinks=follow_symlinks)
  File "/usr/lib/python3.7/shutil.py", line 121, in copyfile
    with open(dst, 'wb') as fdst:
PermissionError: [Errno 13] Permission denied: '/usr/share/weewx/user/gw1000.py'


gjr80

unread,
Sep 6, 2020, 5:22:05 PM9/6/20
to weewx-user
Try prefixing wee_extension with sudo.

Gary

Luke Marcum

unread,
Sep 6, 2020, 5:30:12 PM9/6/20
to weewx-user
Ok, it worked.  Now how can I test to see if its working right?

Luke Marcum

unread,
Sep 6, 2020, 5:39:42 PM9/6/20
to weewx-user
Its currently working.  I'm going to let it run for a week or two to make sure it works then arrange it where it updates to my website.  Thanks so much for all your help!

gjr80

unread,
Sep 6, 2020, 5:47:08 PM9/6/20
to weewx-user
The error you were seeing above resulted from the driver incorrectly discovering/re-establishing contact following lost contact with the GW1000. It was not clear as to the cause of the lost contact, it could any of a multitude of causes, but it did seem to recur regularly. I would set debug = 1 and run the driver as normal. Any failure to re-establish contact (causing WeeWX to exit) after a lost contact means I still don’t have it right. If you experience lost contact and the driver successfully re-establishes contact then maybe I have it right. I would be monitoring your logs for a few days to see if there is any lost contact and successful re-established contact. If after a few days there have been some successful recoveries from lost contact and there have been no WeeWX exits due to lost contact I would set debug = 0 and consider it fixed.

Gary

On Monday, 7 September 2020 at 07:20:13 UTC+10 eastcentra...@gmail.com wrote:

Graham Eddy

unread,
Sep 6, 2020, 11:30:15 PM9/6/20
to weewx...@googlegroups.com
interesting. i have been running gw1000.py b12 since its release, and stopped watching closely as it was all working fine (no weewx losses - apart from pm2.5 sensors, which is different story). now that i go back to logs (debug==1), i see gw1000 service reported about 24 errors over last 36 hours at apparently random intervals (5 mins to 5 hours). service recovers cleanly, so i hadn’t noticed.
but it shows how critical the recovery function is to the gw1000 service - who know what evil lurks under the “WS View” phone app provided...

mostly gw1000 service reports a single timeout.
Sep  7 11:34:19 dizzy weewx[7853] DEBUG user.gw1000: Next update in 20 seconds
Sep  7 11:34:41 dizzy weewx[7853] DEBUG user.gw1000: Failed to obtain response to attempt 1 to send command 'CMD_GW1000_LIVEDATA': timed out
Sep  7 11:34:52 dizzy weewx[7853] DEBUG user.gw1000: Next update in 20 seconds

occasionally it is a "connection reset" - presumably just happens to catch the GW1000 controller while it is failing.
Sep  7 02:27:41 dizzy weewx[7853] DEBUG user.gw1000: Next update in 20 seconds
Sep  7 02:28:02 dizzy weewx[7853] DEBUG user.gw1000: Failed attempt 1 to send command 'CMD_READ_SENSOR_ID': [Errno 104] Connection reset by peer
Sep  7 02:28:13 dizzy weewx[7853] DEBUG user.gw1000: Next update in 20 seconds
Sep  7 02:28:21 dizzy weewx[7853] DEBUG user.gw1000: Next update in 20 seconds
Sep  7 02:28:21 dizzy weewx[7853] INFO user.gw1000: Lightning counter wraparound detected: new=0 last=1
Sep  7 02:28:41 dizzy weewx[7853] DEBUG user.gw1000: Next update in 20 seconds

in my case, it is not a DHCP issue as the ipaddr doesn’t change, the period between failures is far too short for lease expiries, and it is assigned ipaddr by mac address anyway. prime facie the GW1000 controller (or at least its wifi interface) is resetting itself at random intervals. has this behaviour been seen elsewhere?

now i bring in my pm2.5 sensors reporting to the GW1000 controller. i have two. they both reset sporadically (losing state, so it is not just interface reset), and often at the same time. this interval appears to be several days, not 1½ hours like above. i wonder if it is related to the apparent GW1000 controller resets

gjr80

unread,
Sep 7, 2020, 9:32:39 AM9/7/20
to weewx-user
The failed attempts highlighted below are exactly that; a failed attempt to communicate with the GW1000 (and in each case attempt 2 was successful). When sending a command to the GW1000 the driver will attempt to send the command (and obtain a response) a set number of times (three is the default) before giving up. This is fairly standard behaviour in most WeeWX drivers. It is only once all attempts fail that the driver considers contact with the GW1000 has been lost and the 'lost contact' procedure implemented.

As for the frequency of failed attempts, I have noticed the odd failure during testing/development which I have put down to the vagaries of communicating with a device over a network/wifi or the device being busy while doing something else (posting to WU/Ecowitt, talking to sensors etc). Can't say I have seen any 104 errors, only timeouts. Such problems will not be IP address issues as the second or third attempt works and a changed IP address would result in all attempts failing (the driver will only work through lost contact if all three attempts fail). I don't run my on-line GW1000 instance with debug=1 so I would not see any single or double attempt failures there and I am yet to have an all attempts failure. I might try running with debug=1 to see if there are any single or double failures.

Can't say I have seen any pm2.5 anomalies such as you describe either.

Gary
Reply all
Reply to author
Forward
0 new messages