On Thursday, 4 April 2019 11:57:12 UTC-3, Thomas Keffer wrote:
>
> Well, then there are two possibilities:
> 1.  r['dateTime'] was a different value than 1554322200; or
> 2. There was some kind of delay getting the record into the database. The 
> AWEKAS code did its query before the record had appeared.
>

As you can see at the syslog below, record with time stamp 1554322200 is 
stored at 17:10:13, one second before the exception.

Apr  3 17:10:13 pi21 mstk[14530]: manager: Added record 2019-04-03 17:10:00 
-03 (1554322200) to database 'weewx_mstk'
Apr  3 17:10:14 pi21 mstk[14530]: manager: Added record 2019-04-03 17:10:00 
-03 (1554322200) to daily summary in 'weewx_mstk'
Apr  3 17:10:14 pi21 mstk[14530]: reportengine: Running reports for latest 
time in the database.
Apr  3 17:10:14 pi21 mstk[14530]: reportengine: Report 'SeasonsReport' not 
enabled. Skipping.
Apr  3 17:10:14 pi21 mstk[14530]: reportengine: Report 'SmartphoneReport' 
not enabled. Skipping.
Apr  3 17:10:14 pi21 mstk[14530]: reportengine: Report 'MobileReport' not 
enabled. Skipping.
Apr  3 17:10:14 pi21 mstk[14530]: reportengine: Report 'StandardReport' not 
enabled. Skipping.
Apr  3 17:10:14 pi21 mstk[14530]: reportengine: Running report 'mstkReport'
Apr  3 17:10:14 pi21 klim[13367]: KlimaLogg: RFComm: handleHistoryData: 
time=2019-04-03 17:10:00 this=17229 (0xf69a0) latest=17229 (0xf69a0) nrec=0
Apr  3 17:10:14 pi21 mstk[14530]: restx: Weather365: url: 
https://channel1.weather365.net/stations/index.php?soilmoisture3=200.0&raind=0.00&txbattery=0&soiltemp3=28.8&datum=201904031710&long=-55.21904&stationid=285CDPC186&rainh=0.00&prec_time=60&lat=5.82184&et=0.01901&alt=4.0&relhum=66&windrun=103.3&utcstamp=1554322200
Apr  3 17:10:14 pi21 mstk[14530]: restx: AWEKAS: Unexpected exception of 
type <type 'exceptions.TypeError'>
Apr  3 17:10:14 pi21 mstk[14530]: restx: Weather365: Data uploaded to 
https://channel1.weather365.net/stations/index.php is: 
(https://channel1.weather365.net/stations/index.php?soilmoisture3=200.0&raind=0.00&txbattery=0&soiltemp3=28.8&datum=201904031710&long=-55.21904&stationid=285CDPC186&rainh=0.00&prec_time=60&lat=5.82184&et=0.01901&alt=4.0&relhum=66&windrun=103.3&utcstamp=1554322200)
Apr  3 17:10:14 pi21 mstk[14530]: *** Traceback (most recent call last):
Apr  3 17:10:14 pi21 mstk[14530]: reportengine: Found configuration file 
/home/weewx/skins/mstk/skin.conf for report 'mstkReport'
Apr  3 17:10:14 pi21 mstk[14530]: ***   File 
"/home/weewx/bin/weewx/restx.py", line 350, in run_loop
Apr  3 17:10:14 pi21 mstk[14530]: ***     self.process_record(_record, 
dbmanager)
Apr  3 17:10:14 pi21 mstk[14530]: restx: WeatherCloud: Unexpected exception 
of type <type 'exceptions.KeyError'>
Apr  3 17:10:14 pi21 mstk[14530]: ***   File 
"/home/weewx/bin/weewx/restx.py", line 1693, in process_record
Apr  3 17:10:14 pi21 mstk[14530]: ***     r = self.get_record(record, 
dbmanager)
Apr  3 17:10:14 pi21 mstk[14530]: ***   File 
"/home/weewx/bin/weewx/restx.py", line 1689, in get_record
Apr  3 17:10:14 pi21 mstk[14530]: ***     r['rainRate'] = rr[0]
Apr  3 17:10:14 pi21 mstk[14530]: *** TypeError: 'NoneType' object has no 
attribute '__getitem__'
Apr  3 17:10:14 pi21 mstk[14530]: restx: AWEKAS: Thread exiting. Reason: 
'NoneType' object has no attribute '__getitem__'
Apr  3 17:10:14 pi21 mstk[14530]: *** Traceback (most recent call last):
Apr  3 17:10:14 pi21 mstk[14530]: ***   File 
"/home/weewx/bin/weewx/restx.py", line 350, in run_loop
Apr  3 17:10:14 pi21 mstk[14530]: ***     self.process_record(_record, 
dbmanager)
Apr  3 17:10:14 pi21 mstk[14530]: ***   File 
"/home/weewx/bin/user/wcloud.py", line 249, in process_record
Apr  3 17:10:14 pi21 mstk[14530]: ***     r = self.get_record(record, dbm)
Apr  3 17:10:14 pi21 mstk[14530]: ***   File 
"/home/weewx/bin/user/wcloud.py", line 271, in get_record
Apr  3 17:10:14 pi21 mstk[14530]: ***     if rec['windDir'] is not None:
Apr  3 17:10:14 pi21 mstk[14530]: *** KeyError: 'windDir'
Apr  3 17:10:14 pi21 mstk[14530]: restx: WeatherCloud: Thread exiting. 
Reason: 'windDir' 

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