matthewwall / weewx-sdr

weewx driver for software-defined radio
GNU General Public License v3.0
114 stars 74 forks source link

not getting data #181

Open promy opened 10 months ago

promy commented 10 months ago

I'm unable to get data to weewx. A bit more info I installed the driver cfr the readme When i run rlt_433 -M utc -F json i am seeing the data i edited the weewx with the sensor map (for testing i commented out the wind/rain) [[sensor_map]] outBatteryStatus = battery.1:9.HidekiTS04Packet outHumidity = humidity.1:9.HidekiTS04Packet outTemp = temperature.1:9.HidekiTS04Packet

but the log shows nothing from weewx after INFO weewx.engine: Starting main packet loop.

switching to the TE923 and i'm getting the data (but the problem is the tfa sinus is loosing the sensors after 10minutes due to inferference from the usb (known problem it seems)

andylittle commented 10 months ago

post some of the output of rlt_433 -M utc -F json

promy commented 10 months ago

here are some of the values

{"time" : "2023-11-10 14:41:47", "model" : "Hideki-TS04", "id" : 6, "channel" : 1, "battery_ok" : 1, "temperature_C" : 7.600, "humidity" : 84, "mic" : "CRC"} {"time" : "2023-11-10 14:41:47", "model" : "Hideki-TS04", "id" : 6, "channel" : 1, "battery_ok" : 1, "temperature_C" : 7.600, "humidity" : 84, "mic" : "CRC"} {"time" : "2023-11-10 14:41:47", "model" : "Hideki-TS04", "id" : 6, "channel" : 1, "battery_ok" : 1, "temperature_C" : 7.600, "humidity" : 84, "mic" : "CRC"} {"time" : "2023-11-10 14:41:53", "model" : "Hideki-TS04", "id" : 0, "channel" : 2, "battery_ok" : 1, "temperature_C" : 22.000, "humidity" : 60, "mic" : "CRC"} {"time" : "2023-11-10 14:41:53", "model" : "Hideki-TS04", "id" : 0, "channel" : 2, "battery_ok" : 1, "temperature_C" : 22.000, "humidity" : 60, "mic" : "CRC"} {"time" : "2023-11-10 14:41:53", "model" : "Hideki-TS04", "id" : 0, "channel" : 2, "battery_ok" : 1, "temperature_C" : 22.000, "humidity" : 60, "mic" : "CRC"} {"time" : "2023-11-10 14:42:05", "model" : "Hideki-Rain", "id" : 0, "channel" : 4, "battery_ok" : 1, "rain_mm" : 2255.400, "mic" : "CRC"} {"time" : "2023-11-10 14:42:05", "model" : "Hideki-Rain", "id" : 0, "channel" : 4, "battery_ok" : 1, "rain_mm" : 2255.400, "mic" : "CRC"} {"time" : "2023-11-10 14:42:06", "model" : "Hideki-Rain", "id" : 0, "channel" : 4, "battery_ok" : 1, "rain_mm" : 2255.400, "mic" : "CRC"}

promy commented 10 months ago

an extra comment: in the log it shows up if my garage door remote is pressed: "weewx[16535] DEBUG user.sdr: parse_json: unknown model Microchip-HCS200" so something is happening i guess

promy commented 10 months ago

I found the problem: the example suggests outBatteryStatus = battery.1:9.HidekiTS04Packet
But the 9 is the id.... mine is another number, after changing this, it was solved ;-)

for the HidekiRainPacket and HidekiWindPacket i (think) i found an error in sdr.py: it says pkt['rolling_code'] = obj.get('rc')

but with my sensors i needed to change this to

pkt['rolling_code'] = obj.get('id')

this just like the HidekiTS04Packet where this was already changed