Ankündigung

Einklappen
Keine Ankündigung bisher.

linknx bei status 1 script alle 500ms ausführen

Einklappen
X
 
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

    linknx bei status 1 script alle 500ms ausführen

    ist es möglich mit linknx bei status 1 ein Script alle 500ms zu starten solange der Status = 1 ist hab dazu leider nix gefunden vielleicht
    kann mir hier wer helfen.

    #2
    habs jetzt so gelöst mal schauen ob das so gut geht

    Code:
    <rule id="x4000_vol_up" description="x4000_vol_up">
                <condition type="object" id="X4000_VOLUP_HILF" value="up" trigger="true" />
                <actionlist type="if-true">
                    <action type="conditional">
                        <condition type="object" id="X4000_VOLUP" value="up" />
                        <action type="set-value" id="X4000_VOLUP_HILF" value="up" delay="500ms" />
                        <action type="set-value" id="X4000_VOLUP_HILF" value="stop" />
                        <action cmd="echo 'Z2UP' | socat TCP:10.10.2.8:23,cr -" type="shell-cmd"/>
                    </action>
                    <action type="conditional">
                        <condition type="object" id="X4000_VOLUP" value="stop" />
                        <action type="set-value" id="X4000_VOLUP_HILF" value="stop" />
                    </action>
                </actionlist>
            </rule>
            <rule id="x4000_vol_up_hilf" description="x4000_vol_up_hilf">
                <condition type="object" id="X4000_VOLUP" value="up" trigger="true" />
                <actionlist type="if-true">
                    <action type="set-value" id="X4000_VOLUP_HILF" value="up" />
                </actionlist>
                <actionlist type="if-false">
                    <action type="set-value" id="X4000_VOLUP_HILF" value="stop" />
                </actionlist>
            </rule>

    Kommentar

    Lädt...
    X