Closed mrneutron42 closed 2 years ago
in the weewx database, a value of 1 for batteryStatus indicates low battery. this convention dates back to the original vantage implementation. in the atlas json fields, a value of 1 for battery_ok indicates the battery is not low.
When there are new batteries in my Acurite Atlas it sends "battery_ok = 1" in the transmitted packets. In sdr.py, the battery_ok parameter gets assigned to the variable "battery.0011.AcuriteAtlasPacket"
In my SDR Sensor Map, I assign the value of battery.0011.AcuriteAtlasPacket to the schema variable batteryStatus1.
When I look in the weewx database, a 0 is written to batteryStatus1 when the Acurite Atlas is sending "battery_ok =1". That is confusing. Why is the "logic polarity" of the battery_ok packet getting reversed?
from sdr.py