BMWRaspControl - Forum

Normale Version: Konfigurationsseite für HI im Skin
Du siehst gerade eine vereinfachte Darstellung unserer Inhalte. Normale Ansicht mit richtiger Formatierung.
Jetzt wo wir in zwei Richtungen kommunizieren können, sollten wir eine Konfigurationsseite anlegen.

z.B.
Lightshow (active/inactiv) mit Checkbox
CollapseMirrors (active/inactive) --> (onCarClose/onCarOpen)
ExpandMirrors(active/inactive) --> (onCarClose/onCarOpen)
CarModel (e48/e39/etc)
CdChangerEmulatorActive (active/inactive)

Dann sollte das ganze Konfigurationskaos ein Ende haben.

EinRequest könnte so aussehen

Code:
http://127.0.0.1:44000/jsonrpc?request={"jsonrpc": "2.0", "method": "Config.Set", "params": { "Property": LightShow, "active": true}, "id": 0}
http://127.0.0.1:44000/jsonrpc?request={"jsonrpc": "2.0", "method": "Config.Set", "params": { "Property": CarModel, "value": e39}, "id": 0}
--> Das würde Verbrauch 1 und 2 aktualisiern.

Zitat Harry: "Und umsetzen" Tongue