@@ -503,6 +510,7 @@ $('#modal-http').on('hide.bs.modal', function (event) {
if( cfg["gravity-format"] == "G" ) $("#gravity-format-g").click();
else $("#gravity-format-p").click();
$("#ota-url").val(cfg["ota-url"]);
+ $("#token").val(cfg["token"]);
$("#http-push").val(cfg["http-push"]);
$("#http-push-h1").val(cfg["http-push-h1"]);
$("#http-push-h2").val(cfg["http-push-h2"]);
diff --git a/html/config.min.htm b/html/config.min.htm
index 969958e..df5e584 100644
--- a/html/config.min.htm
+++ b/html/config.min.htm
@@ -1 +1 @@
-
Beer Gravity Monitor
A sleep-interval of less than 300s will reduce battery life, consider using 900s
When using the gyro temperature use a sleep-interval that is greater than 300s for accurate readings
(C) Copyright 2021-22 Magnus Persson
\ No newline at end of file
+
Beer Gravity Monitor
A sleep-interval of less than 300s will reduce battery life, consider using 900s
When using the gyro temperature use a sleep-interval that is greater than 300s for accurate readings
(C) Copyright 2021-22 Magnus Persson
\ No newline at end of file
diff --git a/html/format.htm b/html/format.htm
index 04e71fb..c19070d 100644
--- a/html/format.htm
+++ b/html/format.htm
@@ -148,10 +148,11 @@
// Test the calibration
$("#test-btn").click(function(e) {
var doc = $("#format").val();
- doc = doc.replaceAll("${mdns}", "gravmon2");
+ doc = doc.replaceAll("${mdns}", "testing");
doc = doc.replaceAll("${id}", "e4a344");
doc = doc.replaceAll("${sleep-interval}", "300");
doc = doc.replaceAll("${temp}", "21.1");
+ doc = doc.replaceAll("${token}", "a-token");
doc = doc.replaceAll("${temp-c}", "21.1");
doc = doc.replaceAll("${temp-f}", "51.3");
doc = doc.replaceAll("${temp-unit}", "C");
diff --git a/html/format.min.htm b/html/format.min.htm
index 0840663..b1a97fb 100644
--- a/html/format.min.htm
+++ b/html/format.min.htm
@@ -1,2 +1,2 @@
Beer Gravity Monitor
(C) Copyright 2021-22 Magnus Persson
\ No newline at end of file
+