Skip to content

Set up OpenWeatherMap API

Bennett Wendorf edited this page Jan 5, 2022 · 2 revisions

If you already have an OpenWeatherMap account, generate an API key and add it in .secrets.toml under the setting for api_key in the Weather_Widget category.

    [Weather_Widget]
        api_key = "<Your Key Here>"

If you don't have an account yet:

  1. Navigate to https://home.openweathermap.org/users/sign_up to set up an account.
  2. If it doesn't take you there automatically, go to the API Keys tab of your profile page
  3. On the right hand side, enter a name for the new api key and click generate
  4. Copy the new API key and add it to the .secrets.toml file as described above