Skip to content
Krzysztof Piasecki edited this page Feb 9, 2016 · 25 revisions

BurzeDzisNet

Notification on weather hazards such as: lightnings, tornadoes, strong winds, heavy precipitation and low and high air temperatures.

The website burze.dzis.net is created for users who seek for a solution, which can enable them to receive notification on weather hazards such as: lightnings, tornadoes, strong winds, heavy precipitation and low and high air temperatures. The website also offers location storm function.

###Important Access to the API, only for people who have an account and after notification of the desire to build the application. In order to give the individual free access key.

Packagist.org | Travis-ci.org | Scrutinizer-ci.com

Use case

    namespace Component\Remote\BurzeDzisNet
    {


        $burzeDzisNet = new BurzeDzisNet(
            new Endpoint(API_KEY)
        );


        $point = $burzeDzisNet->locate('Wien');
        $storm = $burzeDzisNet->getStorm($point, 100);
        $alerts = $burzeDzisNet->getWeatherAlert($point);


        $frost = $alerts->getAlert('frost');
        $heat = $alerts->getAlert('heat');
        $wind = $alerts->getAlert('wind');
        $storm = $alerts->getAlert('storm');
        $tornado = $alerts->getAlert('tornado');
        $precipitation = $alerts->getAlert('precipitation');


    }

Remote client

Represents the remote API calls based on the endpoint

BurzeDzisNetInterface

Local entities

Point

Represents the coordinates for the specified locality. According to the list of village on the site.

PointInterface

Storm

Represents the result of checking if a given point with a specified radius of monitoring registered lightnings.

StormInterface

WheaterAlert

Represents the result of checking if a given point, issued weather warnings. Only the Polish area.

[WheaterAlertInterface] (https://github.com/krzysiekpiasecki/BurzeDzisNet/blob/master/src/Component/Remote/BurzeDzisNet/WeatherAlertInterface.php)

Alert

Represents the single wheather alert

AlertInterface

Clone this wiki locally