Heh, yup, that is what I get for trying to do this from memory. I do not
see the WH24 mapped in your confrig, and perhaps the error in the log is
you have logging turned on for unknown protocols. Try this in your SDR
section:
[SDR]
# This section is for the software-defined radio driver.
# The driver to use
driver = user.sdr
path = /usr/local/bin
cmd = rtl_433 -q -M utc -F json -p 39.741 -R 78 -f 914980000
[[sensor_map]]
outTemp = temperature.140.FOWH24Packet
outHumidity = humidity.140.FOWH24Packet
windDir = wind_dir.140.FOWH24Packet
windSpeed = wind_speed.140.FOWH24Packet
windGust = wind_gust.140.FOWH24Packet
rain_total = rain_total.140.FOWH24Packet
UV = uv_index.140.FOWH24Packet
radiation = light.140.FOWH24Packet
outTempBatteryStatus = battery.140.FOWH24Packet
inTemp = temperature.104.FOWH25Packet
inHumidity = humidity.104.FOWH25Packet
pressure = pressure.104.FOWH25Packet
inTempBatteryStatus = battery.104.FOWH25Packet
[[deltas]]
rain = rain_total
On Monday, February 11, 2019 at 5:24:06 AM UTC-6, N0ZO wrote:
>
> Is -p not for the ppm offset error?
> I think -R is the one needed to select 78 for the device type. I tried
> switching it around both ways, and still get the exact same error.
>
>
>
> On Sunday, February 10, 2019 at 10:26:18 PM UTC-6, [email protected]
> wrote:
>>
>> You're running protocol 66 and the WH24 is 78. Try this:
>>
>>
>> rtl_433 -M utc -F json -p 78 -f 915000000
>>
>> (you don't need -G here, since you don't want all protocols turned on)
>> Also, please post your entire weewx.conf, especially the SDR section.
>>
>>
>> On Sunday, February 10, 2019 at 10:09:04 PM UTC-6, N0ZO wrote:
>>>
>>> So I've wanted to use SDR to capture the data of the ObserverIP that I
>>> have. I have the WS-1400-IP which is a rebranded HP-1000 by Fine Offset.
>>> It took me forever to actually get where my Pi3B could read the data
>>> from the SDR. But now I finally got that working when I setup weewx by the
>>> setup.py method.
>>>
>>> Now I have hit a block that I'm not sure I can figure out, especially
>>> since I'm not finding anything of a fix on the internet.
>>>
>>> Running sudo PYTHONPATH=bin python bin/user/sdr.py --cmd="rtl_433 -M utc
>>>> -F json -G -p 66 -f 915000000"
>>>
>>>
>>> gives me this:
>>>
>>> out: ['{"time" : "2019-02-11 03:44:32", "model" : "Fine Offset WH24",
>>>> "id" : 140, "temperature_C" : 12.600, "humidity" : 80, "wind_dir_deg" :
>>>> 111, "wind_speed_ms" : 0.280, "gust_speed_ms" : 1.120, "rainfall_mm" :
>>>> 1150.800, "uv" : 1, "uvi" : 0, "light_lux" : 0.000, "battery" : "OK",
>>>> "mic"
>>>> : "CRC"}\n', '{"time" : "2019-02-11 03:44:33", "model" : "Fine Offset
>>>> Electronics, WH25", "id" : 104, "temperature_C" : 20.000, "humidity" : 57,
>>>> "pressure_hPa" : 1004.100, "battery" : "OK", "mic" : "CHECKSUM"}\n']
>>>> parsed: {'temperature.104.FOWH25Packet': 20.0,
>>>> 'battery.104.FOWH25Packet': 0, 'dateTime': 1549856673,
>>>> 'humidity.104.FOWH25Packet': 57.0, 'pressure.104.FOWH25Packet': 1004.1,
>>>> 'usUnits': 16}
>>>> out: ['{"time" : "2019-02-11 03:44:48", "model" : "Fine Offset WH24",
>>>> "id" : 140, "temperature_C" : 12.600, "humidity" : 80, "wind_dir_deg" :
>>>> 109, "wind_speed_ms" : 0.980, "gust_speed_ms" : 1.120, "rainfall_mm" :
>>>> 1150.800, "uv" : 1, "uvi" : 0, "light_lux" : 0.000, "battery" : "OK",
>>>> "mic"
>>>> : "CRC"}\n']
>>>
>>>
>>> Under parsed I get that I can now enter the temperature.104.FOWH25Packet
>>> under the [[Sensor_map]] under SDR. I also understand that my indoor
>>> device is the Fine Offset WH25, and the outdoor is the Fine Offset WH24.
>>> But part of what I can't figure out is this:
>>> It gave me the detail I needed for the Sensor_Map when it parsed the
>>> WH25, but it didn't do that for WH24. I think my questions may be linked in
>>> a way since it didn't parse that out.
>>>
>>> Now, when I run weewx instead of the sdr.py, I get this:
>>>
>>> Feb 10 21:50:27 raspberrypi weewx[2692]: sdr: MainThread: parse_json:
>>>>> unknown model Fine Offset WH24
>>>>
>>>> Feb 10 21:50:27 raspberrypi weewx[2692]: sdr: MainThread: punt
>>>>> unrecognized line '{"time" : "2019-02-11 03:50:24", "model" : "Fine
>>>>> Offset
>>>>> WH24", "id" : 140, "temperature_C" : 12.600, "humidity" : 81,
>>>>> "wind_dir_deg" : 152, "wind_speed_ms" : 0.840, "gust_speed_ms" : 1.120,
>>>>> "rainfall_mm" : 1150.800, "uv" : 1, "uvi" : 0, "light_lux" : 0.000,
>>>>> "battery" : "OK", "mic" : "CRC"}#012'
>>>>
>>>> Weewx is generating without error, and even has the inside temperature
>>> on the page it generated in public_html
>>>
>>> I can provide actual logs if needed, but I'm thinking it's some issue
>>> that I'm not seeing either with rtl_433 or something I missed in a setting
>>> with weewx.
>>>
>>> Also, I'm not sure if it matters or not, but I ran this line under SDR
>>> so that it captured data:
>>>
>>> cmd= rtl_433 -M utc -F json -G -p 66 -f 915000000
>>>
>>>
>>>
>>>
>>>
--
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.