Skip to content

Setup Instructions (Gather API keys)

Anthony Hayward edited this page Apr 8, 2024 · 5 revisions

Setup Instructions πŸ› οΈ

Follow these steps to set up the Miles application:

1. OpenAI API Key πŸ”‘

Welcome to Miles! You'll have to go through some setup before you can use Miles.

Please enter your OpenAI API key in the app. You can obtain it here:

  • 1. Log in at the top right
  • 2. Click API
  • 3. Click the lock icon from the left sidebar (API Keys)
  • 4. Click 'Create new secret key'
  • 5. Copy and paste it in the app

2. Spotify Client ID 🎡

Enter your Spotify Client ID in the app:

  • 1. Create or access your Spotify account at the Spotify Developer Dashboard.
  • 2. Create a new app with:
  • 3. Your Client ID is located on your app's dashboard

3. Spotify Client Secret πŸ”’

Enter your Spotify Client Secret in the app:

  • 1. In the Spotify Developer Dashboard, select your 'Miles' app.
  • 2. Click 'Show Client Secret' on your app's dashboard to retrieve your Client Secret

4. Default Location 🌍

Please enter your Default Location in the app:

  • (The default city you want Miles to get the weather for, must be capitalized)

5. Unit Preference 🌑️

Please choose your preferred unit in the app:

  • Type either Imperial or Metric.

6. Home Assistant (Optional)

  • Enter your Home Assistant URL, the same one you use to open Home Assistant in the browser, it might look like this http://homeassistant.local:1234
  • Then enter your long lived token, this can be found in Home Assistant by clicking your name at the bottom left, and then clicking security, then scrolling down until you see create long lived token.