Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/boring-dragon/MoosunMv
Simple Interface to interact with Maldives Meteorology
https://github.com/boring-dragon/MoosunMv
api guzzle guzzlehttp maldives meteorology meteorology-station php php-library predicted-data sea stations weather wind
Last synced: 26 days ago
JSON representation
Simple Interface to interact with Maldives Meteorology
- Host: GitHub
- URL: https://github.com/boring-dragon/MoosunMv
- Owner: boring-dragon
- Created: 2019-08-18T22:50:39.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-11-05T08:48:30.000Z (about 4 years ago)
- Last Synced: 2024-11-14T20:49:23.717Z (28 days ago)
- Topics: api, guzzle, guzzlehttp, maldives, meteorology, meteorology-station, php, php-library, predicted-data, sea, stations, weather, wind
- Language: PHP
- Homepage: https://jinas123.github.io/MoosunMv/
- Size: 61.5 KB
- Stars: 6
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-maldives - MoosunMv - Simple Interface to interact with Maldives Meteorology. (Table of Contents / PHP Projects)
README
# :cyclone: MoosunMv
[![Latest Stable Version](https://poser.pugx.org/jinas/moosun/v/stable)](https://packagist.org/packages/jinas/moosun)
[![License](https://poser.pugx.org/jinas/moosun/license)](https://packagist.org/packages/jinas/moosun)
[![StyleCI](https://github.styleci.io/repos/203064341/shield?branch=master)](https://github.styleci.io/repos/203064341?branch=master)## :battery: Installation
```shell
composer require jinas/moosun
```## :bulb: 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
```cmd
Guzzle
Goutte
```## Basic Usage Weather Data
> You can pass any station name available below to get the data
```php
$rp = new MoosunMv('Gan');
echo $rp->stationname;
echo $rp->temperature;
```## Basic Usage Satellite Image scraper
```php
$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