summaryrefslogtreecommitdiffstats
path: root/misc_scripts
diff options
context:
space:
mode:
authorkrakenrf <78108016+krakenrf@users.noreply.github.com>2022-10-18 11:28:58 +0200
committerGitHub <noreply@github.com>2022-10-18 11:28:58 +0200
commitf9797ab5ab5b6ff0a67cc028cf5ee963ff9d851f (patch)
tree4599b88e1c66ec85aa74ea7328e22bf805e59ddd /misc_scripts
parentUpdate sondehub_krakenmap.py (diff)
downloadkrakensdr_docs-f9797ab5ab5b6ff0a67cc028cf5ee963ff9d851f.tar
krakensdr_docs-f9797ab5ab5b6ff0a67cc028cf5ee963ff9d851f.tar.gz
krakensdr_docs-f9797ab5ab5b6ff0a67cc028cf5ee963ff9d851f.tar.bz2
krakensdr_docs-f9797ab5ab5b6ff0a67cc028cf5ee963ff9d851f.tar.lz
krakensdr_docs-f9797ab5ab5b6ff0a67cc028cf5ee963ff9d851f.tar.xz
krakensdr_docs-f9797ab5ab5b6ff0a67cc028cf5ee963ff9d851f.tar.zst
krakensdr_docs-f9797ab5ab5b6ff0a67cc028cf5ee963ff9d851f.zip
Diffstat (limited to 'misc_scripts')
-rw-r--r--misc_scripts/sondehub_krakenmap.py6
1 files changed, 5 insertions, 1 deletions
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