From d86e5005d374fece6453f3f3e61a84a0f0750d0f Mon Sep 17 00:00:00 2001 From: mgunther68 Date: Sun, 7 Feb 2016 12:22:58 +0000 Subject: [PATCH 1/7] Split measurement definition for Range and Temperature --- build/portal/html/admin/index.php | 31 +++++++++++++++++++++++-------- 1 file changed, 23 insertions(+), 8 deletions(-) diff --git a/build/portal/html/admin/index.php b/build/portal/html/admin/index.php index 96aed2b..2739158 100644 --- a/build/portal/html/admin/index.php +++ b/build/portal/html/admin/index.php @@ -82,7 +82,8 @@ $common->updateSetting("enableDump1090", $enableDump1090); $common->updateSetting("enableDump978", $enableDump978); $common->updateSetting("enablePfclient", $enablePfclient); - $common->updateSetting("measurement", $_POST['measurement']); + $common->updateSetting("measurementRange", $_POST['measurementRange']); + $common->updateSetting("measurementTemperature", $_POST['measurementTemperature']); $common->updateSetting("networkInterface", $_POST['networkInterface']); // Set updated to TRUE since settings were updated. @@ -102,8 +103,9 @@ $enableDump978 = $common->getSetting("enableDump978"); $enablePfclient = $common->getSetting("enablePfclient"); - // Get unit of measurement setting from settings.xml. - $measurement = $common->getSetting("measurement"); + // Get units of measurement setting from settings.xml. + $measurementRange = $common->getSetting("measurementRange"); + $measurementTemperature = $common->getSetting("measurementTemperature"); // Get the network interface from settings.xml. $networkInterface = $common->getSetting("networkInterface"); @@ -204,14 +206,27 @@
-
Unit of Measurement
+
Unit of Measurement (Range)
-
+
+
+
+
Unit of Measurement (Temperature)
+
+
+ +
From fb82efc3f142449914ba9262f104cd32d0c168dc Mon Sep 17 00:00:00 2001 From: mgunther68 Date: Sun, 7 Feb 2016 12:28:23 +0000 Subject: [PATCH 2/7] Update settings.xml --- build/portal/html/data/settings.xml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/build/portal/html/data/settings.xml b/build/portal/html/data/settings.xml index b4cd10d..1fb3bd8 100644 --- a/build/portal/html/data/settings.xml +++ b/build/portal/html/data/settings.xml @@ -37,7 +37,11 @@ 1 - measurement + measurementRange + imperial + + + measurementTemperature imperial From 66646cd04d9907dee18e38a03101e7d70d45ed48 Mon Sep 17 00:00:00 2001 From: mgunther68 Date: Sun, 7 Feb 2016 12:32:46 +0000 Subject: [PATCH 3/7] Update graphs.tpl.php --- build/portal/html/templates/default/graphs.tpl.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/build/portal/html/templates/default/graphs.tpl.php b/build/portal/html/templates/default/graphs.tpl.php index c525572..340ecfc 100644 --- a/build/portal/html/templates/default/graphs.tpl.php +++ b/build/portal/html/templates/default/graphs.tpl.php @@ -5,8 +5,8 @@ // ========================================================================== // // Template Set: default // // Template Name: graphs // - // Version: 1.0.1 // - // Release Date: 03-02-2016 // + // Version: 1.0.2 // + // Release Date: 07-02-2016 // // Author: Joe Prochazka // // Website: https://www.swiftbyte.com // // Contributor: Marcus Gunther // @@ -167,7 +167,7 @@ ///////////////////////////////////////////////// // Content to be added to the scripts section. function scriptContent() { - global $measurement, $networkInterface; + global $measurementRange, $measurementTemperature, $networkInterface; ?>