IP-Settings

[:de]WOLi reagiert auf der in der App eingestellten IP-Adresse auf den hier zu wählenden Port.  Die Empfangenen Daten werden im ASCII Format erwartet und als Befehls-Text interpretiert.
Dieser setzen sich aus dem Trigger und dem gewählten Text für die Funktion zusammen, sowie ev. notwendiger Parameter.

Seit Version V0.36 können mehrere Befehle auf einmal übermittelt werden. Diese sind durch <lf> („\n“)  zu trennen.

Die Kommunikation mit WOLi kann über UDP und/oder TCP erfolgen.

Der hier eingestellte Port wird auch für die  Rückmeldung (Feedback) der Funktionen Notification und AlertDialog verwendet, sowie für die „Acknowledge“-Meldung


Das Trigger Wort dient zur Identifikation, und WOLi reagiert nur auf Befehle die diesem nachfolgen. Ist ein Trennzeichen gewünscht, ist dieses mit anzugeben (z.B. wolido: )

Um einen Befehl hinzuzufügen ist im mittels Add Command aufgerufenen Dialog die gewünschte Funktion auszuwählen und ein Text anzugeben.
Auch hier gilt – ist ein Trennzeichen gewünscht, ist dieses mit anzugeben.

 

Dem gesendete Befehls-Text muss je nach Funktion ein Parameter entsprechend der nachfolgenden Tabelle angefügt werden.

Funktion Parameter
WakeLock  1 = Ein / 0 = Aus
Notify NotificationID
Titel::Nachricht
Sound Sound ID
Alert Alert ID
Cancel Alert Alert ID
Speak Speak ID
Text [max. 512B]
Toast Text [max. 512B]
BrowseTo URL ID
URL (als Text)
LaunchApp App ID
SendIntent Daten(Text)
VolumeSystem 0… max
VolumeRing 0… max
VolumeMusic 0… max
VolumeNotification 0… max
ScreenBrightness 0… 255
BatteryLevel

HINWEIS: ab Version V0.33 können die Funktionen Notify, Speak und BrowseTo sowohl mit Text als auch einer ID aufgerufen werden. Für WakeLock muss nun ein Parameter angegeben werden: 0= Aus, >0 = Ein


Durch Auswählen eines bestehenden Befehls kann dieser editiert oder gelöscht werden

udp-settings-edit


Befehlsliste aus V0.18:

in Version V0.18 waren nachstehende Kommandos wie beschrieben definiert.

Trigger = „wolido:“
WakeLock:0 = „displayoff“
WakeLock:1 = „displayon“
Alert  = „alert:“
Notify = „notify:“
Notify = „notifyid:“
Sound = „notifysound:“
Toast = „toast:“
Browse = „browseto:“
Browse = „browsetoid:“
Speak = „speak:“
Speak = „speakid:“

Hinweis: Nach einem Update auf Version >V0.33 erwartet WakeLock einen Parameter! Es muss daher jedenfalls der zu sendende Befehl angepasst werden![:en]WOLi responds on the IP-address set in the app and the port as set here.  The received data is expected in ASCII format and will be interpreted as text-commands.
These commands consists of the trigger-word,the chosen text for the function and, if necessary, a parameter-text.

Since V0.36 it is possible to transmit multiple commands separated by <lf> („\n“)

Communication is possible via UDP and/or TCP

The set port is also used for notification and alertDialog feedback, and for acknowledge messages


The trigger-word is used for identification, and WOLi only reacts on commands behind it. If you want a separator you have to specify it within (e.g. wolido: )

To add a  command select Add Command. In the creation dialog you can choose the desired function and set a command text. The command-text may end with a separator.

 

Depending on the function, the sent text command must have a parameter assigned according to the table below.

parameter
WakeLock  1 = ON / 0 = OFF
Notify NotificationID
Title::Message
Sound Sound ID
Alert Alert ID
Cancel Alert Alert ID
Speak Speak ID
Text [max. 512B]
Toast Text [max. 512B]
BrowseTo URL ID
URL (as text)
LaunchApp App ID
SendIntent data(text)
VolumeSystem 0… max
VolumeRing 0… max
VolumeMusic 0… max
VolumeNotification 0… max
ScreenBrightness 0… 255
BatteryLevel

NOTE:  till Version V0.33 you can send ether text or ID to functions Notify, Speak and BrowseTo. For WakeLock you have to send an additional numeric parameter 0 = Off, >0 = On


By selecting an existing command, it can be edited or deleted

udp-settings-edit


Command-List of V0.18:

in version V0.18 the UDP-commandos has been as follows:

Trigger = „wolido:“
WakeLock:0 = „displayoff“
WakeLock:1 = „displayon“
Alert  = „alert:“
Notify = „notify:“
Notify = „notifyid:“
Sound = „notifysound:“
Toast = „toast:“
Browse = „browseto:“
Browse = „browsetoid:“
Speak = „speak:“
Speak = „speakid:“

Note: After an update above version V0.33,  WakeLock expects a parameter! Therefore the sent command has to be modified![:]