From f9797ab5ab5b6ff0a67cc028cf5ee963ff9d851f Mon Sep 17 00:00:00 2001 From: krakenrf <78108016+krakenrf@users.noreply.github.com> Date: Tue, 18 Oct 2022 22:28:58 +1300 Subject: Update sondehub_krakenmap.py --- misc_scripts/sondehub_krakenmap.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/misc_scripts/sondehub_krakenmap.py b/misc_scripts/sondehub_krakenmap.py index 2be8b63..893a721 100644 --- a/misc_scripts/sondehub_krakenmap.py +++ b/misc_scripts/sondehub_krakenmap.py @@ -7,8 +7,12 @@ import sondehub import requests +# The unique 8-digit Sonde identifier. Shown in the sondehub.org UI. +SONDE_ID = "U1140595" + API_SERVER = 'https://map.krakenrf.com:443' +# Your Kraken Pro Cloud username and password login = {'username': 'username', 'password': 'password'} x = requests.post(API_SERVER + '/login', json = login) @@ -25,7 +29,7 @@ def on_message(message): #print(message['alt']) # Set sondes to whatever active sonde you want -test = sondehub.Stream(on_message=on_message, sondes=["U1140595"]) +test = sondehub.Stream(on_message=on_message, sondes=[SONDE_ID]) while 1: pass -- cgit v1.2.3