Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Battery status on Oregon Scientific sensors doesn't work #1

Open
chaoschris opened this issue Aug 30, 2024 · 0 comments
Open

Battery status on Oregon Scientific sensors doesn't work #1

chaoschris opened this issue Aug 30, 2024 · 0 comments

Comments

@chaoschris
Copy link

Battery status on Oregon Scientific sensors doesn't work.

weewx.conf:

[[sensor_map]]
outTemp = temperature.1:95.OSTHGR968Packet
outHumidity = humidity.1:95.OSTHGR968Packet
outTempBatteryStatus = battery.1:95.OSTHGR968Packet
inTemp = temperature.0:236.OSBTHR968Packet
inHumidity = humidity.0:236.OSBTHR968Packet
pressure = pressure.0:236.OSBTHR968Packet
inTempBatteryStatus = battery.0:236.OSBTHR968Packet
extraTemp1 = temperature.2:148.OSTHGR122NPacket
extraHumidity1 = humidity.2:148.OSTHGR122NPacket

real data collected from SDR:

{"time" : "2024-08-05 14:51:51", "model" : "Oregon-THGR968", "id" : 95, "channel" : 1, "battery_ok" : 1, "temperature_C" : 25.800, "humidity" : 48}
{"time" : "2024-08-05 14:51:51", "model" : "Oregon-THGR968", "id" : 95, "channel" : 1, "battery_ok" : 1, "temperature_C" : 25.800, "humidity" : 48}
{"time" : "2024-08-05 14:52:15", "model" : "Oregon-BHTR968", "id" : 236, "channel" : 0, "battery_ok" : 1, "temperature_C" : 22.700, "humidity" : 62, "pressure_hPa" : 995.000}
{"time" : "2024-08-05 14:52:15", "model" : "Oregon-BHTR968", "id" : 236, "channel" : 0, "battery_ok" : 1, "temperature_C" : 22.700, "humidity" : 62, "pressure_hPa" : 995.000}
{"time" : "2024-08-05 14:52:28", "model" : "Oregon-THGR968", "id" : 95, "channel" : 1, "battery_ok" : 1, "temperature_C" : 25.800, "humidity" : 48}
{"time" : "2024-08-05 14:52:28", "model" : "Oregon-THGR968", "id" : 95, "channel" : 1, "battery_ok" : 1, "temperature_C" : 25.800, "humidity" : 48}

the parser in sdr.py searches for a string "battery" and not for "battery_ok".
Is this right?

I have already tested some changes in the sdr.py, but didn' t got it working.
The generated battery status on the web pages always shows "LOW" which isn't right.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant