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 ''
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