From 768c5026bbcb6e29d3b49e615d2835639cbd2d91 Mon Sep 17 00:00:00 2001 From: krakenrf <78108016+krakenrf@users.noreply.github.com> Date: Mon, 7 Aug 2023 22:46:30 +1200 Subject: Update gpsd_tracker_krakenmap.py --- misc_scripts/gpsd_tracker_krakenmap.py | 4 ++-- 1 file 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): -- cgit v1.2.3