From b61a678db563f0ac6651b929cad375f73c2b580a Mon Sep 17 00:00:00 2001
From: Zachary Kitchen <30428121+digitalcrisis@users.noreply.github.com>
Date: Wed, 23 May 2018 17:07:09 -0500
Subject: [PATCH] Updated for Weather App on Grandstream Phons
---
app/grandstream/app_config.php | 8 ++++++++
.../provision/grandstream/gxp2130/{$mac}.xml | 16 ++++++++++------
.../provision/grandstream/gxp2135/{$mac}.xml | 16 ++++++++++------
.../provision/grandstream/gxp2140/{$mac}.xml | 16 ++++++++++------
.../provision/grandstream/gxp2160/{$mac}.xml | 16 ++++++++++------
.../provision/grandstream/gxp2170/{$mac}.xml | 4 ++++
6 files changed, 52 insertions(+), 24 deletions(-)
diff --git a/app/grandstream/app_config.php b/app/grandstream/app_config.php
index 77de49d02e..6bc3b12081 100644
--- a/app/grandstream/app_config.php
+++ b/app/grandstream/app_config.php
@@ -396,4 +396,12 @@
$apps[$x]['default_settings'][$y]['default_setting_enabled'] = "false";
$apps[$x]['default_settings'][$y]['default_setting_description'] = "Enter City to configure City for the Weather app on the Phone";
$y++;
+ $apps[$x]['default_settings'][$y]['default_setting_uuid'] = "52b6e1e2-5ed5-11e8-9c2d-fa7ae01bbebc";
+ $apps[$x]['default_settings'][$y]['default_setting_category'] = "provision";
+ $apps[$x]['default_settings'][$y]['default_setting_subcategory'] = "grandstream_temp_unit";
+ $apps[$x]['default_settings'][$y]['default_setting_name'] = "text";
+ $apps[$x]['default_settings'][$y]['default_setting_value'] = "f";
+ $apps[$x]['default_settings'][$y]['default_setting_enabled'] = "false";
+ $apps[$x]['default_settings'][$y]['default_setting_description'] = "c - Celsius f - Farenheit / If disabled will be set to auto";
+ $y++;
?>
diff --git a/resources/templates/provision/grandstream/gxp2130/{$mac}.xml b/resources/templates/provision/grandstream/gxp2130/{$mac}.xml
index 97a116690a..373c321ba1 100644
--- a/resources/templates/provision/grandstream/gxp2130/{$mac}.xml
+++ b/resources/templates/provision/grandstream/gxp2130/{$mac}.xml
@@ -1586,7 +1586,7 @@
{$display_name_3}
-
+
*97
@@ -4573,7 +4573,7 @@
-
+
@@ -5493,7 +5493,7 @@
-
+
@@ -5503,12 +5503,12 @@
10
-
+
0
-
+
@@ -5989,7 +5989,11 @@
-c
+{if isset($grandstream_temp_unit)}
+{$grandstream_temp_unit}
+{else}
+auto
+{/if}
diff --git a/resources/templates/provision/grandstream/gxp2135/{$mac}.xml b/resources/templates/provision/grandstream/gxp2135/{$mac}.xml
index 247419fdb9..074a6103fb 100644
--- a/resources/templates/provision/grandstream/gxp2135/{$mac}.xml
+++ b/resources/templates/provision/grandstream/gxp2135/{$mac}.xml
@@ -1586,7 +1586,7 @@
{$display_name_3}
-
+
*97
@@ -4573,7 +4573,7 @@
-
+
@@ -5493,7 +5493,7 @@
-
+
@@ -5503,12 +5503,12 @@
10
-
+
0
-
+
@@ -5989,7 +5989,11 @@
-c
+{if isset($grandstream_temp_unit)}
+{$grandstream_temp_unit}
+{else}
+auto
+{/if}
diff --git a/resources/templates/provision/grandstream/gxp2140/{$mac}.xml b/resources/templates/provision/grandstream/gxp2140/{$mac}.xml
index 247419fdb9..074a6103fb 100644
--- a/resources/templates/provision/grandstream/gxp2140/{$mac}.xml
+++ b/resources/templates/provision/grandstream/gxp2140/{$mac}.xml
@@ -1586,7 +1586,7 @@
{$display_name_3}
-
+
*97
@@ -4573,7 +4573,7 @@
-
+
@@ -5493,7 +5493,7 @@
-
+
@@ -5503,12 +5503,12 @@
10
-
+
0
-
+
@@ -5989,7 +5989,11 @@
-c
+{if isset($grandstream_temp_unit)}
+{$grandstream_temp_unit}
+{else}
+auto
+{/if}
diff --git a/resources/templates/provision/grandstream/gxp2160/{$mac}.xml b/resources/templates/provision/grandstream/gxp2160/{$mac}.xml
index 247419fdb9..47657146e0 100644
--- a/resources/templates/provision/grandstream/gxp2160/{$mac}.xml
+++ b/resources/templates/provision/grandstream/gxp2160/{$mac}.xml
@@ -1586,7 +1586,7 @@
{$display_name_3}
-
+
*97
@@ -4573,7 +4573,7 @@
-
+
@@ -5493,7 +5493,7 @@
-
+
@@ -5503,12 +5503,12 @@
10
-
+
0
-
+
@@ -5989,7 +5989,11 @@
-c
+{if isset ($grandstream_temp_unit)}
+{}$grandstream_temp_unit}
+{else}
+auto
+{/if}
diff --git a/resources/templates/provision/grandstream/gxp2170/{$mac}.xml b/resources/templates/provision/grandstream/gxp2170/{$mac}.xml
index a411419a0b..8bd7f5997a 100644
--- a/resources/templates/provision/grandstream/gxp2170/{$mac}.xml
+++ b/resources/templates/provision/grandstream/gxp2170/{$mac}.xml
@@ -7262,7 +7262,11 @@
+{if isset ($grandstream_temp_unit)}
+{}$grandstream_temp_unit}
+{else}
auto
+{/if}