Dashbling weather widget
This is a widget for Dashbling, displaying local Weather information.
Weather information is provided by OpenWeatherMap. This widget requires a (free) OpenWeatherMap API key. Register at https://openweathermap.org/appid.
Usage
Add to your project:
yarn add dashbling-widget-weather
Add a job to fetch weather data:
// dashbling.config.jsmoduleexports = jobs: schedule: "*/30 * * * *" fn: "weather-amsterdam" // event id "YOUR OPENWEATHERMAP APPID HERE" "2759794" // city id
And add the widget to your dashboard:
;const WeatherInAmsterdam = WeatherWidget; return <Dashboard> <WeatherInAmsterdam title="Amsterdam" /> </Dashboard> ;;