A lot of thank's.

Running now x version:

Oct  6 13:59:53 meteo weewx[16870]: wmr300x: driver version is 0.19rc6+f3
Oct  6 13:59:53 meteo weewx[16870]: wmr300x: usb info: pyusb_version=1.0.0
Oct  6 13:59:53 meteo weewx[16870]: wmr300x: sensor map is {'outHumidity': 
'humidity_1', 'extraDewpoint6': 'dewpoint_7', 'windchill': 'windchill', 
'extraDewpoint4': 'dewpoint_5', 'rainRate': 'rain_rate', 'heatindex': 
'heatindex_1', 'inTemp': 'temperature_0', 'windGustDir': 'wind_gust_dir', 
'extraDewpoint2': 'dewpoint_3', 'extraDewpoint3': 'dewpoint_4', 
'extraDewpoint1': 'dewpoint_2', 'barometer': 'barometer', 'extraDewpoint7': 
'dewpoint_8', 'dewpoint': 'dewpoint_1', 'extraDewpoint5': 'dewpoint_6', 
'extraHumid6': 'humidity_7', 'pressure': 'pressure', 'extraHumid4': 
'humidity_5', 'extraHumid5': 'humidity_6', 'extraHumid2': 'humidity_3', 
'extraHumid3': 'humidity_4', 'extraHumid1': 'humidity_2', 'extraTemp6': 
'temperature_7', 'extraTemp7': 'temperature_8', 'extraTemp4': 
'temperature_5', 'extraTemp5': 'temperature_6', 'extraTemp2': 
'temperature_3', 'extraTemp3': 'temperature_4', 'extraTemp1': 
'temperature_2', 'extraHeatindex3': 'heatindex_4', 'extraHeatindex2': 
'heatindex_3', 'extraHeatindex1': 'heatindex_2', 'extraHeatindex7': 
'heatindex_8', 'extraHeatindex6': 'heatindex_7', 'extraHeatindex5': 
'heatindex_6', 'extraHumid7': 'humidity_8', 'extraHeatindex4': 
'heatindex_5', 'windDir': 'wind_dir', 'outTemp': 'temperature_1', 
'windSpeed': 'wind_avg', 'inHumidity': 'humidity_0', 'windGust': 
'wind_gust'}
Oct  6 13:59:53 meteo weewx[16870]: wmr300x: history limit is 6% at index 
1994
Oct  6 13:59:53 meteo weewx[16870]: wmr300x: using PyUSB backend: libusb1


El sábado, 6 de octubre de 2018, 1:09:44 (UTC+2), Cameron D escribió:
>
> There is something not right in your configuration file.
> In /etc/weewx/weewx.conf:
>
> 1. You should duplicate the block under [WMR300] and assign a new label 
> WMR300x, similar to this:
>
> ##############################################################################
>
> [WMR300]
>     # This section is for WMR300 weather stations
>
>     # The station model, e.g., WMR300A
>     model = WMR300
>
>     # The driver to use:
>     #driver = weewx.drivers.wmr300
>     driver = user.wmr300-v19rc6+f3
>
>     history_limit = 6
>
>     debug_counts = 1
>     debug_decode = 0
>     debug_comm = 0
>     debug_history = 0
>     debug_timing = 1
>     debug_rain = 0
>
>
> ##############################################################################
> [WMR300x]
>     # This section is for WMR300 weather stations. experimental driver
>
>     # The station model, e.g., WMR300A
>     model = WMR300x
>
>     # The driver to use:
>     driver = user.wmr300x-v19rc6+f3
>
>     history_limit = 6
>
>     debug_counts = 1
>     debug_decode = 0
>     debug_comm = 0
>     debug_history = 0
>     debug_timing = 1
>     debug_rain = 0
>     # Set debug_backend to 0 for default lib
>     # 1 for libusb0
>     # 2 for libusb1
>     # 3 for openusb
>     # 4 for ... depends on local pyusb
>     debug_backend = 0
>
>
> ##############################################################################
>
>
> the "driver" line needs to point to the correct driver file location.
> This makes it much clearer in the logs which driver is being used.
>
> Then, to switch drivers, simply edit the "station_type" in the "[Station]" 
> block.
>
>
> Cameron.
>
>
> On Saturday, 6 October 2018 05:35:23 UTC+10, Ruben Navarro Huedo wrote:
>>
>> Testing x version under last raspbian version:
>>
>> ...
>> Oct  5 21:33:51 meteo weewx[10082]: engine: Using configuration file 
>> /etc/weewx/weewx.conf
>> Oct  5 21:33:51 meteo weewx[10082]: engine: Loading station type WMR300 
>> (weewx.drivers.wmr300)
>> Oct  5 21:33:51 meteo weewx[10082]: import of driver failed: 'WMR300x' 
>> (<type 'exceptions.KeyError'>)
>> Oct  5 21:33:51 meteo weewx[10082]: engine: Unable to load driver: 
>> 'WMR300x'
>> Oct  5 21:33:51 meteo weewx[10082]:     ****  Exiting...
>>
>> Testing now NON-X version.
>>
>>
>> El jueves, 4 de octubre de 2018, 16:22:22 (UTC+2), Cameron D escribió:
>>>
>>> The rc5 and rc6 drivers shjipped with the weewx releases had issues 
>>> where, after some time (days to weeks) the system would stop reporting any 
>>> data.
>>> That was addressed in this update of 24th September 
>>> <https://groups.google.com/d/topic/weewx-user/jUF4J6tRxPU/discussion>.
>>>
>>> At least two users have reported a different problem, where there is 
>>> only partial loss, for example wind or temperature and humidity.
>>>
>>>    1. Juan Antonio Mosquera reports wind data missing 
>>>    <https://groups.google.com/d/msg/weewx-user/jUF4J6tRxPU/ABecLDR6AQAJ>
>>>    .
>>>    2. Markus Biewer reports temperature/humidity, and sometimes other 
>>>    data going missing after about a week 
>>>    <https://groups.google.com/d/msg/weewx-user/7QUNDdqbHHE/z7Rr5lqZAgAJ>
>>>    .
>>>
>>> Initially it looked like it might have been related to Belchertown skin, 
>>> but it is reported to also be an issue with the standard skin.
>>>
>>> The attached zip file has 3 files:
>>>
>>>    1. *wmr300-v19rc6+f3.py*  - and updated version of the main wmr300 
>>>    driver - this has a couple of minor bug fixes as well as extra 
>>> diagnostic 
>>>    code for this problem.
>>>    2. *summ-pkt-data.awk*  -   an awk script to  convert the new 
>>>    diagnostic logfile data into a csv file.
>>>    3. *wmr300x-v19rc6+f3.py* - note the 'x'. This is the experimental 
>>>    driver that uses pyusb 1 and libusb1 if available.  It also contains the 
>>>    extra diagnostics, but is included for the other issue where the pi 
>>> locks 
>>>    up completely.
>>>    
>>> *New Diagnostics*:
>>>
>>> In your weewx.conf file, enable
>>>   debug=1
>>>
>>> and in the WMR300 section I would suggest the following:
>>>     debug_counts = 1
>>>     debug_decode = 0
>>>     debug_comm = 0
>>>     debug_history = 0
>>>     debug_timing = 1
>>>     debug_rain = 0
>>>
>>> The debug_counts setting will output a summary of each packet type read 
>>> from the USB  in a specified time interval (default 20 seconds) as well as 
>>> the number of loop packets sent to weewx.
>>>
>>> Here is my WMR300 section
>>>
>>> ##############################################################################
>>>
>>> [WMR300]
>>>     # This section is for WMR300 weather stations
>>>
>>>     # The station model, e.g., WMR300A
>>>     model = WMR300
>>>
>>>     # The driver to use:
>>>     driver = user.wmr300-v19rc6+f3
>>>
>>>     history_limit = 6
>>>
>>>     debug_counts = 1
>>>     debug_decode = 0
>>>     debug_comm = 0
>>>     debug_history = 1
>>>     debug_timing = 1
>>>     debug_rain = 0
>>>
>>>
>>> ##############################################################################
>>>
>>> Note that I recommend placing these drivers in the "user" directory of 
>>> the weewx installation.
>>> You can also create a similar section named *[WMR300x]* to use the 
>>> experimental driver, and select between them by editing this line in the 
>>> *[Station]* section:
>>>  station_type = WMR300
>>>
>>> *Experimental driver:*
>>> This driver uses the PyUSB version 1 API, which allows it to use libusb1 
>>> or other usb libraries.
>>> It will default to libusb1 if possible, but otherwise will fall back to 
>>> libusb0.
>>>
>>> Note that some versions of Ubuntu seemed to ship with a beta version of 
>>> PyUSB-1 that did not seem to support the full api.  If it reports a version 
>>> beginning "1.0.0b..." then the driver will use libusb0.
>>>
>>> If you enable the experimental version then check the log file when it 
>>> starts up:
>>> It will always show pyusb_version, and the experimental driver will 
>>> print which usb backend library is selected.
>>>
>>> grep -i pyusb (your-logfile)
>>>
>>> will display both.
>>>
>>

-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to