iSpindle temp format error

This commit is contained in:
Magnus Persson 2022-04-03 20:01:12 +02:00
parent 294b7a7fdd
commit 1494b2b3b2
4 changed files with 6 additions and 5 deletions

View File

@ -38,7 +38,7 @@ const char iSpindleFormat[] PROGMEM =
"\"token\" : \"${token}\", "
"\"interval\": ${sleep-interval}, "
"\"temperature\": ${temp}, "
"\"temp-units\": \"${temp-unit}\", "
"\"temp_units\": \"${temp-unit}\", "
"\"gravity\": ${gravity}, "
"\"angle\": ${angle}, "
"\"battery\": ${battery}, "

View File

@ -22,7 +22,7 @@ This is the format used for standard http posts.
"token" : "gravmon",
"interval": 900,
"temperature": 20.5,
"temp-units": "C",
"temp_units": "C",
"gravity": 1.0050,
"angle": 45.34,
"battery": 3.67,
@ -43,7 +43,7 @@ This is the format template used to create the json above.
"token" : "gravmon",
"interval": ${sleep-interval},
"temperature": ${temp},
"temp-units": "${temp-unit}",
"temp_units": "${temp-unit}",
"gravity": ${gravity},
"angle": ${angle},
"battery": ${battery},
@ -153,7 +153,7 @@ This is a format template that is compatible with v0.6. Just replace the `topic`
.. code-block::
topic:{"name":"gravmon", "ID":"${id}", "token":"gravmon", "interval": ${sleep-interval},
"temperature": ${temp}, "temp-units": "${temp-unit}", "gravity":${gravity},
"temperature": ${temp}, "temp_units": "${temp-unit}", "gravity":${gravity},
"angle": ${angle}, "battery":${battery}, "rssi": ${rssi}, "corr-gravity":${corr-gravity},
"gravity-unit": "${gravity-unit}", "run-time": ${run-time}}|

View File

@ -20,6 +20,7 @@ v0.9.0
* Mounted esp32 d1 mini mounted to a iSpindle PCB 4.0 (CherryPhilip) which worked fine.
* BUG: Corrected PIN for voltage read on ESP32
* BUG: If using plato and not gravity formula was defined the value was set to null.
* BUG: Temp format name was incorrect in iSpindle format causing receiver to incorrectly read temperature.
v0.8.0
------

View File

@ -190,7 +190,7 @@ format for the endpoint. Just add you API key after token.
"token" : "[API KEY]",
"interval": ${sleep-interval},
"temperature": ${temp},
"temp-units": "${temp-unit}",
"temp_units": "${temp-unit}",
"gravity": ${gravity},
"angle": ${angle},
"battery": ${battery},