1.0.8 • Published 2 years ago
workadventure-weather-night-plugin v1.0.8
Workadventure - Weather and Night plugin
Installation
npm i workadventure-weather-night-plugin
To load plugin, add this to main.ts
:
import WeatherAndNightPlugin from 'workadventure-weather-night-plugin';
(new WeatherAndNightPlugin)
.setOpenWeatherMapAppIdentifier('x123examplekey123x') // Your OpenWeatherMap API key
.setOpenWeatherMapDefaultCity('Paris') // Your default city name
.setEnabledUserWeather(false) // Use user location if available (default to true)
.setEnabledAnimatedTiles(true) // Enable animations (default to false)
.init(WA);
OpenWeatherMap API
You can generate an API key (an app identifier) from https://openweathermap.org/api