HI @SwonVIP ,
Ive just recently deployed a new version for the cistern monitoring api. The api now provides the following additional values:
example:
{
"waterlevel_perc": "94",
"waterlevel_litre": "7520",
"timestamp": "2022-08-03 20:50:39",
"UniqueID": "78:E3:6D:0A:DD:48",
"localBatteryVoltage": "1299", //new: shows the battery voltage of the main module.
"wirelessBatteryVoltage": "622", //battery voltage of the wireless sender module
"wirelessSensorStatus": "NORMAL ", //current status of the wireless sender module ("NORMAL". "INTERRUPTED")
"sensorMode": "WIRELESS_SENSOR", //shows whether the wireless sensor module is being used or not ( Main Module mode only)
"rawValue": "12" // measured value (raw)
}
You can use the UniqueID in example above to retrieve some values form the api.
Could you add some icons in the app that graphically represent the new information ?
Please see below the overall logic and display conditions for the icons:
Icon1 ( rawValue):
https://fonts.google.com/icons?selected=Material%20Symbols%20Outlined%3Aexpand%3AFILL%400%3Bwght%40400%3BGRAD%400%3Bopsz%4048
Display condition:
always show icon. Display rawValue with small text next to icon.
Icon 2 (critical Battery color red) :
Critical:
https://fonts.google.com/icons?selected=Material%20Symbols%20Outlined%3Abadge_critical_battery%3AFILL%400%3Bwght%40400%3BGRAD%400%3Bopsz%4048
Display condition:
localBatteryVoltage < 1890
Icon 3 (battery 20%):
https://fonts.google.com/icons?selected=Material%20Symbols%20Outlined%3Abattery_horiz_050%3AFILL%400%3Bwght%40400%3BGRAD%400%3Bopsz%4048
Display condition:
localBatteryVoltage >= 1890 && localBatteryVoltage <= 2064
Icon 4 (battery 75%):
https://fonts.google.com/icons?selected=Material%20Symbols%20Outlined%3Abattery_horiz_075%3AFILL%400%3Bwght%40400%3BGRAD%400%3Bopsz%4048
Display condition:
localBatteryVoltage > 2064 && localBatteryVoltage < 2320
Icon 5( Battery full):
https://fonts.google.com/icons?selected=Material%20Symbols%20Outlined%3Abattery_full_alt%3AFILL%400%3Bwght%40400%3BGRAD%400%3Bopsz%4048
Display condition:
localBatteryVoltage >= 2320
Icon 6 (Lora icon):
https://fonts.google.com/icons?selected=Material%20Symbols%20Outlined%3Apodcasts%3AFILL%400%3Bwght%40400%3BGRAD%400%3Bopsz%4048
Display condition ( icon color green) :
SensorMode = "WIRELESS_SENSOR" &&
wirelessSensorStatus = "NORMAL"
Display condition ( icon color red) :
SensorMode = "WIRELESS_SENSOR" &&
wirelessSensorStatus = "INTERRUPTED"
Do not Display icon for condition:
SensorMode != "WIRELESS_SENSOR"
Icon 7 (Wireless battery critical icon color in red)
Icon: custom (I'll provide the icon in PNG Format)
But for the beginning you can use the battery Icons ( icons 2-5) from the local battery.
Display condition:
wirelessBatteryVoltage < 372 && SensorMode = "WIRELESS_SENSOR" && wirelessSensorStatus = "NORMAL"
Icon 8 (Wireless battery 20%)
Icon: custom (I'll provide the icon in PNG Format)
But for the beginning you can use the battery Icons ( icons 2-5) from the local battery.
Display condition:
wirelessBatteryVoltage >= 372 && wirelessBatteryVoltage <= 418 && SensorMode = "WIRELESS_SENSOR" && wirelessSensorStatus = "NORMAL"
Icon 9 (Wireless battery 75%)
Icon: custom (I'll provide the icon in PNG Format)
But for the beginning you can use the battery Icons ( icons 2-5) from the local battery.
Display condition:
wirelessBatteryVoltage >= 418 && wirelessBatteryVoltage <= 449 && SensorMode = "WIRELESS_SENSOR" && wirelessSensorStatus = "NORMAL"
Icon 9 (Wireless battery 75%)
Icon: custom (I'll provide the icon in PNG Format)
But for the beginning you can use the battery Icons ( icons 2-5) from the local battery.
Display condition:
wirelessBatteryVoltage > 449 && SensorMode = "WIRELESS_SENSOR" && wirelessSensorStatus = "NORMAL"
I really appreciate your work and help with this project!!!! THANK YOU!!!
In case of any further questions, please let me know..
HI @SwonVIP ,
Ive just recently deployed a new version for the cistern monitoring api. The api now provides the following additional values:
example:
{
"waterlevel_perc": "94",
"waterlevel_litre": "7520",
"timestamp": "2022-08-03 20:50:39",
"UniqueID": "78:E3:6D:0A:DD:48",
"localBatteryVoltage": "1299", //new: shows the battery voltage of the main module.
"wirelessBatteryVoltage": "622", //battery voltage of the wireless sender module
"wirelessSensorStatus": "NORMAL ", //current status of the wireless sender module ("NORMAL". "INTERRUPTED")
"sensorMode": "WIRELESS_SENSOR", //shows whether the wireless sensor module is being used or not ( Main Module mode only)
"rawValue": "12" // measured value (raw)
}
You can use the UniqueID in example above to retrieve some values form the api.
Could you add some icons in the app that graphically represent the new information ?
Please see below the overall logic and display conditions for the icons:
Icon1 ( rawValue):
https://fonts.google.com/icons?selected=Material%20Symbols%20Outlined%3Aexpand%3AFILL%400%3Bwght%40400%3BGRAD%400%3Bopsz%4048
Display condition:
always show icon. Display rawValue with small text next to icon.
Icon 2 (critical Battery color red) :
Critical:
https://fonts.google.com/icons?selected=Material%20Symbols%20Outlined%3Abadge_critical_battery%3AFILL%400%3Bwght%40400%3BGRAD%400%3Bopsz%4048
Display condition:
localBatteryVoltage < 1890
Icon 3 (battery 20%):
https://fonts.google.com/icons?selected=Material%20Symbols%20Outlined%3Abattery_horiz_050%3AFILL%400%3Bwght%40400%3BGRAD%400%3Bopsz%4048
Display condition:
localBatteryVoltage >= 1890 && localBatteryVoltage <= 2064
Icon 4 (battery 75%):
https://fonts.google.com/icons?selected=Material%20Symbols%20Outlined%3Abattery_horiz_075%3AFILL%400%3Bwght%40400%3BGRAD%400%3Bopsz%4048
Display condition:
localBatteryVoltage > 2064 && localBatteryVoltage < 2320
Icon 5( Battery full):
https://fonts.google.com/icons?selected=Material%20Symbols%20Outlined%3Abattery_full_alt%3AFILL%400%3Bwght%40400%3BGRAD%400%3Bopsz%4048
Display condition:
localBatteryVoltage >= 2320
Icon 6 (Lora icon):
https://fonts.google.com/icons?selected=Material%20Symbols%20Outlined%3Apodcasts%3AFILL%400%3Bwght%40400%3BGRAD%400%3Bopsz%4048
Display condition ( icon color green) :
SensorMode = "WIRELESS_SENSOR" &&
wirelessSensorStatus = "NORMAL"
Display condition ( icon color red) :
SensorMode = "WIRELESS_SENSOR" &&
wirelessSensorStatus = "INTERRUPTED"
Do not Display icon for condition:
SensorMode != "WIRELESS_SENSOR"
Icon 7 (Wireless battery critical icon color in red)
Icon: custom (I'll provide the icon in PNG Format)
But for the beginning you can use the battery Icons ( icons 2-5) from the local battery.
Display condition:
wirelessBatteryVoltage < 372 && SensorMode = "WIRELESS_SENSOR" && wirelessSensorStatus = "NORMAL"
Icon 8 (Wireless battery 20%)
Icon: custom (I'll provide the icon in PNG Format)
But for the beginning you can use the battery Icons ( icons 2-5) from the local battery.
Display condition:
wirelessBatteryVoltage >= 372 && wirelessBatteryVoltage <= 418 && SensorMode = "WIRELESS_SENSOR" && wirelessSensorStatus = "NORMAL"
Icon 9 (Wireless battery 75%)
Icon: custom (I'll provide the icon in PNG Format)
But for the beginning you can use the battery Icons ( icons 2-5) from the local battery.
Display condition:
wirelessBatteryVoltage >= 418 && wirelessBatteryVoltage <= 449 && SensorMode = "WIRELESS_SENSOR" && wirelessSensorStatus = "NORMAL"
Icon 9 (Wireless battery 75%)
Icon: custom (I'll provide the icon in PNG Format)
But for the beginning you can use the battery Icons ( icons 2-5) from the local battery.
Display condition:
wirelessBatteryVoltage > 449 && SensorMode = "WIRELESS_SENSOR" && wirelessSensorStatus = "NORMAL"
I really appreciate your work and help with this project!!!! THANK YOU!!!
In case of any further questions, please let me know..