Update README.md

This commit is contained in:
Tressley Cahill 2022-11-15 09:48:04 -05:00 committed by GitHub
parent 3f2d695a46
commit dcad92fbb2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,13 +9,13 @@
⚠️ **You will need to generate your own OpenWeather API key!**
1. [Register for an OpenWeather account](https://home.openweathermap.org/users/sign_up) (OpenWeather will generate a default API key)
2. Sign in and navigate to Username > API keys and copy the key
3. Paste the key into [`line 10`](https://github.com/Tressley/_traichu/blob/120e06827765b09045d417127c19c91c5a121dc5/js/main.js#L10) of `main.js`
3. Paste the key into [`line 10`](https://github.com/Tressley/_traichu/blob/3f2d695a4677f2a99c2c112fd11d01d71d6a05e9/js/main.js#L10) of `main.js`
**How to update your city**
1. Find your city using [OpenWeather's search](https://openweathermap.org/find)
2. Copy the city ID from the end of the URL
> `https://openweathermap.org/city/1850147` 🠆 `1850147`
3. Paste the city ID into [`line 26`](https://github.com/Tressley/_traichu/blob/120e06827765b09045d417127c19c91c5a121dc5/js/main.js#L26) of `main.js`
3. Paste the city ID into [`line 26`](https://github.com/Tressley/_traichu/blob/3f2d695a4677f2a99c2c112fd11d01d71d6a05e9/js/main.js#L26) of `main.js`
![_traichu's dark mode](https://i.imgur.com/ncQcCGy.jpg)