2.0.2-beta • Published 3 years ago

ground-weather-beta v2.0.2-beta

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Ground-Weather

Ground Weather is a small library designed to make it easier to work with the weather. It is a kind of Wrapper for WeatherAPI.

How to use


You need to install the library using npm install ground-weather. After that, you will be presented with class Weather. The initialization of class is very simple:

// If you want to use CommonJS:
const WeatherAPI = require('ground-weather');
api = new WeatherAPI.Weather('YOUR_WEATHER_TOKEN');
// Or, this is for ES Module:
import { Weather } from 'ground-weather';
api = new Weather('YOUR_WEATHER_TOKEN');

Documentation


You can check out the full documentation here. This documentation describes most of the actions you need to do to get the library working, but it does not include getting the WeatherAPI key. The documentation on obtaining the key is here.

TODO:

  • AQI information methods;
  • Replace Promise<Any> with Promise<Type>;
  • Done rewriting methods to new system;

Special thanks


The development team would like to thank:

License


This library is licensed under the MIT license. You can read the license in detail here. Read the terms of use here.

© 2021, GroundPi Team.

2.0.2-beta

3 years ago

2.0.1-beta

3 years ago