orontee / taranis

Local weather data on your PocketBook e-book reader.
GNU General Public License v3.0
20 stars 0 forks source link

Display alerts #24

Closed orontee closed 10 months ago

orontee commented 10 months ago

An icon in the current weather box. Clicking on this icon pop up a dialog with current alerts.

Not clear whether OpenWeather alerts are translated...

Here is an extract of the content of a call to Onecall API with alerts:

{
  "alerts": [
    {
      "sender_name": "Italian Air Force National Meteorological Service",
      "event": "Yellow Thunderstorm Warning",
      "start": 1691218800,
      "end": 1691445540,
      "description": "Moderate intensity weather phenomena expected - coasts\n (DISCLAIMER: \"Information provided on METEOALARM for Italy regard only the intensity and recurrence of the phenomena, further details can be found at www.meteoam.it. METEOALARM information do not provide the assessment of impact on the territory and they do not represent the Official Alerts messages that are issued by the National Civil Protection Service https://www.protezionecivile.gov.it\")",
      "tags": [
        "Thunderstorm"
      ]
    },
    {
      "sender_name": "Italian Air Force National Meteorological Service",
      "event": "Yellow Wind Warning",
      "start": 1691301600,
      "end": 1691409540,
      "description": "Moderate intensity weather phenomena expected\n (DISCLAIMER: \"Information provided on METEOALARM for Italy regard only the intensity and recurrence of the phenomena, further details can be found at www.meteoam.it. METEOALARM information do not provide the assessment of impact on the territory and they do not represent the Official Alerts messages that are issued by the National Civil Protection Service https://www.protezionecivile.gov.it\")",
      "tags": [
        "Wind"
      ]
    }
  ]
}
orontee commented 10 months ago

alerts