1.0.2 • Published 4 years ago

node-gismeteo-parser v1.0.2

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

node-gismeteo-parser

Simple node.js library for gismeteo weather

Installation

npm i node-gismeteo-parser

Usage

const GismeteoParser = require('node-gismeteo-parser');
const gismeteo = new GismeteoParser();

gismeteo.getWeather('/weather-ufa-4588/').then(r => {
  // returns an object with information about the weather
});
PropertyDescription
tempTemperature (°C)
feels_likePerceived temperature (°C)
sunriseSunrise time
sunsetSunset time
conditionWeather condition
wind.speedWind speed (m/s)
wind.directionWind direction
pressurePressure (mm Hg)
humidityHumidity
gm_activityGeomagnetic activity (points)
temp_waterWater temperature (°C)

City search

gismeteo.searchCity('Ufa').then(r => {
  // returns an object with information about the city
  let url = r.items[0].url; 
  gismeteo.getWeather(url).then(r => {
    // returns an object with information about the weather
  });
});
1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago