Skip to content

Commit

Permalink
updated example API
Browse files Browse the repository at this point in the history
  • Loading branch information
coinish committed Apr 23, 2024
1 parent d966a09 commit 4c15eba
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions example_api.py
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

0 comments on commit 4c15eba

Please sign in to comment.