diff --git a/src/templating.cpp b/src/templating.cpp index 9a91971..b5ac231 100644 --- a/src/templating.cpp +++ b/src/templating.cpp @@ -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}, " diff --git a/src_docs/source/data.rst b/src_docs/source/data.rst index 55f1557..9036805 100644 --- a/src_docs/source/data.rst +++ b/src_docs/source/data.rst @@ -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}}| diff --git a/src_docs/source/releases.rst b/src_docs/source/releases.rst index e1efa6c..bcca225 100644 --- a/src_docs/source/releases.rst +++ b/src_docs/source/releases.rst @@ -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 ------ diff --git a/src_docs/source/services.rst b/src_docs/source/services.rst index 5de90fd..b8aa10f 100644 --- a/src_docs/source/services.rst +++ b/src_docs/source/services.rst @@ -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},