Ich habe ein Tablet mit dem Fully Kiosk Browser startbereit gemacht und kann z.B. über die REST API den Screen ein und aus schalten.
Code: Alles auswählen
http://192.168.178.60:2323/?cmd=screenOn&password=*********&type=json
Code: Alles auswählen
http://192.168.178.60:2323/?cmd=screenOn&password=*********&type=json
Code: Alles auswählen
UID: http:url:tablet
label: Tablet
thingTypeUID: http:url
configuration:
authMode: BASIC
ignoreSSLErrors: false
baseURL: http://192.168.178.60:2323/
delay: 0
stateMethod: GET
refresh: 30
commandMethod: GET
timeout: 3000
bufferSize: 2048
channels:
- id: screen
channelTypeUID: http:switch
label: Screen
description: ""
configuration:
onValue: screenOn
offValue: screenOff
commandExtension: ?cmd=%2$s&password=*********&type=json
Code: Alles auswählen
UID: http:url:tablet
label: Tablet
thingTypeUID: http:url
configuration:
authMode: BASIC
ignoreSSLErrors: false
baseURL: http://192.168.178.60:2323/
delay: 0
stateMethod: GET
refresh: 30
commandMethod: GET
timeout: 3000
bufferSize: 2048
channels:
- id: screen
channelTypeUID: http:switch
label: Screen
description: ""
configuration:
onValue: screenOn
offValue: screenOff
commandExtension: ?cmd=%2$s&password=*********&type=json
Code: Alles auswählen
UID: http:url:fullyKioskBrowser
label: Fully Kiosk Browser
thingTypeUID: http:url
configuration:
authMode: BASIC
ignoreSSLErrors: true
baseURL: http://192.168.178.60:2323/?type=json&password=PASSWORD&cmd=
refresh: 60
commandMethod: POST
timeout: 3000
bufferSize: 2048
channels:
- id: screenSwitch
channelTypeUID: http:switch
label: Screen Switch
description: ""
configuration:
mode: WRITEONLY
onValue: screenOn
offValue: screenOff
commandExtension: "%2$s"
Genau. Eigene Tippfehler sind so viel schwerer zu erkennen als die anderer...ErrPunktErr hat geschrieben: ↑7. Mai 2021 22:00 OK, ich musste bei deinem Code noch den Platzhalter korrigieren (%2$s statt %2S, wahrscheinlich nur ein Tippfehler) aber jetzt funktioniert es. Ich verstehe noch nicht ganz warum, aber das kann mir am Ende ja auch egal sein.![]()