feat(bms): discover JK batteries and integrate read-only telemetry scenes

This commit is contained in:
DCCONSTRUCTIONS
2026-11-04 00:43:00 +03:00
parent 2f0a066dde
commit f3d0c25ccd
46 changed files with 2887 additions and 10 deletions
+17
View File
@@ -0,0 +1,17 @@
"""Versioned BMS runtime and access policy shipped by the Node installer."""
from pathlib import Path
def payload():
root = Path(__file__).resolve().parents[1]
result = [
("usr/lib/mission-core-jk-bms/runtime/" + p.name, p.read_bytes(), 0o644)
for p in sorted((root / "runtime").glob("*.py"))
]
for name, target in [
("mission-core-jk-bms.service", "usr/lib/systemd/system/"),
("mission-core-jk-bms.conf", "usr/share/dbus-1/system.d/"),
]:
result.append((target + name, (root / "packaging" / name).read_bytes(), 0o644))
return result