From 6706a7f9d6ad650ff31bff09782f86440a4aa018 Mon Sep 17 00:00:00 2001 From: Magnus Date: Mon, 5 Dec 2022 22:09:03 +0100 Subject: [PATCH] Updated ota html --- html/config.htm | 8 ++++---- html/config.min.htm | 2 +- test/config.json | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/html/config.htm b/html/config.htm index 5b3a1c6..a023157 100644 --- a/html/config.htm +++ b/html/config.htm @@ -468,7 +468,7 @@ -
+
@@ -507,9 +507,9 @@ if ( b ) { $("#ota-url").val(gravitymonUrl); - $("#ota-url").prop("disabled", true); + $('#ota-hide').hide(); } else { - $("#ota-url").prop("disabled", false); + $('#ota-hide').show(); } }); @@ -966,7 +966,7 @@ if( cfg["ota-url"] == gravitymonUrl) { $("#gravitymon-com").prop( "checked", true ); - $("#ota-url").prop("disabled", true); + $("#ota-hide").hide(); } $("#token").val(cfg["token"]); diff --git a/html/config.min.htm b/html/config.min.htm index 671e73c..9818f21 100644 --- a/html/config.min.htm +++ b/html/config.min.htm @@ -1 +1 @@ -Beer Gravity Monitor

Temperature Format



(10-100) - default 50
(50-1000) - default 500
(1 - 10) - default 3 SG
(0 - 100) - default 20C/68F

(9 - 12) - default 9 bits

(1 - 60) - default 20 s
(10 - 240) - default 120 s

(0 - 5) - default 0
(0 - 5) - default 0
(0 - 5) - default 0
(0 - 5) - default 0
(0 - 5) - default 0
(C) Copyright 2021-22 Magnus Persson
\ No newline at end of file +Beer Gravity Monitor

Temperature Format



(10-100) - default 50
(50-1000) - default 500
(1 - 10) - default 3 SG
(0 - 100) - default 20C/68F

(9 - 12) - default 9 bits

(1 - 60) - default 20 s
(10 - 240) - default 120 s

(0 - 5) - default 0
(0 - 5) - default 0
(0 - 5) - default 0
(0 - 5) - default 0
(0 - 5) - default 0
(C) Copyright 2021-22 Magnus Persson
\ No newline at end of file diff --git a/test/config.json b/test/config.json index af6a3e1..8df0a6b 100644 --- a/test/config.json +++ b/test/config.json @@ -3,7 +3,7 @@ "wifi-ssid2": "ssid 2", "mdns": "gravmon3", "id": "7376ef", - "ota-url": "http://192.168.1.100:80/firmware/gravmon/", + "ota-url": "https://www.gravitymon.com/firmware/", "temp-format": "C", "http-push": "http://192.168.1.10:9090/api/v1/ZYfjlUNeiuyu9N/telemetry", "http-push-h1": "Auth: Basic T7IF9DD9fF3RDddE=",