Publish für MQTT integriert

This commit is contained in:
2025-09-11 15:31:50 +02:00
parent e738438a94
commit 4ba75b5686
6 changed files with 127 additions and 20 deletions

View File

@@ -37,6 +37,7 @@ from .mob import MOB
from .rollpitch import RollPitch
from .skyview import SkyView
from .solar import Solar
from .tracker import Tracker
from .rudder import Rudder
from .voltage import Voltage
from .windrose import WindRose

View File

@@ -1,3 +1,8 @@
"""
Tracker with MQTT client
- currentry only Ragatta hero supported
"""
import cairo
from .page import Page
@@ -9,7 +14,14 @@ class Tracker(Page):
def draw(self, ctx):
# Name
ctx.select_font_face("Ubuntu", cairo.FontSlant.NORMAL, cairo.FontWeight.BOLD)
ctx.set_font_size(60)
ctx.set_font_size(32)
ctx.move_to(20, 100)
ctx.show_text("Tracker")
ctx.set_font_size(16)
ctx.move_to(20, 140)
ctx.show_text("active: ")
if tracker_active:
ctx.show_text("yes")
else:
ctx.show_text("no")