I'm a new user to weewx running on a raspberry pi 3 connected to the 
weatherstation Renkforce WH2300. And I have some spurious problems where I 
need some help:

Raspberry pi 3, 16GB sdcard,
network connection via wifi,
2A power supply for raspberry pi,
batteries within weatherstation (BTW I believe that USB connection will 
power weatherstation, too)
cat /etc/issue --> Raspbian GNU/Linux 9, uname -a --> Linux IMURR9 
4.9.59-v7+ #1047 SMP Sun Oct 29 12:19:23 GMT 2017 armv7l

I gradually added functionality to weewx in the following sequence
- base installation weewx 3.8.0 + wh23xx driver 0.14
- nginx Web server on the same pi
- upload towards wunderground
- German Sofaskin_1.1_DE, partly tweaked to match my preferences
- forecast plugin 3.2.19
- pyephem 3.7.6.0
- reboot once per day at around midnight

Everything worked smooth but some problems started after installing the 
forecast plugin. Randomly for a short timespan data from the sensor array 
was missing. The amount of missing data continuously increased from day to 
day. Thus I assumed bad batteries within the sensor array are the problem 
(it worked without any problem for about 2 weeks even for outside 
temperature ~ -10°C). First I tried a reset/resync of my weatherstation. 
Afterwards it worked for 1..2 days, then the gaps increased again (in the 
meantime outside temperature was at +5°C or above). Yesterday the 
connection to the sensor array was more or less completely broken. Thus I 
replaced the orginal rechargeable batteries by standard alkaline batteries 
- immedeately the connection worked smooth again.

Thus: All problems solved (but why do I post that at all)? No, during last 
night again (one small) gap appeared within the data despite new batteries. 
Ok, then I inspected the logfiles from weewx to search for potential 
reasons. I have no real clue about the cause of my problem since there are 
some different kinds of errors:

2..3 times per day
Mär 11 00:02:15 IMURR9 kernel: usb 1-1.3: reset full-speed USB device 
number 4 using dwc_otg

during boot: I wonder that there were never ids be printed from "Found 
device ..." - but the USB connection always works:
Mär 11 07:43:13 IMURR9 weewx[3157]: wh23xx: driver version is 0.14
Mär 11 07:43:13 IMURR9 weewx[3157]: wh23xx: usb info: pyusb_version=1.0.0
Mär 11 07:43:13 IMURR9 weewx[3157]: wh23xx: poll interval is 15
Mär 11 07:43:13 IMURR9 weewx[3157]: wh23xx: Found device on USB bus= device=
Mär 11 07:43:13 IMURR9 kernel: usb 1-1.3: reset full-speed USB device 
number 4 using dwc_otg
Mär 11 07:43:13 IMURR9 weewx[3157]: engine: StdConvert target unit is 0x1
Mär 11 07:43:13 IMURR9 weewx[3157]: wxcalculate: The following values will 
be calculated: barometer=prefer_hardware, windchill=prefer_hardware, 
dewpoint=prefer_hardware, appTemp=prefer_hardware, 
rainRate=prefer_hardware, windrun=prefer_hardware, heatindex=prefer_hardware
Mär 11 07:43:13 IMURR9 weewx[3157]: wxcalculate: The following algorithms 
will be used for calculations: altimeter=aaNOAA, maxSolarRad=RS
Mär 11 07:43:13 IMURR9 weewx[3157]: engine: Archive will use data binding 
wx_binding
Mär 11 07:43:13 IMURR9 weewx[3157]: engine: Record generation will be 
attempted in 'hardware'
Mär 11 07:43:13 IMURR9 weewx[3157]: engine: Using archive interval of 300 
seconds (specified in weewx configuration)
Mär 11 07:43:13 IMURR9 weewx[3157]: engine: Using binding 'wx_binding' to 
database 'weewx.sdb'
Mär 11 07:43:13 IMURR9 weewx[3157]: manager: Starting backfill of daily 
summaries

sometimes per day
Mär 11 08:17:23 IMURR9 weewx[3157]: wh23xx: get_current: failed attempt 1 
of 5: [Errno 110] Operation timed out
Mär 11 08:17:50 IMURR9 weewx[3157]: wh23xx: get_current: failed attempt 1 
of 5: [Errno 110] Operation timed out
Mär 11 08:18:16 IMURR9 weewx[3157]: wh23xx: get_current: failed attempt 1 
of 5: [Errno 110] Operation timed out
Mär 11 08:18:43 IMURR9 weewx[3157]: wh23xx: get_current: failed attempt 1 
of 5: [Errno 110] Operation timed out
Mär 11 08:19:10 IMURR9 weewx[3157]: wh23xx: get_current: failed attempt 1 
of 5: [Errno 110] Operation timed out
Mär 11 08:19:36 IMURR9 weewx[3157]: wh23xx: get_current: failed attempt 1 
of 5: [Errno 110] Operation timed out
Mär 11 08:20:03 IMURR9 weewx[3157]: wh23xx: get_current: failed attempt 1 
of 5: [Errno 110] Operation timed out

once per day
Mär 11 03:40:30 IMURR9 weewx[532]: cheetahgenerator: Generate failed with 
exception '<class 'sqlite3.OperationalError'>'
Mär 11 03:40:30 IMURR9 weewx[532]: cheetahgenerator: **** Ignoring template 
/etc/weewx/skins/forecast/compact.html.tmpl
Mär 11 03:40:30 IMURR9 weewx[532]: cheetahgenerator: **** Reason: database 
is locked
Mär 11 03:40:31 IMURR9 weewx[532]: forecast: WUThread: WU: deleted 
forecasts prior to 1520131228
Mär 11 03:40:31 IMURR9 weewx[532]: ****  Traceback (most recent call last):
Mär 11 03:40:31 IMURR9 weewx[532]: ****    File 
"/usr/share/weewx/weewx/cheetahgenerator.py", line 330, in generate
Mär 11 03:40:31 IMURR9 weewx[532]: ****      print >> _file, 
compiled_template
Mär 11 03:40:31 IMURR9 weewx[532]: ****    File 
"/usr/lib/python2.7/dist-packages/Cheetah/Template.py", line 1005, in 
__str__
Mär 11 03:40:31 IMURR9 weewx[532]: ****      rc = getattr(self, 
mainMethName)()
Mär 11 03:40:31 IMURR9 weewx[532]: ****    File 
"_etc_weewx_skins_forecast_compact_html_tmpl.py", line 103, in respond
Mär 11 03:40:31 IMURR9 weewx[532]: ****    File 
"/usr/lib/python2.7/dist-packages/Cheetah/Template.py", line 1615, in 
_handleCheetahInclude
Mär 11 03:40:31 IMURR9 weewx[532]: ****      
self._CHEETAH__cheetahIncludes[_includeID].respond(trans)
Mär 11 03:40:31 IMURR9 weewx[532]: ****    File 
"_etc_weewx_skins_forecast_forecast_compact_inc.py", line 154, in respond
Mär 11 03:40:31 IMURR9 weewx[532]: ****    File 
"/usr/share/weewx/user/forecast.py", line 4038, in weather_periods
Mär 11 03:40:31 IMURR9 weewx[532]: ****      records = 
self._getRecords(fid, from_ts, to_ts, max_events=max_events)
Mär 11 03:40:31 IMURR9 weewx[532]: ****    File 
"/usr/share/weewx/user/forecast.py", line 3908, in _getRecords
Mär 11 03:40:31 IMURR9 weewx[532]: ****      with 
weewx.manager.open_manager(dbm_dict) as dbm:
Mär 11 03:40:31 IMURR9 weewx[532]: ****    File 
"/usr/share/weewx/weewx/manager.py", line 1009, in open_manager
Mär 11 03:40:31 IMURR9 weewx[532]: ****      manager_dict['table_name'])
Mär 11 03:40:31 IMURR9 weewx[532]: ****    File 
"/usr/share/weewx/weewx/manager.py", line 104, in open
Mär 11 03:40:31 IMURR9 weewx[532]: ****      dbmanager = cls(connection, 
table_name)
Mär 11 03:40:31 IMURR9 weewx[532]: ****    File 
"/usr/share/weewx/weewx/manager.py", line 72, in __init__
Mär 11 03:40:31 IMURR9 weewx[532]: ****      self.sqlkeys = 
self.connection.columnsOf(self.table_name)
Mär 11 03:40:31 IMURR9 weewx[532]: ****    File 
"/usr/share/weewx/weedb/sqlite.py", line 167, in columnsOf
Mär 11 03:40:31 IMURR9 weewx[532]: ****      column_list = [row[1] for row 
in self.genSchemaOf(table)]
Mär 11 03:40:31 IMURR9 weewx[532]: ****    File 
"/usr/share/weewx/weedb/sqlite.py", line 156, in genSchemaOf
Mär 11 03:40:31 IMURR9 weewx[532]: ****      for row in 
self.connection.execute("""PRAGMA table_info(%s);""" % table):
Mär 11 03:40:31 IMURR9 weewx[532]: ****  OperationalError: database is 
locked
Mär 11 03:41:25 IMURR9 weewx[532]: cheetahgenerator: Generated 11 files for 
report forecast in 59.72 seconds



-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to