It works for me, thank you Gary. 

It has been essentially 100% humidity here for about a day, and my humidity 
sensor is sending data that weewx rejects. I think that's the reason I am 
getting this error:

Feb 26 10:26:08 weewx[22818]: rtgdthread: **** Traceback (most recent call 
last):
Feb 26 10:26:08 weewx[22818]: rtgdthread: ****   File 
"/usr/share/weewx/user/rtgd.py", line 851, in process_packet
Feb 26 10:26:08 weewx[22818]: rtgdthread: ****     data = self.calculate(
cached_packet)
Feb 26 10:26:08 weewx[22818]: rtgdthread: ****   File 
"/usr/share/weewx/user/rtgd.py", line 989, in calculate
Feb 26 10:26:08 weewx[22818]: rtgdthread: ****     humTL = min(i for i in [
self.buffer.humL_loop[0], self.day_stats['outHumidity'].min] if i is not 
None)
Feb 26 10:26:08 weewx[22818]: rtgdthread: **** ValueError: min() arg is an 
empty sequence

I don't consider this a problem with rtgdthread. I should not be throwing 
it bad data.

On Saturday, 25 February 2017 22:09:21 UTC-4, gjr80 wrote:
>
> I've published v0.2.7 which now caches loop packets, shoudl be a much 
> better experience for those with partial loop packet stations.
>
> Gary
>
> On Thursday, 23 February 2017 23:40:09 UTC+10, Bill Morrow wrote:
>>
>> On Thursday, 23 February 2017 05:52:55 UTC-4, Devonian wrote:
>>>
>>> I noticed 0.2.6 late last night and installed it.
>>> Works fine, but no chance to see a 'no wind' situation as it's blowing a 
>>> hooligan outside with gust predicted to 70MPH later...
>>>
>>> Nigel.
>>>
>>
>> Gary, I tried rtgd (0.2.6) last night for the first time, and have an 
>> issue. My driver yields packets which don't always contain the same data. I 
>> have a station which provides indoor conditions and a separate one that 
>> provides outdoor conditions. If the indoor station reports first, I get an 
>> error because outTemp is not in the packet. See the log extract below.
>>
>> In your opinion, should I handle this in my driver, is there something I 
>> can do in weewx, or should rtgdthread handle this? The indoor station 
>> reports every 2-3 seconds, To conserve power, the outdoor about every 30 
>> seconds.
>>
>> Feb 22 16:20:46 walrus weewx[29153]: wxMesh: key: TIME value: 1487794846
>> Feb 22 16:20:46 walrus weewx[29153]: wxMesh: key: INTE value: 22.60
>> Feb 22 16:20:46 walrus weewx[29153]: wxMesh: key: INHU value: 32.59
>> Feb 22 16:20:46 walrus weewx[29153]: rtgd: queued loop packet: {
>> 'barometer': None, 'windchill': None, 'dewpoint': None, 'humidex': None, 
>> 'maxSolarRad': None, 'pressure': None, 'altimeter': None, 'usUnits': 17, 
>> 'appTemp': None, 'rainRate': 0.0, 'heatindex': None, 'dateTime': 
>> 1487794846.0, 'inHumidity': 32.59, 'inTemp': 22.600000000000005, 
>> 'cloudbase': None, 'inDewpoint': 41.58132605144329}
>> Feb 22 16:20:46 walrus weewx[29153]: rtgdthread: received packet: {
>> 'barometer': None, 'windchill': None, 'dewpoint': None, 'humidex': None, 
>> 'maxSolarRad': None, 'pressure': None, 'altimeter': None, 'usUnits': 17, 
>> 'appTemp': None, 'rainRate': 0.0, 'heatindex': None, 'dateTime': 
>> 1487794846.0, 'inHumidity': 32.59, 'inTemp': 22.600000000000005, 
>> 'cloudbase': None, 'inDewpoint': 41.58132605144329}
>> Feb 22 16:20:46 walrus weewx[29153]: rtgdthread: Unexpected exception of 
>> type <type 'exceptions.KeyError'>
>> Feb 22 16:20:46 walrus weewx[29153]: *** Traceback (most recent call last
>> ):
>> Feb 22 16:20:46 walrus weewx[29153]: ***   File 
>> "/usr/share/weewx/user/rtgd.py", line 773, in run
>> Feb 22 16:20:46 walrus weewx[29153]: ***     self.process_packet(_package
>> ['payload'])
>> Feb 22 16:20:46 walrus weewx[29153]: ***   File 
>> "/usr/share/weewx/user/rtgd.py", line 790, in process_packet
>> Feb 22 16:20:46 walrus weewx[29153]: ***     self.buffer.setLowsAndHighs(
>> packet)
>> Feb 22 16:20:46 walrus weewx[29153]: ***   File 
>> "/usr/share/weewx/user/rtgd.py", line 1614, in setLowsAndHighs
>> Feb 22 16:20:46 walrus weewx[29153]: ***     outTemp = packet_d['outTemp'
>> ]
>> Feb 22 16:20:46 walrus weewx[29153]: *** KeyError: 'outTemp'
>>
>>

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