01.10.2015, 08:54
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
--> Das würde Verbrauch 1 und 2 aktualisiern.
Zitat Harry: "Und umsetzen"
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}
Zitat Harry: "Und umsetzen"