MegaRoks / weather-server

The server works with weather services https://openweathermap.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build Status Maintainability Test Coverage Coverage Status FOSSA Status

weather-server

The server works with weather services https://openweathermap.org

links

  1. Link to the postman https://www.getpostman.com/collections/100498d3405c3de5de8c;

  2. Link for current weather https://weather-server-master.herokuapp.com/api/weather/get-current-weather;

The server can also accept the following parameters

units the default is metric; Temperature is available in Fahrenheit, Celsius and Kelvin units.

  • For temperature in Fahrenheit use units = imperial;
  • For temperature in Celsius use units = metric;
  • Temperature in Kelvin is used by default, no need to use units parameter in API call;

lat, lon coordinates of the location of your interest;

city city name;

lang the default is English; You can use lang parameter to get the output in your language. We support the following languages that you can use with the corresponded lang values:

language
Arabic ar
Bulgarian bg
Catalan ca
Czech cz
German de
Greek el
English en
Persian (Farsi) fa
Finnish fi
French fr
Galician gl
Croatian hr
Hungarian hu
Italian it
Japanese ja
Korean kr
Latvian la
Lithuanian lt
Macedonian mk
Dutch fr
Polish pl
Portuguese pt
Romanian ro
Russian ru
Swedish se
Slovak sk
Slovenian sl
Spanish sl
Turkish tr
Ukrainian ua
Vietnamese vi
Chinese Simplified zh_cn
Chinese Traditional zh_tw

NOTE: Translation is only applied for the "description" field.

License

FOSSA Status

About

The server works with weather services https://openweathermap.org

License:MIT License


Languages

Language:JavaScript 100.0%