Skip to content

Adding a weather provider

Piflyer edited this page Feb 21, 2020 · 3 revisions

SmartDisplayPi is designed to be open with many options for your weather provider. If you have none in mind, we recommend using our default option.

Step 1

Head over to Glitch and create an account. Once you have created an account, create a new project, and click on "Clone from Git repo".

Step 2

For your Git Repo URL, type in https://github.com/googlecodelabs/your-first-pwapp.git and you will also need to create your Dark Sky API.

Step 3

Once you have your Dark Sky API key, go back to your Glitch project and open the .env file. Put your Dark Sky API in the file.

Step 4

Go into the "PUBLIC" folder and open index/html. Once in there, scroll down until you see a list of cities. Change any of them to your desired city with accurate longitude and latitude. Volia! You are done.

To embed it, simply copy the Glitch URL and plug in the right spot in index2.html.

Clone this wiki locally