Giter Site home page Giter Site logo

palsoft333 / meteoalarm.org Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 1.0 28 KB

Warning and hazard scraper from the RSS of the newest website of EUMETNET - meteoalarm.org

License: GNU General Public License v3.0

PHP 100.00%
meteoalarm meteoalarmeu meteoalarmeu-api meteoalarmorg php weather warnings

meteoalarm.org's Introduction

meteoalarm.org

Simple PHP warning and hazard scraper from the RSS of the newest website of EUMETNET - meteoalarm.org. Feel free to pull new requests and/or fork this git.

Usage

$alerts = file_get_contents('meteoalarmorg.php?country=IT');

echo $alerts; // json of all events for the specified country (in ISO 2 char format)

Example output

Array
(
    [0] => Array
        (
            [locality] => Calabria
            [valid_from] => 2021-10-26T00:00:00+00:00
            [valid_till] => 2021-10-26T23:59:00+00:00
            [alert_type] => 10
            [alert_type_desc] => Rain
            [alert_level] => 4
            [alert_color] => Red
            [alert_desc] => Extreme
            [description] => English(en-GB): southern part  (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 www.protezionecivile.it") TAKE precautionary ACTION, remain vigilant and act on advice given by authorities. Keep up to date with the latest weather forecast, and expect significant disruption to daily routines. Only travel if your journey is essential.
Italian(it-IT): parte meridionale  (DISCLAIMER: "Le informazioni fornite su METEOALARM per l'Italia riguardano esclusivamente l'intensita' e la ricorrenza dei fenomeni, maggiori dettagli sono disponibili su www.meteoam.it. Le informazioni METEOALARM non forniscono la valutazione di impatto sul territorio e non rappresentano i messaggi di Allerta Ufficiali che vengono emessi dal Servizio Nazionale di Protezione Civile www.protezionecivile.it") INTRAPRENDERE AZIONI CAUTELATIVE. Rimanere vigili e agire in accordo con i consigli (gli ordini) emessi da parte delle autorità. Tenersi aggiornati con le previsioni del tempo più recenti, ed aspettarsi significativi disagi per le normali attività quotidiane. Intraprendere un viaggio solo se indispensabile.
            [condition_icon] => https://feeds.meteoalarm.org/images/rss/wflag-l4-t10.png
            [pubDate] => Mon, 25 Oct 21 09:12:15 +0000
            [link] => https://meteoalarm.org?geocode=EMMA_ID:IT001
        )

    [1] => Array
        (
            [locality] => Calabria
            [valid_from] => 2021-10-26T00:00:00+00:00
            [valid_till] => 2021-10-26T23:59:00+00:00
            [alert_type] => 3
            [alert_type_desc] => Thunderstorm
            [alert_level] => 4
            [alert_color] => Red
            [alert_desc] => Extreme
            [description] => English(en-GB): southern part  (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 www.protezionecivile.it") TAKE precautionary ACTION, remain vigilant and act on advice given by authorities. Keep up to date with the latest weather forecast, and expect significant disruption to daily routines. Only travel if your journey is essential.
Italian(it-IT): parte meridionale  (DISCLAIMER: "Le informazioni fornite su METEOALARM per l'Italia riguardano esclusivamente l'intensita' e la ricorrenza dei fenomeni, maggiori dettagli sono disponibili su www.meteoam.it. Le informazioni METEOALARM non forniscono la valutazione di impatto sul territorio e non rappresentano i messaggi di Allerta Ufficiali che vengono emessi dal Servizio Nazionale di Protezione Civile www.protezionecivile.it") INTRAPRENDERE AZIONI CAUTELATIVE. Rimanere vigili e agire in accordo con i consigli (gli ordini) emessi da parte delle autorità. Tenersi aggiornati con le previsioni del tempo più recenti, ed aspettarsi significativi disagi per le normali attività quotidiane. Intraprendere un viaggio solo se indispensabile.
            [condition_icon] => https://feeds.meteoalarm.org/images/rss/wflag-l4-t3.png
            [pubDate] => Mon, 25 Oct 21 09:12:15 +0000
            [link] => https://meteoalarm.org?geocode=EMMA_ID:IT001
        )
)

meteoalarm.org's People

Contributors

palsoft333 avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

ivanpopov200

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.