homepage/docs/widgets/info/openweathermap.md
shamoon 19c25713c4 Run pre-commit hooks over existing codebase
Co-Authored-By: Ben Phelps <ben@phelps.io>
2023-10-18 09:49:33 -07:00

770 B

title, description
title description
OpenWeatherMap OpenWeatherMap Information Widget Configuration

The free tier "One Call API" is all thats required, you will need to subscribe and grab your API key.

- openweathermap:
    label: Kyiv #optional
    latitude: 50.449684
    longitude: 30.525026
    units: metric # or imperial
    provider: openweathermap
    apiKey: youropenweathermapkey # required only if not using provider, this reveals api key in requests
    cache: 5 # Time in minutes to cache API responses, to stay within limits

You can optionally not pass a latitude and longitude and the widget will use your current location (requires a secure context, eg. HTTPS).