composer require jinas/moosun
Moosunmv library is a wrapper around the API of maldives meteorology. Library helps you to interact with the meteorology stations and get live weather data. The available station names are given below. The library also have a imgscraper class which can scrap the latest satellite image from the maldives meteorology website.
Guzzle
Goutte
You can pass any station name available below to get the data
$rp = new MoosunMv('Gan');
echo $rp->stationname;
echo $rp->temperature;
$image = new ImgScraper;
echo $image->satellite_image;
- Male
- Hanimadhoo
- Kahdhoo
- Kaadehdhoo
- Gan
- stationname
- hastide
- sunrise
- sunset
- moonrise
- moonset
- humidity
- temperature
- description
- dayicon
- nighticon
- rainamount
- wind
- sunshine-
- Predicted data of tommorow-
- first_date
- first_condition
- first_sea
- first_wind
- first_icon
Predicted data of day after tommorow
- second_date
- second_condition
- second_sea
- second_wind
- second_icon
Predicted data of 3rd day
- third_date
- third_condition
- third_sea
- third_wind
- third_icon