1.0.20 • Published 7 years ago
yr-lib v1.0.20
Yr.no library
A simple library to call the Yr.no XML based api and return response in JSON
Installation
$ cd root project
$ npm install yr-lib
Usage
ES5
var LocationForecast = require('yr-lib').LocationForecast;
LocationForecast(lat, lon,function(data) {
//do something with data
});
ES6
import { LocationForecast } from 'yr-lib';
LocationForecast(lat, lon, data => {
//do something with data
});
Get weather in current day and time
ES5
var CurrentLocationForecast = require('yr-lib').CurrentLocationForecast;
CurrentLocationForecast(lat, lon, local_time, time_diff_hour, function(data) {
//do something with data
});
ES6
import { CurrentLocationForecast } from 'yr-lib';
CurrentLocationForecast(lat, lon, local_time, time_diff_hour, data => {
//do something with data
});
1.0.20
7 years ago
1.0.19
7 years ago
1.0.18
7 years ago
1.0.17
7 years ago
1.0.16
8 years ago
1.0.15
8 years ago
1.0.14
8 years ago
1.0.13
8 years ago
1.0.12
8 years ago
1.0.11
8 years ago
1.0.10
8 years ago
1.0.9
8 years ago
1.0.7
8 years ago
1.0.6
8 years ago
1.0.5
8 years ago
1.0.4
8 years ago
1.0.3
8 years ago
1.0.2
8 years ago
1.0.1
8 years ago
1.0.0
8 years ago