production init

This commit is contained in:
Athena Funderburg
2026-05-26 16:41:23 +00:00
commit 21f38ee3e1
680 changed files with 47071 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
import struct
from typing import Optional
from util.misc import Logger
from ..proto.tlv import TLV, marshal_tlvs
def system_message(alert_url: Optional[str], alert_txt: str) -> bytes:
return marshal_tlvs([
TLV(0x0003, struct.pack('>H', 0x00D9)), # message window width
TLV(0x0004, struct.pack('>H', 0x0096)), # message window length
TLV(0x0005, struct.pack('>H', 0x001E)), # autohide delay
TLV(0x0002, alert_url), # alert URL
TLV(0x0001, alert_txt), # alert text
])