Tracker-Seite und -daten vorbereitet

This commit is contained in:
2025-09-12 08:13:39 +02:00
parent 4ba75b5686
commit fd673d5e55
3 changed files with 36 additions and 0 deletions

View File

@@ -1,6 +1,9 @@
"""
Tracker with MQTT client
- currentry only Ragatta hero supported
TODO get data from mqtt thread
"""
import cairo
@@ -10,6 +13,12 @@ class Tracker(Page):
def __init__(self, pageno, cfg, boatdata):
super().__init__(pageno, cfg, boatdata)
self.buttonlabel[1] = 'MODE'
def handle_key(self, buttonid):
global tracker_active;
if buttonid == 1:
tracker_active = not tracker_active
def draw(self, ctx):
# Name