jinas / moosun
Simple Interface to interact with maldives meteriology
Installs: 2 716
Dependents: 0
Suggesters: 0
Security: 0
Stars: 6
Watchers: 1
Forks: 1
Open Issues: 0
Requires
- fabpot/goutte: ^4.0@dev
- guzzlehttp/guzzle: ^6.0|^7.0.1
Requires (Dev)
- phpunit/phpunit: ^9.0@dev
This package is auto-updated.
Last update: 2024-11-05 17:43:20 UTC
README
🔋 Installation
composer require jinas/moosun
💡 How does this work
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.
Packages used
Guzzle Goutte
Basic Usage Weather Data
You can pass any station name available below to get the data
$rp = new MoosunMv('Gan'); echo $rp->stationname; echo $rp->temperature;
Basic Usage Satellite Image scraper
$image = new ImgScraper; echo $image->satellite_image;
Available Stations
- Male
- Hanimadhoo
- Kahdhoo
- Kaadehdhoo
- Gan
Available Objects
- 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