diff options
Diffstat (limited to 'templates/app/openweathermap_http')
-rw-r--r-- | templates/app/openweathermap_http/README.md | 4 | ||||
-rw-r--r-- | templates/app/openweathermap_http/template_app_openweathermap_http.yaml | 21 |
2 files changed, 4 insertions, 21 deletions
diff --git a/templates/app/openweathermap_http/README.md b/templates/app/openweathermap_http/README.md index f8f35125691..eb24610f43e 100644 --- a/templates/app/openweathermap_http/README.md +++ b/templates/app/openweathermap_http/README.md @@ -22,7 +22,7 @@ It works without any external scripts and uses the Script item. - by location name (for example: Riga) - by location ID. Link to the list of city ID: http://bulk.openweathermap.org/sample/city.list.json.gz - by zip/post code with a country code (for example: 94040,us) - A few locations can be added to the macro at the same time by `|` delimiter. + A few locations can be added to the macro at the same time by `|` delimiter. For example: `43.81821,7.76115|Riga|2643743|94040,us`. Please note that API requests by city name, zip-codes and city id will be deprecated soon. @@ -39,7 +39,7 @@ No specific Zabbix configuration is required. |Name|Description|Default| |----|-----------|-------| |{$LANG} |<p>List of available languages https://openweathermap.org/current#multi.</p> |`en` | -|{$LOCATION} |<p>Locations can be set by few ways:</p><p>1. by geo coordinates (for example: 56.95,24.0833)</p><p>2. by location name (for example: Riga)</p><p>3. by location ID. Link to the list of city ID: http://bulk.openweathermap.org/sample/city.list.json.gz</p><p>4. by zip/post code with a country code (for example: 94040,us)</p><p>A few locations can be added to the macro at the same time by <code>\|</code> delimiter. </p><p>For example: <code>43.81821,7.76115\|Riga\|2643743\|94040,us</code>.</p><p>Please note that API requests by city name, zip-codes and city id will be deprecated soon.</p> |`Riga` | +|{$LOCATION} |<p>Locations can be set by few ways:</p><p>1. by geo coordinates (for example: 56.95,24.0833)</p><p>2. by location name (for example: Riga)</p><p>3. by location ID. Link to the list of city ID: http://bulk.openweathermap.org/sample/city.list.json.gz</p><p>4. by zip/post code with a country code (for example: 94040,us)</p><p>A few locations can be added to the macro at the same time by `|` delimiter. </p><p>For example: `43.81821,7.76115|Riga|2643743|94040,us`.</p><p>Please note that API requests by city name, zip-codes and city id will be deprecated soon.</p> |`Riga` | |{$OPENWEATHERMAP.API.ENDPOINT} |<p>OpenWeatherMap API endpoint.</p> |`api.openweathermap.org/data/2.5/weather?` | |{$OPENWEATHERMAP.API.TOKEN} |<p>Specify openweathermap API key.</p> |`` | |{$OPENWEATHERMAP.DATA.TIMEOUT} |<p>Response timeout for OpenWeatherMap API.</p> |`3s` | diff --git a/templates/app/openweathermap_http/template_app_openweathermap_http.yaml b/templates/app/openweathermap_http/template_app_openweathermap_http.yaml index 0a3ea61de41..943fd82de9b 100644 --- a/templates/app/openweathermap_http/template_app_openweathermap_http.yaml +++ b/templates/app/openweathermap_http/template_app_openweathermap_http.yaml @@ -1,7 +1,7 @@ zabbix_export: version: '6.2' - date: '2022-04-13T22:09:00Z' - groups: + date: '2022-06-07T19:36:34Z' + template_groups: - uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6 name: Templates/Applications @@ -738,70 +738,53 @@ zabbix_export: name: 'Wind direction' mappings: - - type: IN_RANGE value: '0 - 11.24' newvalue: 'N' - - type: IN_RANGE value: '11.25 - 33.74' newvalue: NNE - - type: IN_RANGE value: '33.75 - 56.24' newvalue: NE - - type: IN_RANGE value: '56.25 - 78.74' newvalue: ENE - - type: IN_RANGE value: '78.75 - 101.24' newvalue: E - - type: IN_RANGE value: '101.25 - 123.74' newvalue: ESE - - type: IN_RANGE value: '123.75 - 146.24' newvalue: SE - - type: IN_RANGE value: '146.25 - 168.74' newvalue: SSE - - type: IN_RANGE value: '168.75 - 191.24' newvalue: S - - type: IN_RANGE value: '191.25 - 213.74' newvalue: SSW - - type: IN_RANGE value: '213.75 - 236.24' newvalue: SW - - type: IN_RANGE value: '236.25 - 258.74' newvalue: WSW - - type: IN_RANGE value: '258.75 - 281.24' newvalue: W - - type: IN_RANGE value: '281.25 - 303.74' newvalue: WNW - - type: IN_RANGE value: '303.75 - 326.24' newvalue: NW - - type: IN_RANGE value: '326.25 - 348.74' newvalue: NNW - - type: IN_RANGE value: '348.75 - 379.99' newvalue: 'N' |