Hello Filip,
can you give me a sample of the syntax (notation) of the condition in events? Is the attached sample correct? I have try many possibilities, but it does not works.
Thanks for your help in advance.
[img]1[/img]
Willkommen auf unserer neuen Forenplattform für das Bus-Profi Forum
Neue Felder für die persönlichen Daten
Man kann jetzt seine öffentlich einsehbare Daten genau bestimmen. Details findet ihr in in diesem Beitrag.
Durch die neue Forensoftware und die Portierung der Daten konnten die Passwörter aus dem alten Forum nicht übernommen werden, bitte lassen Sie sich ein neues Passwort über die Passwort vergessen Funktion zusenden. Sollte es zu Problemen kommen kontaktieren Sie das Bus-Profi Team per E-Mail.
Neue Felder für die persönlichen Daten
Man kann jetzt seine öffentlich einsehbare Daten genau bestimmen. Details findet ihr in in diesem Beitrag.
Durch die neue Forensoftware und die Portierung der Daten konnten die Passwörter aus dem alten Forum nicht übernommen werden, bitte lassen Sie sich ein neues Passwort über die Passwort vergessen Funktion zusenden. Sollte es zu Problemen kommen kontaktieren Sie das Bus-Profi Team per E-Mail.
Skript
#12 RE: Skript
For events you should use full channel name and Lua operators.
Any channel value will be automatically converted from string to number, if it is possible.
For example:
The best way to see what can be used as condition is to telnet to port 4224 and send ?[ENTER] - all current channel values will be shown.
Any channel value will be automatically converted from string to number, if it is possible.
For example:
Code: Alles auswählen
VAR.ala_og == 1
MEM.season == 'summer'
LCN.relay.0.20.1 == 1 and LCN.output.0.30.1 <= 1200
The best way to see what can be used as condition is to telnet to port 4224 and send ?[ENTER] - all current channel values will be shown.
#13 RE: Skript
Thank you.
Is it possible to make a counter - variable in the channel, like C.VAR.alarm=VAR.alarm+1 ?
Is in this case CHANNEL name=C.VAR.alarm value=VAR.alarm+1 the correct syntax?
Is it possible to make a counter - variable in the channel, like C.VAR.alarm=VAR.alarm+1 ?
Is in this case CHANNEL name=C.VAR.alarm value=VAR.alarm+1 the correct syntax?
#14 RE: Skript
To make a counter you need to do it in Logic:
And then use this in Events/Timers as Channel command
Code: Alles auswählen
ctr = use "VAR.counter"
function ctr:increment()
ctr:set(ctr.value + 1)
end
And then use this in Events/Timers as Channel command
Code: Alles auswählen
Name: C.LOGIC
Value: ctr:increment()
Zurück zu „Domiq-Module - DOMIQ Sp. z o.o.“
Wer ist online?
Mitglieder in diesem Forum: 0 Mitglieder und 1 Gast