You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the city you want for locations is not inserted in db.sql, you can try to find the corresponding cityid in cities.json and run this SQL statement: INSERT INTO locations (cityid, cityname, state, country) VALUES (?, ?, ?, ?).
If you cannot find your city in cities.json, check out this from OpenWeather API.
Modify code/js/weather.js.
Register an account and generate an api key at OpenWeather API.
Paste your own api key inside the quotation marks.
If the city you want is not inserted in step 1, and you don't want to insert this to the database, you can find the cityid of the city you want and replace cityid on line 5 in weather.js with the id you find.