From 4c15eba8b717355416c594df35dbbdb7b9f7e6d5 Mon Sep 17 00:00:00 2001 From: seaniedan Date: Tue, 23 Apr 2024 19:14:32 +0100 Subject: [PATCH] updated example API --- example_api.py | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/example_api.py b/example_api.py index 795de5e..51d6e45 100644 --- a/example_api.py +++ b/example_api.py @@ -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