Hi Michael,

Would you give 2.0.b3 a try and let me know how it goes?

If it doesn’t work, I’ll run with the simulator (and no barometer/pressure) 
before I push another version.

Cheers,
John

> On Jul 12, 2020, at 3:39 AM, Michael <wee...@gmx.de> wrote:
> 
> 
> Hi John,
> 
> I have just tested the version LOOP_DATA_VERSION = '2.0.b2'.
> the following error appears after a few minutes runtime:
> 
> Jul 12 12:35:08 raspberrypi weewx[31676] CRITICAL user.loopdata:     ****  
> Traceback (most recent call last):
> Jul 12 12:35:08 raspberrypi weewx[31676] CRITICAL user.loopdata:     ****    
> File "/home/weewx/bin/user/loopdata.py", line 335, in process_queue
> Jul 12 12:35:08 raspberrypi weewx[31676] CRITICAL user.loopdata:     ****     
>  self.save_barometer_reading(pkt_time, pkt)
> Jul 12 12:35:08 raspberrypi weewx[31676] CRITICAL user.loopdata:     ****    
> File "/home/weewx/bin/user/loopdata.py", line 855, in save_barometer_reading
> Jul 12 12:35:08 raspberrypi weewx[31676] CRITICAL user.loopdata:     ****     
>  value = self.arc_per_accum['barometer'].avg
> Jul 12 12:35:08 raspberrypi weewx[31676] CRITICAL user.loopdata:     ****  
> KeyError: 'barometer'
> Jul 12 12:35:18 raspberrypi weewx[31676] INFO user.sdr: unmapped: ['{"time" : 
> "2020-07-12 10:35:14", "model" : "HIDEKI TS04 sensor", "rc" : 0, "channel" : 
> 3, "battery" : "OK", "temperature_C" : 28.700, "humidity" : 43, "mic" : 
> "CRC"}\n'] ({'dateTime': 1594550114, 'usUnits': 16, 
> 'temperature.3:0.HidekiTS04Packet': 28.7, 'humidity.3:0.HidekiTS04Packet': 
> 43.0, 'battery.3:0.HidekiTS04Packet': 0})
> Jul 12 12:35:18 raspberrypi weewx[31676] INFO user.sdr: unmapped: [] 
> ({'dateTime': 1594550114, 'usUnits': 16, 'temperature.3:0.HidekiTS04Packet': 
> 28.7, 'humidity.3:0.HidekiTS04Packet': 43.0, 'battery.3:0.HidekiTS04Packet': 
> 0})
> Jul 12 12:35:22 raspberrypi weewx[31676] INFO weewx.manager: Added record 
> 2020-07-12 12:35:00 CEST (1594550100) to database 'weewx_sdr2'
> Jul 12 12:35:23 raspberrypi weewx[31676] INFO weewx.manager: Added record 
> 2020-07-12 12:35:00 CEST (1594550100) to daily summary in 'weewx_sdr2'
> Jul 12 12:35:23 raspberrypi weewx[31676] INFO weewx.cheetahgenerator: 
> Generated 1 files for report WeatherBoardReport in 0.31 seconds
> Jul 12 12:35:23 raspberrypi weewx[31676] INFO weewx.reportengine: Copied 2 
> files to /var/www/html/weatherboard
> Kind Regards 
> Michael
> 
> 
> 
> Am Sonntag, 12. Juli 2020 05:55:30 UTC+2 schrieb John Kline:
>> 
>> Hi Michael,
>> 
>> I rewrote LoopData to use the same names as Cheetah (rather than keeping my 
>> home-grown naming scheme).
>> 
>> If you are planning on going further with LoopData (and WeatherBoard) I 
>> recommend that you switch to:
>> https://github.com/chaunceygardiner/weewx-loopdata/tree/development
>> and
>> https://github.com/chaunceygardiner/weewx-weatherboard/tree/development
>> 
>> You’ll find the names you can include much more familiar.  Here’ my 
>> loop-data.txt now:
>> {"current.dateTime.raw": 1594525666, "current.windSpeed.raw": 0.0, 
>> "current.windSpeed": "0.0 mph", "current.windDir.ordinal_compass": "N/A", 
>> "trend.barometer.desc": "Rising Slowly", "current.barometer": "29.976 inHg", 
>> "day.rain.sum": "0.00 in", "current.dewpoint": "55.5\u00b0F", 
>> "current.heatindex": "68.2\u00b0F", "current.outHumidity": "64%", 
>> "current.outTemp": "68.2\u00b0F", "current.rainRate": "0.00 in/h", 
>> "current.windchill": "68.2\u00b0F", "day.windGust.maxtime": "07/11/2020 
>> 03:58:52 PM", "day.windGust.max": "13.8 mph", "10m.windGust.max": "4.4 mph", 
>> "current.pm2_5_aqi.raw": 29.0, "current.pm2_5_aqic.raw": 2746368, 
>> "day.wind.maxtime": "07/11/2020 03:58:52 PM", "day.wind.max.formatted": 
>> "13.8", "day.wind.gustdir.formatted": "45", "day.outTemp.maxtime": 
>> "07/11/2020 02:01:02 PM", "day.outTemp.max.formatted": "87.2", 
>> "day.outTemp.mintime": "07/11/2020 06:15:54 AM", 
>> "day.outTemp.min.formatted": "53.2", "day.heatindex.maxtime": "07/11/2020 
>> 02:01:02 PM", "day.heatindex.max.formatted": "87.2", 
>> "day.windchill.mintime": "07/11/2020 06:15:54 AM", 
>> "day.windchill.min.formatted": "53.2", "day.dewpoint.maxtime": "07/11/2020 
>> 07:59:56 AM", "day.dewpoint.max.formatted": "61.4", "day.dewpoint.mintime": 
>> "07/11/2020 06:15:54 AM", "day.dewpoint.min.formatted": "51.8", 
>> "day.outHumidity.maxtime": "07/11/2020 07:06:56 AM", 
>> "day.outHumidity.max.formatted": "96", "day.outHumidity.mintime": 
>> "07/11/2020 02:03:02 PM", "day.outHumidity.min.formatted": "34", 
>> "day.barometer.maxtime": "07/11/2020 10:36:58 AM", 
>> "day.barometer.max.formatted": "30.025", "day.barometer.minttime": 
>> "day.barometer.minttime", "day.barometer.min.formatted": "29.945", 
>> "day.rain.sum.formatted": "0.00", "day.rainRate.maxtime": "07/11/2020 
>> 12:00:02 AM", "day.rainRate.max.formatted": "0.00", 
>> "day.wind.avg.formatted": "2.0", "day.wind.rms.formatted": "2.6", 
>> "day.wind.vecavg.formatted": "1.8", "day.wind.vecdir.formatted": "357", 
>> "current.consBatteryVoltage": "5.3 V", "current.supplyVoltage": "6.6 V"}
>> current and day are pretty much all there.  You can’t use .format(xxx); but 
>> you can use .formatted (which is the same as .format(add_label=False).
>> unit.label.<obs> works.
>> Trend only has barometer and it’s for a hard coded (at present) 3-hour 
>> barometer trend:
>> trend.barometer
>> Also, trend.barometer.desc is a made up, not currently localized, way of 
>> getting steady, falling slowly, etc.  I’ve got to figure something out for 
>> that.
>> Lastly, there’s also a 15m period just for windGust.
>> 15m.windGust.max
>> 15m.windGust.maxtime
>> 
>> Cheers,
>> John
>> 
>> .
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "weewx-development" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to weewx-development+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/weewx-development/c336dad9-dca8-4a74-8268-3b76cfc5d757o%40googlegroups.com.

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-development+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-development/61E8F2A1-F900-410C-A3CA-5E9C327A354C%40johnkline.com.

Reply via email to