Re: [weewx-user] spurious gaps within weather data - wh23xx on raspberry pi 3

2021-02-17 Thread 'Michael Waldor' via weewx-user
My watchdog is a very simple minded one - it regularly (once per minute 
using cron) searches /var/log/messages for USB messages. If it detects some 
the raspi will be automatically rebooted.

Sadly currently I've no access to my scripts - drop me a note if you still 
need it. Then I'll look into that ...

To be honest I do not know why my USB problems were solved. But besides 
updating involved software versions, I also started new services (e.g. 
Kodi), added an USB diskdrive, and a USB rs232 interface. For that I 
changed the USB ports (to avoid cable cluttering:-). Maybe your problem is 
simply solved by using another USB port? Or improving contacts by 
unplug/plugging?


Regards, Michael
Michael Waldor schrieb am Dienstag, 9. Februar 2021 um 10:34:06 UTC+1:

> In the meantime all my problems seem to be resolved - probabely due to 
> recent software updates:
>
> 1. No longer any USB problem after upgrading to recent raspbian (buster 
> 5.4.72-v7+).
> Previously, I encountered USB problems after some weeks. To detect them I 
> wrote a simple watchdog and rebooted my raspberry automatically. After 
> reboot USB always did recover. Additionally I did a reboot once per day. 
> Now these problems are gone, and my raspberry  is up since 38 days (the 
> day when I did the upgrade onto buster).
>
> 2. I've updated to weewx 4.x based with python 3.
> Beware, to use python 3 you have to use ANOTHER repository (see the 
> corresponding weewx documentation). If you don't switch the repository you 
> will stay with python 2. AND you must use special releases of the wh23xx 
> driver (NOT the official one, it's still at pyhton 2 as far as I know) and 
> for forecast.
>
> Concluding: After all these changes all my problems with that kind of 
> weather station are gone. Maybe one exception: If there is very heavy rain, 
> the base station will loose its contact with the sensor array despite the 
> short distance (only some meters). But of course that's not a weewx problem.
>
> I even use the same raspberry to run FHEM smart home and kodi multimedia.
> holger...@gmail.com schrieb am Montag, 8. Februar 2021 um 17:53:00 UTC+1:
>
>> Hi there,
>>
>> same thing here.
>>
>>
>>- WH2315 (Renkforce from Conrad)
>>- RaspberryPi 3B
>>- weewx 4.3.0
>>- Python 3.7
>>- SofaskinCW9009
>>- driver: wh23xx (EdwinGH fork)
>>
>> I'm also experiencing data gaps / lockups at random intervals (> once per 
>> day). I suspected RFI -> put RF chokes on all cables to an from the pi 
>> (snap ferrites and ferrite rings), shielded the USB cable with aluminum 
>> foil: problem persists.
>>
>> Of course I also changed the batteries in the outdoor unit: problem 
>> pesists.
>>
>> Here's the log:
>>
>> Feb  8 17:39:31 raspberrypi weewx[623] INFO weewx.cheetahgenerator: 
>> Generated 8 files for report SeasonsReport in 1.85 seconds
>> Feb  8 17:39:31 raspberrypi weewx[623] DEBUG weewx.manager: Daily summary 
>> version is 3.0
>> Feb  8 17:39:33 raspberrypi weewx[623] INFO weewx.imagegenerator: 
>> Generated 15 images for report SeasonsReport in 1.66 seconds
>> Feb  8 17:39:33 raspberrypi weewx[623] INFO weewx.reportengine: Copied 0 
>> files to /var/www/html
>> Feb  8 17:39:33 raspberrypi weewx[623] DEBUG weewx.reportengine: Running 
>> report 'SmartphoneReport'
>> Feb  8 17:39:33 raspberrypi weewx[623] DEBUG weewx.reportengine: Found 
>> configuration file /etc/weewx/skins/Smartphone/skin.conf for report 
>> 'SmartphoneReport'
>> Feb  8 17:39:33 raspberrypi weewx[623] DEBUG weewx.cheetahgenerator: 
>> Using search list ['weewx.cheetahgenerator.Almanac', 
>> 'weewx.cheetahgenerator.Station', 'weewx.cheetahgenerator.Current', 
>> 'weewx.cheetahgenerator.Stats', 'weewx.cheetahgenerator.UnitInfo', 
>> 'weewx.cheetahgenerator.Extras']
>> Feb  8 17:39:33 raspberrypi weewx[623] DEBUG weewx.manager: Daily summary 
>> version is 3.0
>> Feb  8 17:39:33 raspberrypi weewx[623] INFO weewx.cheetahgenerator: 
>> Generated 6 files for report SmartphoneReport in 0.11 seconds
>> Feb  8 17:39:33 raspberrypi weewx[623] DEBUG weewx.manager: Daily summary 
>> version is 3.0
>> Feb  8 17:39:33 raspberrypi weewx[623] INFO weewx.imagegenerator: 
>> Generated 6 images for report SmartphoneReport in 0.61 seconds
>> Feb  8 17:39:33 raspberrypi weewx[623] INFO weewx.reportengine: Copied 0 
>> files to /var/www/html/weewx/smartphone
>> Feb  8 17:39:33 raspberrypi weewx[623] DEBUG weewx.reportengine: Running 
>> report 'MobileReport'
>> Feb  8 17:39:34 raspberrypi weewx[623] DEBUG weewx.reportengine: Found 
>> configuration file /etc/weewx/skins/Mobile/skin.conf for report 
>> 'MobileReport'
>> Feb  8 17:39:34 raspberrypi weewx[623] DEBUG weewx.cheetahgenerator: 
>> Using search list ['weewx.cheetahgenerator.Almanac', 
>> 'weewx.cheetahgenerator.Station', 'weewx.cheetahgenerator.Current', 
>> 'weewx.cheetahgenerator.Stats', 'weewx.cheetahgenerator.UnitInfo', 
>> 'weewx.cheetahgenerator.Extras']
>> Feb  8 17:39:34 raspberrypi weewx[623] DEBUG weewx.manager: 

Re: [weewx-user] spurious gaps within weather data - wh23xx on raspberry pi 3

2021-02-12 Thread Holger Megies
I'm also running buster and yet I have those strange USB problems. The 
watchdog sounds like the perfect solution for me (until I'm able to solve 
the problem otherwise). I know where to find and how to activate it. Could 
you give me some details on how to identify the proper USB port and then 
monitor it? I suppose I need to tell the watchdog to monitor a certain 
"file = ...". But which file? I'm still a "learner"... 

Cheers
Holger

miwa...@googlemail.com schrieb am Dienstag, 9. Februar 2021 um 10:34:06 
UTC+1:

> In the meantime all my problems seem to be resolved - probabely due to 
> recent software updates:
>
> 1. No longer any USB problem after upgrading to recent raspbian (buster 
> 5.4.72-v7+).
> Previously, I encountered USB problems after some weeks. To detect them I 
> wrote a simple watchdog and rebooted my raspberry automatically. After 
> reboot USB always did recover. Additionally I did a reboot once per day. 
> Now these problems are gone, and my raspberry  is up since 38 days (the 
> day when I did the upgrade onto buster).
>
> 2. I've updated to weewx 4.x based with python 3.
> Beware, to use python 3 you have to use ANOTHER repository (see the 
> corresponding weewx documentation). If you don't switch the repository you 
> will stay with python 2. AND you must use special releases of the wh23xx 
> driver (NOT the official one, it's still at pyhton 2 as far as I know) and 
> for forecast.
>
> Concluding: After all these changes all my problems with that kind of 
> weather station are gone. Maybe one exception: If there is very heavy rain, 
> the base station will loose its contact with the sensor array despite the 
> short distance (only some meters). But of course that's not a weewx problem.
>
> I even use the same raspberry to run FHEM smart home and kodi multimedia.
> holger...@gmail.com schrieb am Montag, 8. Februar 2021 um 17:53:00 UTC+1:
>
>> Hi there,
>>
>> same thing here.
>>
>>
>>- WH2315 (Renkforce from Conrad)
>>- RaspberryPi 3B
>>- weewx 4.3.0
>>- Python 3.7
>>- SofaskinCW9009
>>- driver: wh23xx (EdwinGH fork)
>>
>> I'm also experiencing data gaps / lockups at random intervals (> once per 
>> day). I suspected RFI -> put RF chokes on all cables to an from the pi 
>> (snap ferrites and ferrite rings), shielded the USB cable with aluminum 
>> foil: problem persists.
>>
>> Of course I also changed the batteries in the outdoor unit: problem 
>> pesists.
>>
>> Here's the log:
>>
>> Feb  8 17:39:31 raspberrypi weewx[623] INFO weewx.cheetahgenerator: 
>> Generated 8 files for report SeasonsReport in 1.85 seconds
>> Feb  8 17:39:31 raspberrypi weewx[623] DEBUG weewx.manager: Daily summary 
>> version is 3.0
>> Feb  8 17:39:33 raspberrypi weewx[623] INFO weewx.imagegenerator: 
>> Generated 15 images for report SeasonsReport in 1.66 seconds
>> Feb  8 17:39:33 raspberrypi weewx[623] INFO weewx.reportengine: Copied 0 
>> files to /var/www/html
>> Feb  8 17:39:33 raspberrypi weewx[623] DEBUG weewx.reportengine: Running 
>> report 'SmartphoneReport'
>> Feb  8 17:39:33 raspberrypi weewx[623] DEBUG weewx.reportengine: Found 
>> configuration file /etc/weewx/skins/Smartphone/skin.conf for report 
>> 'SmartphoneReport'
>> Feb  8 17:39:33 raspberrypi weewx[623] DEBUG weewx.cheetahgenerator: 
>> Using search list ['weewx.cheetahgenerator.Almanac', 
>> 'weewx.cheetahgenerator.Station', 'weewx.cheetahgenerator.Current', 
>> 'weewx.cheetahgenerator.Stats', 'weewx.cheetahgenerator.UnitInfo', 
>> 'weewx.cheetahgenerator.Extras']
>> Feb  8 17:39:33 raspberrypi weewx[623] DEBUG weewx.manager: Daily summary 
>> version is 3.0
>> Feb  8 17:39:33 raspberrypi weewx[623] INFO weewx.cheetahgenerator: 
>> Generated 6 files for report SmartphoneReport in 0.11 seconds
>> Feb  8 17:39:33 raspberrypi weewx[623] DEBUG weewx.manager: Daily summary 
>> version is 3.0
>> Feb  8 17:39:33 raspberrypi weewx[623] INFO weewx.imagegenerator: 
>> Generated 6 images for report SmartphoneReport in 0.61 seconds
>> Feb  8 17:39:33 raspberrypi weewx[623] INFO weewx.reportengine: Copied 0 
>> files to /var/www/html/weewx/smartphone
>> Feb  8 17:39:33 raspberrypi weewx[623] DEBUG weewx.reportengine: Running 
>> report 'MobileReport'
>> Feb  8 17:39:34 raspberrypi weewx[623] DEBUG weewx.reportengine: Found 
>> configuration file /etc/weewx/skins/Mobile/skin.conf for report 
>> 'MobileReport'
>> Feb  8 17:39:34 raspberrypi weewx[623] DEBUG weewx.cheetahgenerator: 
>> Using search list ['weewx.cheetahgenerator.Almanac', 
>> 'weewx.cheetahgenerator.Station', 'weewx.cheetahgenerator.Current', 
>> 'weewx.cheetahgenerator.Stats', 'weewx.cheetahgenerator.UnitInfo', 
>> 'weewx.cheetahgenerator.Extras']
>> Feb  8 17:39:34 raspberrypi weewx[623] DEBUG weewx.manager: Daily summary 
>> version is 3.0
>> Feb  8 17:39:34 raspberrypi weewx[623] INFO weewx.cheetahgenerator: 
>> Generated 1 files for report MobileReport in 0.05 seconds
>> Feb  8 17:39:34 raspberrypi weewx[623] DEBUG weewx.manager: Daily summary 
>> 

Re: [weewx-user] spurious gaps within weather data - wh23xx on raspberry pi 3

2021-02-09 Thread 'Michael Waldor' via weewx-user
In the meantime all my problems seem to be resolved - probabely due to 
recent software updates:

1. No longer any USB problem after upgrading to recent raspbian (buster 
5.4.72-v7+).
Previously, I encountered USB problems after some weeks. To detect them I 
wrote a simple watchdog and rebooted my raspberry automatically. After 
reboot USB always did recover. Additionally I did a reboot once per day. 
Now these problems are gone, and my raspberry  is up since 38 days (the day 
when I did the upgrade onto buster).

2. I've updated to weewx 4.x based with python 3.
Beware, to use python 3 you have to use ANOTHER repository (see the 
corresponding weewx documentation). If you don't switch the repository you 
will stay with python 2. AND you must use special releases of the wh23xx 
driver (NOT the official one, it's still at pyhton 2 as far as I know) and 
for forecast.

Concluding: After all these changes all my problems with that kind of 
weather station are gone. Maybe one exception: If there is very heavy rain, 
the base station will loose its contact with the sensor array despite the 
short distance (only some meters). But of course that's not a weewx problem.

I even use the same raspberry to run FHEM smart home and kodi multimedia.
holger...@gmail.com schrieb am Montag, 8. Februar 2021 um 17:53:00 UTC+1:

> Hi there,
>
> same thing here.
>
>
>- WH2315 (Renkforce from Conrad)
>- RaspberryPi 3B
>- weewx 4.3.0
>- Python 3.7
>- SofaskinCW9009
>- driver: wh23xx (EdwinGH fork)
>
> I'm also experiencing data gaps / lockups at random intervals (> once per 
> day). I suspected RFI -> put RF chokes on all cables to an from the pi 
> (snap ferrites and ferrite rings), shielded the USB cable with aluminum 
> foil: problem persists.
>
> Of course I also changed the batteries in the outdoor unit: problem 
> pesists.
>
> Here's the log:
>
> Feb  8 17:39:31 raspberrypi weewx[623] INFO weewx.cheetahgenerator: 
> Generated 8 files for report SeasonsReport in 1.85 seconds
> Feb  8 17:39:31 raspberrypi weewx[623] DEBUG weewx.manager: Daily summary 
> version is 3.0
> Feb  8 17:39:33 raspberrypi weewx[623] INFO weewx.imagegenerator: 
> Generated 15 images for report SeasonsReport in 1.66 seconds
> Feb  8 17:39:33 raspberrypi weewx[623] INFO weewx.reportengine: Copied 0 
> files to /var/www/html
> Feb  8 17:39:33 raspberrypi weewx[623] DEBUG weewx.reportengine: Running 
> report 'SmartphoneReport'
> Feb  8 17:39:33 raspberrypi weewx[623] DEBUG weewx.reportengine: Found 
> configuration file /etc/weewx/skins/Smartphone/skin.conf for report 
> 'SmartphoneReport'
> Feb  8 17:39:33 raspberrypi weewx[623] DEBUG weewx.cheetahgenerator: Using 
> search list ['weewx.cheetahgenerator.Almanac', 
> 'weewx.cheetahgenerator.Station', 'weewx.cheetahgenerator.Current', 
> 'weewx.cheetahgenerator.Stats', 'weewx.cheetahgenerator.UnitInfo', 
> 'weewx.cheetahgenerator.Extras']
> Feb  8 17:39:33 raspberrypi weewx[623] DEBUG weewx.manager: Daily summary 
> version is 3.0
> Feb  8 17:39:33 raspberrypi weewx[623] INFO weewx.cheetahgenerator: 
> Generated 6 files for report SmartphoneReport in 0.11 seconds
> Feb  8 17:39:33 raspberrypi weewx[623] DEBUG weewx.manager: Daily summary 
> version is 3.0
> Feb  8 17:39:33 raspberrypi weewx[623] INFO weewx.imagegenerator: 
> Generated 6 images for report SmartphoneReport in 0.61 seconds
> Feb  8 17:39:33 raspberrypi weewx[623] INFO weewx.reportengine: Copied 0 
> files to /var/www/html/weewx/smartphone
> Feb  8 17:39:33 raspberrypi weewx[623] DEBUG weewx.reportengine: Running 
> report 'MobileReport'
> Feb  8 17:39:34 raspberrypi weewx[623] DEBUG weewx.reportengine: Found 
> configuration file /etc/weewx/skins/Mobile/skin.conf for report 
> 'MobileReport'
> Feb  8 17:39:34 raspberrypi weewx[623] DEBUG weewx.cheetahgenerator: Using 
> search list ['weewx.cheetahgenerator.Almanac', 
> 'weewx.cheetahgenerator.Station', 'weewx.cheetahgenerator.Current', 
> 'weewx.cheetahgenerator.Stats', 'weewx.cheetahgenerator.UnitInfo', 
> 'weewx.cheetahgenerator.Extras']
> Feb  8 17:39:34 raspberrypi weewx[623] DEBUG weewx.manager: Daily summary 
> version is 3.0
> Feb  8 17:39:34 raspberrypi weewx[623] INFO weewx.cheetahgenerator: 
> Generated 1 files for report MobileReport in 0.05 seconds
> Feb  8 17:39:34 raspberrypi weewx[623] DEBUG weewx.manager: Daily summary 
> version is 3.0
> Feb  8 17:39:34 raspberrypi weewx[623] INFO weewx.imagegenerator: 
> Generated 4 images for report MobileReport in 0.46 seconds
> Feb  8 17:39:34 raspberrypi weewx[623] INFO weewx.reportengine: Copied 0 
> files to /var/www/html/weewx/mobile
> Feb  8 17:39:34 raspberrypi weewx[623] DEBUG weewx.reportengine: Running 
> report 'StandardReport'
> Feb  8 17:39:34 raspberrypi weewx[623] DEBUG weewx.reportengine: Found 
> configuration file /etc/weewx/skins/SofaCW/skin.conf for report 
> 'StandardReport'
> Feb  8 17:39:34 raspberrypi weewx[623] DEBUG weewx.cheetahgenerator: Using 
> search list 

Re: [weewx-user] spurious gaps within weather data - wh23xx on raspberry pi 3

2021-02-08 Thread Holger Megies
Hi there,

same thing here.


   - WH2315 (Renkforce from Conrad)
   - RaspberryPi 3B
   - weewx 4.3.0
   - Python 3.7
   - SofaskinCW9009
   - driver: wh23xx (EdwinGH fork)

I'm also experiencing data gaps / lockups at random intervals (> once per 
day). I suspected RFI -> put RF chokes on all cables to an from the pi 
(snap ferrites and ferrite rings), shielded the USB cable with aluminum 
foil: problem persists.

Of course I also changed the batteries in the outdoor unit: problem pesists.

Here's the log:

Feb  8 17:39:31 raspberrypi weewx[623] INFO weewx.cheetahgenerator: 
Generated 8 files for report SeasonsReport in 1.85 seconds
Feb  8 17:39:31 raspberrypi weewx[623] DEBUG weewx.manager: Daily summary 
version is 3.0
Feb  8 17:39:33 raspberrypi weewx[623] INFO weewx.imagegenerator: Generated 
15 images for report SeasonsReport in 1.66 seconds
Feb  8 17:39:33 raspberrypi weewx[623] INFO weewx.reportengine: Copied 0 
files to /var/www/html
Feb  8 17:39:33 raspberrypi weewx[623] DEBUG weewx.reportengine: Running 
report 'SmartphoneReport'
Feb  8 17:39:33 raspberrypi weewx[623] DEBUG weewx.reportengine: Found 
configuration file /etc/weewx/skins/Smartphone/skin.conf for report 
'SmartphoneReport'
Feb  8 17:39:33 raspberrypi weewx[623] DEBUG weewx.cheetahgenerator: Using 
search list ['weewx.cheetahgenerator.Almanac', 
'weewx.cheetahgenerator.Station', 'weewx.cheetahgenerator.Current', 
'weewx.cheetahgenerator.Stats', 'weewx.cheetahgenerator.UnitInfo', 
'weewx.cheetahgenerator.Extras']
Feb  8 17:39:33 raspberrypi weewx[623] DEBUG weewx.manager: Daily summary 
version is 3.0
Feb  8 17:39:33 raspberrypi weewx[623] INFO weewx.cheetahgenerator: 
Generated 6 files for report SmartphoneReport in 0.11 seconds
Feb  8 17:39:33 raspberrypi weewx[623] DEBUG weewx.manager: Daily summary 
version is 3.0
Feb  8 17:39:33 raspberrypi weewx[623] INFO weewx.imagegenerator: Generated 
6 images for report SmartphoneReport in 0.61 seconds
Feb  8 17:39:33 raspberrypi weewx[623] INFO weewx.reportengine: Copied 0 
files to /var/www/html/weewx/smartphone
Feb  8 17:39:33 raspberrypi weewx[623] DEBUG weewx.reportengine: Running 
report 'MobileReport'
Feb  8 17:39:34 raspberrypi weewx[623] DEBUG weewx.reportengine: Found 
configuration file /etc/weewx/skins/Mobile/skin.conf for report 
'MobileReport'
Feb  8 17:39:34 raspberrypi weewx[623] DEBUG weewx.cheetahgenerator: Using 
search list ['weewx.cheetahgenerator.Almanac', 
'weewx.cheetahgenerator.Station', 'weewx.cheetahgenerator.Current', 
'weewx.cheetahgenerator.Stats', 'weewx.cheetahgenerator.UnitInfo', 
'weewx.cheetahgenerator.Extras']
Feb  8 17:39:34 raspberrypi weewx[623] DEBUG weewx.manager: Daily summary 
version is 3.0
Feb  8 17:39:34 raspberrypi weewx[623] INFO weewx.cheetahgenerator: 
Generated 1 files for report MobileReport in 0.05 seconds
Feb  8 17:39:34 raspberrypi weewx[623] DEBUG weewx.manager: Daily summary 
version is 3.0
Feb  8 17:39:34 raspberrypi weewx[623] INFO weewx.imagegenerator: Generated 
4 images for report MobileReport in 0.46 seconds
Feb  8 17:39:34 raspberrypi weewx[623] INFO weewx.reportengine: Copied 0 
files to /var/www/html/weewx/mobile
Feb  8 17:39:34 raspberrypi weewx[623] DEBUG weewx.reportengine: Running 
report 'StandardReport'
Feb  8 17:39:34 raspberrypi weewx[623] DEBUG weewx.reportengine: Found 
configuration file /etc/weewx/skins/SofaCW/skin.conf for report 
'StandardReport'
Feb  8 17:39:34 raspberrypi weewx[623] 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.historygenerator.MyXSearch']
Feb  8 17:39:34 raspberrypi weewx[623] DEBUG weewx.manager: Daily summary 
version is 3.0
Feb  8 17:39:34 raspberrypi /weewxd: historygenerator.py: No bootstrap 
specific labels found
Feb  8 17:39:34 raspberrypi /weewxd: historygenerator.py: Generated 8 
tables in 0.08 seconds
Feb  8 17:39:36 raspberrypi weewx[623] INFO weewx.cheetahgenerator: 
Generated 10 files for report StandardReport in 1.52 seconds
Feb  8 17:39:36 raspberrypi weewx[623] DEBUG weewx.manager: Daily summary 
version is 3.0
Feb  8 17:39:37 raspberrypi weewx[623] INFO weewx.imagegenerator: Generated 
11 images for report StandardReport in 1.74 seconds
Feb  8 17:39:37 raspberrypi weewx[623] INFO weewx.reportengine: Copied 0 
files to /var/www/html
Feb  8 17:39:37 raspberrypi weewx[623] DEBUG weewx.reportengine: Report 
'FTP' not enabled. Skipping.
Feb  8 17:39:37 raspberrypi weewx[623] DEBUG weewx.reportengine: Report 
'RSYNC' not enabled. Skipping.
Feb  8 17:39:44 raspberrypi /weewxd: wh23xx: read_record: write: 02 02 04 
04 (len=4)
Feb  8 17:39:44 raspberrypi /weewxd: wh23xx: read_record: buf: 01 35 01 a5 
03 01 9a 04 01 a5 05 01 a5 06 33 07 5d 08 25 35 09 26 f9 0a 00 2d 0b 00 00 
0c 00 00 0e 00 00 00 00 10 00 00 00 2a 11 00 00 00 2a 12 00 00 01 14 13 00 
00 00 01 14 13 00 00 

Re: [weewx-user] spurious gaps within weather data - wh23xx on raspberry pi 3

2018-03-31 Thread Michale Waldor
Now I have tried two things:

1. I have moved the sensor array from balcony into the garden. Now there 
are no longer gaps in the data.

2. I have tried to use the power supply for my raspberry to also feed the 
base station. This worked for half a day - but in the early morning USB 
connection between base station and Raspy died completely. Thus I conclude 
that either my power supply is too weak, or there are some spikes on the 
power net which might have disturbed the base station. But only the USB 
connection has died, the weather station itself worked smoothly including 
logging of data.
Thus I have withdrawn my idea to use the power supply for the base station, 
too.

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


Re: [weewx-user] spurious gaps within weather data - wh23xx on raspberry pi 3

2018-03-18 Thread Michale Waldor
In the meantime I'm quite convinced that my problem is power supply of my 
sensor array or radio transmissionproblems. If I replace the batteries my 
problem is immedeately resolved, but only for a limited amount of time 
(some days or some hours).

Within the next weeks I'll proceed to experiment a little bit with 
different positions of sensor array and weather station. And I will connect 
my Raspy's USB power supply with the power inlet of my weather station. If 
all that won't help I will install a power supply for my outdoor sensor 
array.

One thing I've seen: If reception is starting to become bad, first the UV 
data is missing.

But there is still something puzzling me: Just yesterday in the afternoon 
the reception was quite worse with long interruption of some hours. 
Temperature went down during the night below 0°C, and I have expected 
missing data in the morning. But - to my surprise - after my automatic 
reboot of my Raspy at midnight, all data arrived without interruption 
(despite lower temperature).


Am Sonntag, 11. März 2018 15:19:40 UTC+1 schrieb Greg Troxel:
>
>
> One bit of advice:  Do not assume that you only have one problem.  You 
> might have multiple ones, and that makes debugging much harder. 
>
> If you had problems after installing the forecast plugin, then uninstall 
> it and try for a while.  I don't mean to say that I suspect it's a 
> problem, but all sorts of things could be going on, like increased CPU 
> temperature, load on the power supply, or lots of others that no one can 
> think of. 
>

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


Re: [weewx-user] spurious gaps within weather data - wh23xx on raspberry pi 3

2018-03-11 Thread Greg Troxel

One bit of advice:  Do not assume that you only have one problem.  You
might have multiple ones, and that makes debugging much harder.

If you had problems after installing the forecast plugin, then uninstall
it and try for a while.  I don't mean to say that I suspect it's a
problem, but all sorts of things could be going on, like increased CPU
temperature, load on the power supply, or lots of others that no one can
think of.

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


signature.asc
Description: PGP signature


[weewx-user] spurious gaps within weather data - wh23xx on raspberry pi 3

2018-03-11 Thread Michale Waldor
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,