Yup, multiple times...

root@rivermoth:~# wee_device --clear-memory
Using configuration file /etc/weewx/weewx.conf
Using FineOffsetUSB driver version 1.9 (weewx.drivers.fousb)
Traceback (most recent call last):
  File "/usr/bin/wee_device", line 66, in <module>
    main()
  File "/usr/bin/wee_device", line 62, in main
    device.configure(config_dict)
  File "/usr/share/weewx/weewx/drivers/__init__.py", line 69, in configure
    self.do_options(options, parser, config_dict, prompt)
  File "/usr/share/weewx/weewx/drivers/fousb.py", line 398, in do_options
    self.clear_history(prompt)
  File "/usr/share/weewx/weewx/drivers/fousb.py", line 518, in clear_history
    v = self.station.get_fixed_block(['data_count'], True)
  File "/usr/share/weewx/weewx/drivers/fousb.py", line 1667, in
get_fixed_block
    self._fixed_block = self._read_fixed_block()
  File "/usr/share/weewx/weewx/drivers/fousb.py", line 1715, in
_read_fixed_block
    result += self._read_block(mempos)
  File "/usr/share/weewx/weewx/drivers/fousb.py", line 1703, in _read_block
    new_block = self._read_usb_block(ptr)
  File "/usr/share/weewx/weewx/drivers/fousb.py", line 1198, in
_read_usb_block
    int(self.timeout*1000))
  File "/usr/lib/python2.7/dist-packages/usb/legacy.py", line 188, in
interruptRead
    return self.dev.read(endpoint, size, timeout)
  File "/usr/lib/python2.7/dist-packages/usb/core.py", line 988, in read
    self.__get_timeout(timeout))
  File "/usr/lib/python2.7/dist-packages/usb/backend/libusb1.py", line 851,
in intr_read
    timeout)
  File "/usr/lib/python2.7/dist-packages/usb/backend/libusb1.py", line 936,
in __read
    _check(retval)
  File "/usr/lib/python2.7/dist-packages/usb/backend/libusb1.py", line 595,
in _check
    raise USBError(_strerror(ret), ret, _libusb_errno[ret])
usb.core.USBError: [Errno 110] Operation timed out


On Sat, 30 Mar 2019 at 05:19, Greg from Oz <[email protected]> wrote:

> Have you tried:
>  wee_device --clear-memory
>
>
> On Saturday, 30 March 2019 00:16:29 UTC+11, Jan Huijsmans wrote:
>>
>> Hi,
>>
>> I've been lurking a while here, as I'm trying to get my weather station
>> back up and running after the last upgrade (3.8.2 to 3.9.1). However, I'm
>> totally stuck and I just can't get Weewx to read the data from the weather
>> station and report it either to wunderground or store the data in my
>> database.
>>
>> Situation:
>> - RPI 1 (Raspbian buster)
>> - PCE FWS-20 weather station. (re-labeled WH1080)
>> - Mysql database on RPI 3b (Raspbian Buster)
>>
>> All software is updated to latest level, debug = 1. The weewx
>> configuration I have worked perfectly since 2015, but failed on me
>> 07-01-2019 10:48:17 (last update on http://weer.koffie.nu/)
>> Whatever I do, it just won't read the data from the weather station. Not
>> even when I delete all data/config and have it start from scratch. The
>> command wee_device --info gives all info the weather station has, but very
>> weird dates. Even resetting the weather station (leaving it powerless for
>> 48h) didn't help. Any ideas on how to get the setup working again?
>>
>> Thanks in advance for any help anybody can give.
>>
>> Jan H.
>>
>> Logfile after reboot system (no batteries in WH1080, so it got reset as
>> well)
>> Mar 29 13:40:07 rivermoth weewx[539]: engine: Initializing weewx version
>> 3.9.1
>> Mar 29 13:40:07 rivermoth weewx[539]: engine: Using Python 2.7.16rc1 (
>> default, Feb 18 2019, 11:05:09) #012[GCC 8.2.0]
>> Mar 29 13:40:07 rivermoth weewx[539]: engine: Platform Linux-4.14.98+-
>> armv6l-with-debian-buster-sid
>> Mar 29 13:40:07 rivermoth weewx[539]: engine: Locale is 'C.UTF-8'
>> Mar 29 13:40:07 rivermoth weewx[539]: engine: pid file is /var/run/weewx.
>> pid
>> Mar 29 13:40:09 rivermoth weewx[614]: engine: Using configuration file /
>> etc/weewx/weewx.conf
>> Mar 29 13:40:09 rivermoth weewx[614]: engine: Loading station type
>> FineOffsetUSB (weewx.drivers.fousb)
>> Mar 29 13:40:10 rivermoth weewx[614]: fousb: driver version is 1.9
>> Mar 29 13:40:10 rivermoth weewx[614]: fousb: polling mode is PERIODIC
>> Mar 29 13:40:10 rivermoth weewx[614]: fousb: polling interval is 300
>> Mar 29 13:40:15 rivermoth weewx[614]: fousb: found station on USB bus=
>> device=
>> Mar 29 13:40:15 rivermoth weewx[614]: engine: StdConvert target unit is
>> 0x10
>> Mar 29 13:40:16 rivermoth weewx[614]: 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,
>> maxSolarRad=prefer_hardware, humidex=prefer_hardware, pressure=
>> prefer_hardware, inDewpoint=prefer_hardware, ET=prefer_hardware,
>> altimeter=prefer_hardware, cloudbase=prefer_hardware
>> Mar 29 13:40:16 rivermoth weewx[614]: wxcalculate: The following
>> algorithms will be used for calculations: altimeter=aaNOAA, maxSolarRad=
>> RS
>> Mar 29 13:40:16 rivermoth weewx[614]: engine: Archive will use data
>> binding wx_binding
>> Mar 29 13:40:16 rivermoth weewx[614]: engine: Record generation will be
>> attempted in 'hardware'
>> Mar 29 13:40:17 rivermoth weewx[614]: fousb: unstable read: blocks
>> differ for ptr 0x000080
>> Mar 29 13:40:17 rivermoth weewx[614]: fousb: unstable read: blocks
>> differ for ptr 0x0000c0
>> Mar 29 13:40:17 rivermoth weewx[614]: fousb: unstable read: blocks
>> differ for ptr 0x0000c0
>> Mar 29 13:40:17 rivermoth weewx[614]: engine: Using archive interval of
>> 300 seconds (specified by hardware)
>> Mar 29 13:40:23 rivermoth weewx[614]: engine: Using binding 'wx_binding'
>> to database 'weewx'
>> Mar 29 13:40:23 rivermoth weewx[614]: manager: Starting backfill of
>> daily summaries
>> Mar 29 13:40:24 rivermoth weewx[614]: restx: StationRegistry: Station
>> will be registered.
>> Mar 29 13:40:24 rivermoth weewx[614]: restx: Wunderground-RF: Data for
>> station IFLEVOLA41 will be posted
>> Mar 29 13:40:24 rivermoth weewx[614]: restx: PWSweather: Posting not
>> enabled.
>> Mar 29 13:40:24 rivermoth weewx[614]: restx: CWOP: Posting not enabled.
>> Mar 29 13:40:25 rivermoth weewx[614]: restx: WOW: Posting not enabled.
>> Mar 29 13:40:25 rivermoth weewx[614]: restx: AWEKAS: Data will be
>> uploaded for user [email protected]
>> Mar 29 13:40:25 rivermoth weewx[614]: engine: Starting up weewx version
>> 3.9.1
>> Mar 29 13:40:26 rivermoth weewx[614]: fousb: unstable read: blocks
>> differ for ptr 0x000080
>> Mar 29 13:40:26 rivermoth weewx[614]: fousb: unstable read: blocks
>> differ for ptr 0x000080
>> Mar 29 13:40:26 rivermoth weewx[614]: fousb: unstable read: blocks
>> differ for ptr 0x000080
>> Mar 29 13:40:27 rivermoth weewx[614]: fousb: synchronising to the
>> weather station (quality=1)
>> Mar 29 13:40:46 rivermoth weewx[614]: fousb: unstable read: blocks
>> differ for ptr 0x000100
>> Mar 29 13:41:09 rivermoth weewx[614]: fousb: unstable read: blocks
>> differ for ptr 0x000100
>>
>> lsusb
>> Bus 001 Device 004: ID 1941:8021 Dream Link WH1080 Weather Station / USB
>> Missile Launcher
>>
>> weewx.conf (station section)
>>
>> #   This section is for information about the station.
>>
>>
>> [Station]
>>
>>
>>     # Description of the station location
>>     location = "Lelystad, The Netherlands"
>>
>>
>>     # Latitude and longitude in decimal degrees
>>     latitude = 52.514576
>>     longitude = 5.502846
>>
>>
>>     # Altitude of the station, with unit it is in. This is downloaded
>> from
>>     # from the station if the hardware supports it.
>>     altitude = -4, meter    # Choose 'foot' or 'meter' for unit
>>
>>
>>     # Set to type of station hardware. There must be a corresponding
>> stanza
>>     # in this file with a 'driver' parameter indicating the driver to be
>> used.
>>     station_type = FineOffsetUSB
>>
>>
>>     # If you have a website, you may specify an URL
>>     #station_url = http://www.example.com
>>
>>
>>     # The start of the rain year (1=January; 10=October, etc.). This is
>>     # downloaded from the station if the hardware supports it.
>>     rain_year_start = 1
>>
>>
>>     # Start of week (0=Monday, 6=Sunday)
>>     week_start = 0
>>     station_url = http://weer.koffie.nu/
>>
>>
>> [FineOffsetUSB]
>>     # This section is for the Fine Offset series of weather stations.
>>
>>
>>     # The station model, e.g., WH1080, WS1090, WS2080, WH3081
>>     #model = WH1080
>>     model = PCE FWS-20
>>
>>
>>     # The polling mode can be PERIODIC or ADAPTIVE
>>     polling_mode = PERIODIC
>>
>>
>>     # How often to poll the station for data, in seconds
>>     polling_interval = 300
>>
>>
>>     # The pressure calibration offset, in hPa (millibars)
>>     pressure_offset = 0
>>
>>
>>     # The driver to use:
>>     driver = weewx.drivers.fousb
>>
>> wee_device --info
>>
>> Using configuration file /etc/weewx/weewx.conf
>> Using FineOffsetUSB driver version 1.9 (weewx.drivers.fousb)
>> Querying the station...
>> Fine Offset station settings:
>>                     local time: 2019.03.29 14:11:08 CET
>>                   polling mode: PERIODIC
>>
>>
>>                   abs_pressure: 1028.3
>>                    current_pos: 256
>>                   data_changed: 170
>>                     data_count: 1
>>                      date_time: 2010-01-01 12:00
>>                  hum_in_offset: 18
>>                 hum_out_offset: 257
>>                             id: 531
>>                  lux_wm2_coeff: 0
>>                        magic_1: 0x55
>>                        magic_2: 0xaa
>>                          model: 4875
>>                      rain_coef: 732
>>                    read_period: 5
>>                   rel_pressure: 1013.2
>>                 temp_in_offset: 4096
>>                temp_out_offset: 0
>>                       timezone: 0
>>                     unknown_01: 0
>>                     unknown_18: 0
>>                        version: 2
>>                      wind_coef: 1452
>>                      wind_mult: 0
>>
>>
>>          max.abs_pressure.date: 2165-157-165 165:165
>>           max.abs_pressure.val: 1034.6
>>              max.dewpoint.date: 2157-165-125 157:155
>>               max.dewpoint.val: 5.9
>>                max.hum_in.date: 2161-165-163 165:165
>>                 max.hum_in.val: 61
>>               max.hum_out.date: 2165-105-165 77:165
>>                max.hum_out.val: 86
>>            max.illuminance.val: 0
>>              max.rain.day.date: 2165-145-165 165:164
>>               max.rain.day.val: 14514.9
>>             max.rain.hour.date: 2125-83-165 165:85
>>              max.rain.hour.val: 19649.7
>>            max.rain.month.date: 2145-165-157 165:163
>>             max.rain.month.val: 14745.3
>>            max.rain.total.date: 2165-165-163 165:165
>>             max.rain.total.val: None
>>             max.rain.week.date: 2165-83-165 165:165
>>              max.rain.week.val: 19353.3
>>          max.rel_pressure.date: 2161-157-165 165:165
>>           max.rel_pressure.val: 1013.3
>>               max.temp_in.date: 2161-117-165 121:45
>>                max.temp_in.val: 21.3
>>              max.temp_out.date: 2161-154-165 165:165
>>               max.temp_out.val: 19.8
>>                     max.uv.val: 0
>>              max.wind_ave.date: 2125-155-165 165:155
>>               max.wind_ave.val: 2.7
>>             max.wind_gust.date: 2165-165-157 163:165
>>              max.wind_gust.val: None
>>             max.windchill.date: 2085-164-165 165:165
>>              max.windchill.val: 19.8
>>          min.abs_pressure.date: 2162-165-165 165:163
>>           min.abs_pressure.val: 997.3
>>              min.dewpoint.date: 2165-125-165 165:125
>>               min.dewpoint.val: -8.7
>>                min.hum_in.date: 2165-141-161 165:165
>>                 min.hum_in.val: 51
>>               min.hum_out.date: 2157-115-165 165:165
>>                min.hum_out.val: 21
>>          min.rel_pressure.date: 2165-157-165 165:165
>>           min.rel_pressure.val: 1013.2
>>               min.temp_in.date: 2165-125-154 157:157
>>                min.temp_in.val: 18.1
>>              min.temp_out.date: 2165-125-157 165:165
>>               min.temp_out.val: -6.1
>>             min.windchill.date: 2141-125-125 155:165
>>              min.windchill.val: -6.1
>>
>>
>>       settings_1.pressure_inHg: False
>>        settings_1.pressure_hPa: False
>>          settings_1.temp_out_F: False
>>       settings_1.pressure_mmHg: False
>>             settings_1.rain_in: False
>>           settings_1.temp_in_F: False
>>                settings_1.bit4: False
>>                settings_1.bit3: False
>>            settings_2.wind_bft: False
>>            settings_2.wind_mps: False
>>           settings_2.wind_knot: False
>>                settings_2.bit7: False
>>                settings_2.bit6: False
>>                settings_2.bit5: False
>>           settings_2.wind_kmph: True
>>            settings_2.wind_mph: False
>>
>>
>>            display_1.wind_gust: False
>>        display_1.show_day_name: False
>>            display_1.show_year: True
>>        display_1.time_scale_24: False
>>         display_1.pressure_rel: False
>>           display_1.alarm_time: False
>>             display_1.date_mdy: False
>>           display_1.clock_12hr: False
>>        display_2.temp_out_temp: True
>>            display_2.rain_hour: True
>>           display_2.rain_month: False
>>            display_2.rain_week: False
>>       display_2.temp_out_chill: False
>>             display_2.rain_day: False
>>         display_2.temp_out_dew: False
>>           display_2.rain_total: False
>>       display_3.illuminance_fc: False
>>                 display_3.bit7: False
>>                 display_3.bit6: False
>>                 display_3.bit5: False
>>                 display_3.bit4: False
>>                 display_3.bit3: False
>>                 display_3.bit2: False
>>                 display_3.bit1: False
>>
>>
>>          alarm.abs_pressure.hi: 1040.0
>>          alarm.abs_pressure.lo: 960.0
>>              alarm.dewpoint.hi: 10.0
>>              alarm.dewpoint.lo: -10.0
>>                alarm.hum_in.hi: 65
>>                alarm.hum_in.lo: 35
>>               alarm.hum_out.hi: 70
>>               alarm.hum_out.lo: 45
>>              alarm.illuminance: 0
>>                 alarm.rain.day: 150.0
>>                alarm.rain.hour: 3.0
>>          alarm.rel_pressure.hi: 1040.0
>>          alarm.rel_pressure.lo: 960.0
>>               alarm.temp_in.hi: 20.0
>>               alarm.temp_in.lo: 0
>>              alarm.temp_out.hi: 30.0
>>              alarm.temp_out.lo: -10.0
>>                     alarm.time: 12:00
>>                       alarm.uv: 0
>>             alarm.wind_ave.bft: 0
>>              alarm.wind_ave.ms: 18.0
>>                 alarm.wind_dir: 0
>>            alarm.wind_gust.bft: 0
>>             alarm.wind_gust.ms: 10.4
>>             alarm.windchill.hi: 20.0
>>             alarm.windchill.lo: 0
>>             alarm_1.hum_out_hi: False
>>              alarm_1.hum_in_lo: False
>>              alarm_1.hum_in_hi: False
>>             alarm_1.hum_out_lo: False
>>                   alarm_1.time: False
>>                   alarm_1.bit3: False
>>               alarm_1.wind_dir: False
>>                   alarm_1.bit0: False
>>               alarm_2.wind_ave: False
>>              alarm_2.wind_gust: False
>>              alarm_2.rain_hour: False
>>        alarm_2.pressure_rel_lo: False
>>        alarm_2.pressure_abs_hi: False
>>               alarm_2.rain_day: False
>>        alarm_2.pressure_rel_hi: False
>>        alarm_2.pressure_abs_lo: False
>>            alarm_3.temp_out_hi: False
>>          alarm_3.wind_chill_lo: False
>>           alarm_3.dew_point_lo: False
>>             alarm_3.temp_in_lo: False
>>          alarm_3.wind_chill_hi: False
>>             alarm_3.temp_in_hi: False
>>            alarm_3.temp_out_lo: False
>>           alarm_3.dew_point_hi: False
>>
>>
>>
>> --
> 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.
>

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