New thing, I restarted the rpi and now this is the log:

May 19 11:17:05 raspberrypi systemd[1]: Starting LSB: weewx weather 
system...
May 19 11:17:05 raspberrypi weewx[982]: engine: Initializing weewx version 
3.9.1
May 19 11:17:05 raspberrypi weewx[982]: engine: Using Python 2.7.13 
(default, Sep 26 2018, 18:42:22) #012[GCC 6.3.0 20170516]
May 19 11:17:05 raspberrypi weewx[982]: engine: Platform 
Linux-4.19.42-v7+-armv7l-with-debian-9.9
May 19 11:17:05 raspberrypi weewx[982]: engine: Locale is 'es_ES.UTF-8'
May 19 11:17:05 raspberrypi weewx[982]: engine: pid file is 
/var/run/weewx.pid
May 19 11:17:06 raspberrypi weewx[971]: Starting weewx weather system: 
weewx.
May 19 11:17:06 raspberrypi systemd[1]: Started LSB: weewx weather system.
May 19 11:17:06 raspberrypi weewx[986]: engine: Using configuration file 
/etc/weewx/weewx.conf
May 19 11:17:06 raspberrypi weewx[986]: engine: Loading station type WMR300 
(weewx.drivers.wmr300)
May 19 11:17:06 raspberrypi weewx[986]: engine: Caught unrecoverable 
exception in engine:
May 19 11:17:06 raspberrypi weewx[986]:     ****  invalid syntax 
(wmr300.py, line 7)
May 19 11:17:06 raspberrypi weewx[986]:     ****  Traceback (most recent 
call last):
May 19 11:17:06 raspberrypi weewx[986]:     ****    File 
"/usr/share/weewx/weewx/engine.py", line 884, in main
May 19 11:17:06 raspberrypi weewx[986]:     ****      engine = 
engine_class(config_dict)
May 19 11:17:06 raspberrypi weewx[986]:     ****    File 
"/usr/share/weewx/weewx/engine.py", line 72, in __init__
May 19 11:17:06 raspberrypi weewx[986]:     ****      
self.setupStation(config_dict)
May 19 11:17:06 raspberrypi weewx[986]:     ****    File 
"/usr/share/weewx/weewx/engine.py", line 96, in setupStation
May 19 11:17:06 raspberrypi weewx[986]:     ****      __import__(driver)
May 19 11:17:06 raspberrypi weewx[986]:     ****    File 
"/usr/share/weewx/weewx/drivers/wmr300.py", line 7
May 19 11:17:06 raspberrypi weewx[986]:     ****      <!DOCTYPE html>
May 19 11:17:06 raspberrypi weewx[986]:     ****      ^
May 19 11:17:06 raspberrypi weewx[986]:     ****  SyntaxError: invalid 
syntax
May 19 11:17:06 raspberrypi weewx[986]:     ****  Exiting.




El domingo, 19 de mayo de 2019, 12:56:27 (UTC+2), Miguel Angel Peña Morales 
escribió:
>
> Hello again, no luck. I even tried to reinstall from purge and deleting 
> all the folders of weewx and nothing new...
>
> The thing I'm just seeing is the version of  the wmr300 driver in my old 
> log and this log is the same. 19rc6. Shouldn't be that different?
>
> Regards and thanks.
>
> New log.
>
> May 19 10:43:12 raspberrypi weewx[1048]: Stopping weewx weather system: 
> weewx not running....
> May 19 10:43:12 raspberrypi systemd[1]: Stopped LSB: weewx weather system.
> May 19 10:43:13 raspberrypi systemd[1]: Reloading.
> May 19 10:43:18 raspberrypi systemd[1]: Reloading.
> May 19 10:43:21 raspberrypi dbus[373]: [system] Activating via systemd: 
> service name='org.freedesktop.PackageKit' unit='packagekit.service'
> May 19 10:43:21 raspberrypi systemd[1]: Starting PackageKit Daemon...
> May 19 10:43:21 raspberrypi PackageKit: daemon start
> May 19 10:43:21 raspberrypi dbus[373]: [system] Successfully activated 
> service 'org.freedesktop.PackageKit'
> May 19 10:43:21 raspberrypi systemd[1]: Started PackageKit Daemon.
> May 19 10:45:15 raspberrypi systemd[1]: Reloading.
> May 19 10:45:16 raspberrypi systemd[1]: Reloading.
> May 19 10:45:17 raspberrypi systemd[1]: Starting LSB: weewx weather 
> system...
> May 19 10:45:17 raspberrypi weewx[1314]: engine: Initializing weewx 
> version 3.9.1
> May 19 10:45:17 raspberrypi weewx[1314]: engine: Using Python 2.7.13 
> (default, Sep 26 2018, 18:42:22) #012[GCC 6.3.0 20170516]
> May 19 10:45:17 raspberrypi weewx[1314]: engine: Platform 
> Linux-4.14.98-v7+-armv7l-with-debian-9.9
> May 19 10:45:17 raspberrypi weewx[1314]: engine: Locale is 'es_ES.UTF-8'
> May 19 10:45:17 raspberrypi weewx[1314]: engine: pid file is 
> /var/run/weewx.pid
> May 19 10:45:18 raspberrypi weewx[1303]: Starting weewx weather system: 
> weewx.
> May 19 10:45:18 raspberrypi systemd[1]: Started LSB: weewx weather system.
> May 19 10:45:18 raspberrypi weewx[1318]: engine: Using configuration file 
> /etc/weewx/weewx.conf
> May 19 10:45:18 raspberrypi weewx[1318]: engine: Loading station type 
> WMR300 (weewx.drivers.wmr300)
> May 19 10:45:18 raspberrypi weewx[1318]: wmr300: driver version is 0.19rc6
> May 19 10:45:18 raspberrypi weewx[1318]: wmr300: usb info: 
> pyusb_version=1.0.0
> May 19 10:45:18 raspberrypi weewx[1318]: wmr300: 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'}
> May 19 10:45:18 raspberrypi weewx[1318]: wmr300: history limit is 20%
> May 19 10:45:18 raspberrypi kernel: [  415.383352] usb 1-1.4: reset 
> full-speed USB device number 8 using dwc_otg
> May 19 10:45:18 raspberrypi systemd[1]: Reloading.
> May 19 10:45:18 raspberrypi weewx[1318]: wmr300: communication 
> established: {'station_model': 'A004', 'latest_index': 32736, 
> 'station_type': 'WMR300', 'mystery1': 44, 'mystery0': 73, 
> 'history_cleared': False, 'magic1': 139, 'magic0': 136, 'packet_type': 87}
> May 19 10:45:18 raspberrypi weewx[1318]: engine: StdConvert target unit is 
> 0x1
> May 19 10:45:18 raspberrypi weewx[1318]: wxcalculate: The following values 
> will be calculated: barometer=prefer_hardware, windchill=hardware, 
> dewpoint=software, appTemp=prefer_hardware, rainRate=hardware, 
> windrun=prefer_hardware, heatindex=hardware, maxSolarRad=prefer_hardware, 
> humidex=prefer_hardware, pressure=prefer_hardware, 
> inDewpoint=prefer_hardware, ET=prefer_hardware, altimeter=prefer_hardware, 
> cloudbase=prefer_hardware
> May 19 10:45:18 raspberrypi weewx[1318]: wxcalculate: The following 
> algorithms will be used for calculations: altimeter=aaNOAA, maxSolarRad=RS
> May 19 10:45:18 raspberrypi weewx[1318]: engine: Archive will use data 
> binding wx_binding
> May 19 10:45:18 raspberrypi weewx[1318]: engine: Record generation will be 
> attempted in 'hardware'
> May 19 10:45:18 raspberrypi weewx[1318]: engine: Using archive interval of 
> 300 seconds (specified in weewx configuration)
> May 19 10:45:18 raspberrypi weewx[1318]: engine: Using binding 
> 'wx_binding' to database 'weewx.sdb'
> May 19 10:45:18 raspberrypi weewx[1318]: manager: Starting backfill of 
> daily summaries
> May 19 10:45:18 raspberrypi weewx[1318]: restx: StationRegistry: 
> Registration not requested.
> May 19 10:45:18 raspberrypi weewx[1318]: restx: Wunderground: Posting not 
> enabled.
> May 19 10:45:19 raspberrypi weewx[1318]: restx: PWSweather: Posting not 
> enabled.
> May 19 10:45:19 raspberrypi weewx[1318]: restx: CWOP: Posting not enabled.
> May 19 10:45:19 raspberrypi weewx[1318]: restx: WOW: Posting not enabled.
> May 19 10:45:19 raspberrypi weewx[1318]: restx: AWEKAS: Posting not 
> enabled.
> May 19 10:45:19 raspberrypi weewx[1318]: engine: Starting up weewx version 
> 3.9.1
> May 19 10:45:19 raspberrypi weewx[1318]: wmr300: reading records since 
> ******* N/A *******     (    N/A   ) (last_index=31 latest_index=32736)
> May 19 10:45:19 raspberrypi weewx[1318]: wmr300: possible missed rain 
> event: new=16645.89 old=None
> May 19 10:45:19 raspberrypi weewx[1318]: wmr300: rain=None 
> rain_total=16645.89 last_rain=None
> May 19 10:45:19 raspberrypi weewx[1318]: manager: Added record 2012-01-01 
> 12:00:00 GMT (1325419200) to database 'weewx.sdb'
> May 19 10:45:19 raspberrypi weewx[1318]: engine: Main loop exiting. 
> Shutting engine down.
> May 19 10:45:19 raspberrypi weewx[1318]: engine: Caught unrecoverable 
> exception in engine:
> May 19 10:45:19 raspberrypi weewx[1318]:     ****  Non-positive value for 
> record field 'interval': 0.0
> May 19 10:45:19 raspberrypi weewx[1318]:     ****  Traceback (most recent 
> call last):
> May 19 10:45:19 raspberrypi weewx[1318]:     ****    File 
> "/usr/share/weewx/weewx/engine.py", line 890, in main
> May 19 10:45:19 raspberrypi weewx[1318]:     ****      engine.run()
> May 19 10:45:19 raspberrypi weewx[1318]:     ****    File 
> "/usr/share/weewx/weewx/engine.py", line 160, in run
> May 19 10:45:19 raspberrypi weewx[1318]:     ****      
> self.dispatchEvent(weewx.Event(weewx.STARTUP))
> May 19 10:45:19 raspberrypi weewx[1318]:     ****    File 
> "/usr/share/weewx/weewx/engine.py", line 224, in dispatchEvent
> May 19 10:45:19 raspberrypi weewx[1318]:     ****      callback(event)
> May 19 10:45:19 raspberrypi weewx[1318]:     ****    File 
> "/usr/share/weewx/weewx/engine.py", line 520, in startup
> May 19 10:45:19 raspberrypi weewx[1318]:     ****      
> self._catchup(self.engine.console.genStartupRecords)
> May 19 10:45:19 raspberrypi weewx[1318]:     ****    File 
> "/usr/share/weewx/weewx/engine.py", line 635, in _catchup
> May 19 10:45:19 raspberrypi weewx[1318]:     ****      origin='hardware'))
> May 19 10:45:19 raspberrypi weewx[1318]:     ****    File 
> "/usr/share/weewx/weewx/engine.py", line 224, in dispatchEvent
> May 19 10:45:19 raspberrypi weewx[1318]:     ****      callback(event)
> May 19 10:45:19 raspberrypi weewx[1318]:     ****    File 
> "/usr/share/weewx/weewx/engine.py", line 601, in new_archive_record
> May 19 10:45:19 raspberrypi weewx[1318]:     ****      
> dbmanager.addRecord(event.record, accumulator=self.old_accumulator)
> May 19 10:45:19 raspberrypi weewx[1318]:     ****    File 
> "/usr/share/weewx/weewx/manager.py", line 246, in addRecord
> May 19 10:45:19 raspberrypi weewx[1318]:     ****      
> self._addSingleRecord(record, cursor, log_level)
> May 19 10:45:19 raspberrypi weewx[1318]:     ****    File 
> "/usr/share/weewx/weewx/manager.py", line 1212, in _addSingleRecord
> May 19 10:45:19 raspberrypi weewx[1318]:     ****      _weight = 
> self._calc_weight(record)
> May 19 10:45:19 raspberrypi weewx[1318]:     ****    File 
> "/usr/share/weewx/weewx/manager.py", line 1582, in _calc_weight
> May 19 10:45:19 raspberrypi weewx[1318]:     ****      raise 
> ValueError("Non-positive value for record field 'interval': %s" % 
> (record['interval'], ))
> May 19 10:45:19 raspberrypi weewx[1318]:     ****  ValueError: 
> Non-positive value for record field 'interval': 0.0
> May 19 10:45:19 raspberrypi weewx[1318]:     ****  Exiting.
>
>
>
>
> El miércoles, 15 de mayo de 2019, 15:36:27 (UTC+2), Leon Shaner escribió:
>>
>> Hi, Miguel,
>>
>> Known issue.  You can grab the fix from here:
>>
>> https://github.com/weewx/weewx/blob/master/bin/weewx/drivers/wmr300.py
>>
>> A la:
>>
>> $ cd /tmp
>> $ wget 
>> https://github.com/weewx/weewx/blob/master/bin/weewx/drivers/wmr300.py
>>
>> $ cd /usr/share/weewx/weewx/drivers
>> $ sudo cp -p wmr300.py wmr300.py_391
>> $ sudo cp /tmp/wmr300.py wmr300.py
>>
>> And to start weewx:
>>
>> $ sudo systemctl start weewx
>>
>> Regards,
>> \Leon
>> --
>> Leon Shaner :: Dearborn, Michigan (iPad Pro)
>>
>> On May 15, 2019, at 3:31 AM, Miguel Angel Peña Morales <
>> [email protected]> wrote:
>>
>> Hello, I'm new with weewx and I tried a fresh install of it on a Rpi3 
>> with WMR300. I get the same error as you at the beginning.
>>
>> I tried resetting the memory of the base and nothing changed.
>> I tried changing the WMR300 python driver ad it resulted in the option to 
>> choose it on the reconfigure utility dissapearing.
>> I tried reinstalling all and installing and back to the start.
>>
>> COuld you please tell me what did solve the problem in the end?
>> Regards and many thanks.
>>
>> PS: C/P of the log
>>
>> May 15 07:29:52 raspberrypi systemd[1]: Starting LSB: weewx weather 
>> system...
>> May 15 07:29:52 raspberrypi weewx[7689]: engine: Initializing weewx 
>> version 3.9.1
>> May 15 07:29:52 raspberrypi weewx[7689]: engine: Using Python 2.7.13 (
>> default, Sep 26 2018, 18:42:22) #012[GCC 6.3.0 20170516]
>> May 15 07:29:52 raspberrypi weewx[7689]: engine: Platform Linux-4.14.98-
>> v7+-armv7l-with-debian-9.9
>> May 15 07:29:52 raspberrypi weewx[7689]: engine: Locale is 'es_ES.UTF-8'
>> May 15 07:29:52 raspberrypi weewx[7689]: engine: pid file is /var/run/
>> weewx.pid
>> May 15 07:29:52 raspberrypi weewx[7678]: Starting weewx weather system: 
>> weewx.
>> May 15 07:29:52 raspberrypi systemd[1]: Started LSB: weewx weather system
>> .
>> May 15 07:29:52 raspberrypi weewx[7693]: engine: Using configuration 
>> file /etc/weewx/weewx.conf
>> May 15 07:29:52 raspberrypi weewx[7693]: engine: Loading station type 
>> WMR300 (weewx.drivers.wmr300)
>> May 15 07:29:52 raspberrypi weewx[7693]: wmr300: driver version is 
>> 0.19rc6
>> May 15 07:29:52 raspberrypi weewx[7693]: wmr300: usb info: pyusb_version=
>> 1.0.0
>> May 15 07:29:52 raspberrypi weewx[7693]: wmr300: sensor map is {
>> 'outHumidity': 'humidity_1', 'extraDewpoint6': 'dewpoint_7', 'windchi   
>>                         ll': 'windchill', 'extraDewpoint4': 'dewpoint_5', 
>> 'rainRate': 'rain_rate', 'heatindex': 'heatindex_1', 'inTemp': 
>> 'temperature_0', 'wi                           ndGustDir': 
>> 'wind_gust_dir', 'extraDewpoint2': 'dewpoint_3', 'extraDewpoint3': 
>> 'dewpoint_4', 'extraDewpoint1': 'dewpoint_2', 'baromet                   
>>         er': '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': 'hu                           midity_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', 'extraHea 
>>                           tindex3': 'heatindex_4', 'extraHeatindex2': 
>> 'heatindex_3', 'extraHeatindex1': 'heatindex_2', 'extraHeatindex7': 
>> 'heatindex_8', 'extra                           Heatindex6': 
>> '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'}
>> May 15 07:29:52 raspberrypi weewx[7693]: wmr300: history limit is 20%
>> May 15 07:29:53 raspberrypi kernel: [161063.801246] usb 1-1.2: reset full
>> -speed USB device number 8 using dwc_otg
>> May 15 07:29:53 raspberrypi weewx[76
>>
>>

-- 
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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/13e10cde-d13c-4573-8b50-c86876baf7f5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to