Jump to content
View in the app

A better way to browse. Learn more.

Universal Devices Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Battery logic inverted

Featured Replies

Posted

The battery fields on my two Ambient Weather nodes show low battery while in fact they are OK.  The BATLVL data on the node server is a 1, according to the API document they should read 1=OK and 0=Low.  I do have a Meteobridge so the logic should be as I stated earlier.

Also, the admin menu shows low CO2 batteries but I don't have these batteries and the node server data does not have this parameter either.

Attached is my log file and any help with this issue would be appreciated.

Thank you.

AmbientWeather_1-27-2023_42331-PM.zip

The battery logic varies depending on the sensor.  Some have 1 = OK, some have 0 = OK.  When I wrote the node server I set up the battery definition based on whatever sensor I had available for testing.  I'd need to go back and create another battery definition, then try to figure out which sensor needs to use which definition.   I've resisted because I think Ambient's inconsistency in this area is bug.

The CO2 battery field seems to be coming from the server data but without seeing the raw data from the server, I can't say anymore.  Setting the log level to debug should output the raw data from the server in the log.  CO2 battery comes from a field in the data called "batt_co2".

  • Author

You are correct about the "batt_co2", it's in the server data.  But it doesn't apply to my weather station data, can I remove this data field?

I've attached the debug log.

Thank you.

AmbientWeather_1-28-2023_61400-PM.zip

Not from the node server.  The node server is just reporting what the server sends.

Guest
This topic is now closed to further replies.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.