added User-Agent to get

bp-vhf
alanbjohnston 4 years ago committed by GitHub
parent adac85ffc2
commit b2ef3e8cf6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -10,7 +10,7 @@ while (True):
# telem_string = input()
telem_json = requests.get('https://api.aprs.fi/api/get?name=W3YP-11&what=loc&apikey=APIKEY&format=json').json()
telem_json = requests.get('https://api.aprs.fi/api/get?name=W3YP-11&what=loc&apikey=156390.XlXpKVPvnWcbNdn4&format=json', headers = {"User-Agent": "cubesatsim-aprs-tago-upload (+http://cubesatsim.org)"}).json()
lat = float(telem_json['entries'][0]['lat'])
lon = float(telem_json['entries'][0]['lng'])

Loading…
Cancel
Save

Powered by TurnKey Linux.