-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
8 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,15 @@ | ||
# rename this file as api.py | ||
# 1. rename this file as api.py | ||
|
||
# fill in the client ID and secret from the met office website | ||
# 2. add your API key from the met office website | ||
# https://www.metoffice.gov.uk/services/data/met-office-weather-datahub | ||
# you'll need to sign in and subscribe to the 'hourly' weather data (free) | ||
key= "eyJ4NXQiO....etc....." | ||
|
||
# also fill in defauly latitude, longitude | ||
# and add your name for Nominatim lookup of place names | ||
|
||
|
||
clientId= "replaceWithYourClientIdString" | ||
clientSecret= "replaceWithYourClientSecret" | ||
# 3. add your name for Nominatim lookup of place names | ||
# https://nominatim.org/ | ||
user_agent= "Your Name" | ||
|
||
# 4. fill in default latitude, longitude | ||
# Your default latitude, longitude - you can get this from Google Maps, it will appear after the "@": | ||
lat,lon= 40.3234736,-72.3614222 | ||
|
||
user_agent= "Your Name" #for geopy lookup via Nominatim | ||
lat, lon= 40.3234736,-72.3614222 | ||
|