From 0fa7255a75054aba1595fa3accac09a57bb918fc Mon Sep 17 00:00:00 2001 From: Zachary Kitchen <30428121+digitalcrisis@users.noreply.github.com> Date: Wed, 23 May 2018 18:00:15 -0500 Subject: [PATCH] Updated for Weather App on Grandstream Phones (#3067) * Grandstream Weather App Variable added Allows users to select metric/imperial for weather app and define city for the weather app on Grandstream * Update {$mac}.xml * Update {$mac}.xml * Update {$mac}.xml * Update {$mac}.xml --- .../provision/grandstream/gxp2130/{$mac}.xml | 32 ++++++++++++------- .../provision/grandstream/gxp2135/{$mac}.xml | 29 +++++++++++------ .../provision/grandstream/gxp2140/{$mac}.xml | 29 +++++++++++------ .../provision/grandstream/gxp2160/{$mac}.xml | 29 +++++++++++------ .../provision/grandstream/gxp2170/{$mac}.xml | 25 ++++++++++----- 5 files changed, 95 insertions(+), 49 deletions(-) diff --git a/resources/templates/provision/grandstream/gxp2130/{$mac}.xml b/resources/templates/provision/grandstream/gxp2130/{$mac}.xml index 2aff9e620e..6a84381ab6 100644 --- a/resources/templates/provision/grandstream/gxp2130/{$mac}.xml +++ b/resources/templates/provision/grandstream/gxp2130/{$mac}.xml @@ -9,7 +9,7 @@ - + @@ -716,7 +716,7 @@ -0 +1 @@ -1586,7 +1586,7 @@ {$display_name_3} - + *97 @@ -4573,7 +4573,7 @@ - + @@ -5493,7 +5493,7 @@ - + @@ -5503,12 +5503,12 @@ 10 - + 0 - + @@ -5970,11 +5970,17 @@ -{$grandstream_city_code_auto} +{if isset($grandstream_city_code)} +0 +{else} +1 +{/if} - - + + + {$grandstream_city_code} + @@ -5983,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 dd15082533..074a6103fb 100644 --- a/resources/templates/provision/grandstream/gxp2135/{$mac}.xml +++ b/resources/templates/provision/grandstream/gxp2135/{$mac}.xml @@ -716,7 +716,7 @@ -0 +1 @@ -1586,7 +1586,7 @@ {$display_name_3} - + *97 @@ -4573,7 +4573,7 @@ - + @@ -5493,7 +5493,7 @@ - + @@ -5503,12 +5503,12 @@ 10 - + 0 - + @@ -5970,11 +5970,16 @@ +{if isset($grandstream_city_code)} +0 +{else} 1 +{/if} - - - + + + +{$grandstream_city_code} @@ -5984,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 dd15082533..074a6103fb 100644 --- a/resources/templates/provision/grandstream/gxp2140/{$mac}.xml +++ b/resources/templates/provision/grandstream/gxp2140/{$mac}.xml @@ -716,7 +716,7 @@ -0 +1 @@ -1586,7 +1586,7 @@ {$display_name_3} - + *97 @@ -4573,7 +4573,7 @@ - + @@ -5493,7 +5493,7 @@ - + @@ -5503,12 +5503,12 @@ 10 - + 0 - + @@ -5970,11 +5970,16 @@ +{if isset($grandstream_city_code)} +0 +{else} 1 +{/if} - - - + + + +{$grandstream_city_code} @@ -5984,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 74bc3e0cd0..47657146e0 100644 --- a/resources/templates/provision/grandstream/gxp2160/{$mac}.xml +++ b/resources/templates/provision/grandstream/gxp2160/{$mac}.xml @@ -716,7 +716,7 @@ -0 +1 @@ -1586,7 +1586,7 @@ {$display_name_3} - + *97 @@ -4573,7 +4573,7 @@ - + @@ -5493,7 +5493,7 @@ - + @@ -5503,12 +5503,12 @@ 10 - + 0 - + @@ -5970,10 +5970,15 @@ -{$grandstream_city_code_auto} +{if isset($grandstream_city_code)} +0 +{else} +1 +{/if} - - + + + {$grandstream_city_code} @@ -5984,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 7e1efe30a5..8bd7f5997a 100644 --- a/resources/templates/provision/grandstream/gxp2170/{$mac}.xml +++ b/resources/templates/provision/grandstream/gxp2170/{$mac}.xml @@ -670,33 +670,33 @@ -ring1 + -1 +0 -ring2 + -2 +0 -ring + -3 +0 @@ -731,7 +731,7 @@ -0 +1 @@ -7243,11 +7243,16 @@ +{if isset($grandstream_city_code)} +0 +{else} 1 +{/if} + - +{$grandstream_city_code} @@ -7257,7 +7262,11 @@ +{if isset ($grandstream_temp_unit)} +{}$grandstream_temp_unit} +{else} auto +{/if}