Hi,
after poking around with the name scheme I got the Wind Speed Working, but
Wind Gust and Wind Direction are totally ignored....
@staticmethod
def parse_json(obj):
pkt = dict()
pkt['dateTime'] = Packet.parse_time(obj.get('time'))
pkt['usUnits'] = weewx.METRICWX
pkt['station_id'] = obj.get('id')
pkt['temperature'] = Packet.get_float(obj, 'temperature_C')
pkt['humidity'] = Packet.get_float(obj, 'humidity')
pkt['wind_gust'] = Packet.get_float(obj, 'gust_speed')
pkt['wind_speed'] = Packet.get_float(obj, 'wind_speed')
pkt['wind_dir'] = Packet.get_float(obj, 'windDir')
pkt['rain_total'] = Packet.get_float(obj, 'rain_mm')
pkt['uv'] = Packet.get_float(obj, 'uv')
pkt['uv_index'] = Packet.get_float(obj, 'uvi')
return Bresser5in1Packet.insert_ids(pkt)
Maybe I am way to tired, but I don't get see the part where "wind_dir_deg"
and "wind_gust" are extracted in sdr.py.... Maybe thats the reason why they
are totally ignored.
Jan 16 22:29:14 z8300 weewx[5303]: sdr: MainThread: lines=['{"time" :
"2019-01-16 22:29:11", "model" : "Bresser-5in1", "id" : 204,
"temperature_C" : 4.600, "humidity" : 82, "wind_gust" : 1.400, "wind_speed"
: 1.100, "wind_dir_deg" : 112.500, "rain_mm" : 72.800, "mic" :
"CHECKSUM"}\n']
Jan 16 22:29:14 z8300 weewx[5303]: sdr: MainThread: packet={'outHumidity':
82.0, 'outTemp': 4.6, 'windSpeed': 1.1, 'usUnits': 17, 'dateTime':
1547677751}
Jan 16 22:29:14 z8300 weewx[5303]: reportengine: Running reports for latest
time in the database.
Jan 16 22:29:14 z8300 weewx[5303]: reportengine: Running report
StandardReport
Though could not test "rain" - but so far the total is ignored just now...
maybe if some further rain falls, the delta value will be filled in...
Is there anywhere an explanation which variable Name is converted to which
one? As mentioned, I am still a bit confused with this quadruple rempapping
of names...
Cheers
UG
Am Mi., 16. Jan. 2019 um 21:22 Uhr schrieb U G <[email protected]>:
> Hmm... i Just cloned and compiled this version, but the variables seems
> to be the same....still no wind_speed_ms
>
> https://github.com/merbanan/rtl_433
>
> Tuned to 868.270MHz.
> {"time" : "2019-01-16 21:19:23", "model" : "Bresser-5in1", "id" : 204,
> "temperature_C" : 4.300, "humidity" : 82, "wind_gust" : 0.800, "wind_speed"
> : 1.400, "wind_dir_deg" : 112.500, "rain_mm" : 72.800, "mic" : "CHECKSUM"}
> {"time" : "2019-01-16 21:19:35", "model" : "Bresser-5in1", "id" : 204,
> "temperature_C" : 4.300, "humidity" : 82, "wind_gust" : 0.800, "wind_speed"
> : 1.100, "wind_dir_deg" : 157.500, "rain_mm" : 72.800, "mic" : "CHECKSUM"}
>
>
> Nevertheless, are the other variables correct? wind_dir_deg ans rain_mm
> seems fine, but do not work either...
>
> Cheers
>
> UG
>
>
> Am Mi., 16. Jan. 2019 um 21:07 Uhr schrieb U G <[email protected]
> >:
>
>> Hi,
>> I use the latest one, checked out by git, which supports the
>> bresser-5-in-1
>>
>> https://github.com/iMarkus/rtl_433.git
>>
>> (Or do you recommend a different Version? I found so many of those,
>> which are ALL quiet new and some (claim) to support the bresser 5-in-1
>> device and some don't....
>>
>> rtl_433# rtl_433 -v
>> rtl_433: invalid option -- 'v'
>> Trying conf file at "rtl_433.conf"...
>> Trying conf file at "/root/.rtl_433.conf"...
>> Trying conf file at "/usr/local/etc/rtl_433.conf"...
>> Trying conf file at "/etc/rtl_433.conf"...
>> rtl_433: invalid option -- 'v'
>> rtl_433, an ISM band generic data receiver for RTL2832 based DVB-T
>> receivers
>> version 18.05-349-gce93011 branch master at 201812131946
>>
>> Which one should I try? Which one is "the real thing" :-)
>>
>> THanks a lot
>>
>> Cheers,
>>
>> UG
>>
>>
>> Am Mi., 16. Jan. 2019 um 19:55 Uhr schrieb mwall <[email protected]>:
>>
>>> On Tuesday, January 15, 2019 at 4:36:37 PM UTC-5, U G wrote:
>>>>
>>>> Or do I miss something?
>>>>
>>>
>>> looks like a difference in the output from different versions of rtl_433
>>>
>>> your rtl_433 emits 'wind_speed', but the weewx-sdr driver is looking for
>>> 'wind_speed_ms'
>>>
>>> are you using the latest rtl_433?
>>>
>>> m
>>>
>>> --
>>> 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.