diff options
-rw-r--r-- | misc_scripts/gpsd_tracker_krakenmap.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/misc_scripts/gpsd_tracker_krakenmap.py b/misc_scripts/gpsd_tracker_krakenmap.py index 8134e1d..52fb8ef 100644 --- a/misc_scripts/gpsd_tracker_krakenmap.py +++ b/misc_scripts/gpsd_tracker_krakenmap.py @@ -7,7 +7,7 @@ import requests gpsd.connect() time.sleep(2) -API_SERVER = 'https://map.krakenrf.com:443' +API_SERVER = 'https://map.krakenrf.com' login = {'email': 'email', 'password': 'password'} while(1): @@ -27,7 +27,7 @@ while(1): print("lat: " + str(lat)) print("lon: " + str(lon)) - beaconData = {'lat': lat, 'lon': lon, 'speed': 0, 'height': 0} + beaconData = {'id': 'mygps', 'lat': lat, 'lon': lon, 'speed': 0, 'height': 0, 'heading': 0} x = requests.post(API_SERVER + '/beacon', json = beaconData, headers = {'Authorization': token}) except (gpsd.NoFixError, UserWarning): |