项目作者: boring-dragon

项目描述 :
Simple Interface to interact with Maldives Meteorology
高级语言: PHP
项目地址: git://github.com/boring-dragon/MoosunMv.git
创建时间: 2019-08-18T22:50:39Z
项目社区:https://github.com/boring-dragon/MoosunMv

开源协议:

下载


:cyclone: MoosunMv

Latest Stable Version
License
StyleCI

:battery: Installation

  1. 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

  1. Guzzle
  2. Goutte

Basic Usage Weather Data

You can pass any station name available below to get the data

  1. $rp = new MoosunMv('Gan');
  2. echo $rp->stationname;
  3. echo $rp->temperature;

Basic Usage Satellite Image scraper

  1. $image = new ImgScraper;
  2. 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