OpenMarine
Action does not read values the first time or without repeat - Printable Version

+- OpenMarine (https://forum.openmarine.net)
+-- Forum: OpenPlotter (https://forum.openmarine.net/forumdisplay.php?fid=1)
+--- Forum: Bug Reports (https://forum.openmarine.net/forumdisplay.php?fid=4)
+--- Thread: Action does not read values the first time or without repeat (/showthread.php?tid=771)



Action does not read values the first time or without repeat - kste - 2017-09-20

If I create an action reading a Signal K key value and setting "no repeat", the value is not read.
If I set "repeat", the value is not read the firs time, the next repetitions are read correctly.


RE: Action does not read values the first time or without repeat - e-sailing - 2018-03-02

The actions start 4 seconds behind the first signalk read.
Otherwise some actions wouldn't work.
For example you want an alarm if there is no depth signalk sentence in the last minute. This wouldn't work when it directly starts. Because at the beginning there is no depth sentence so you would get every time an alarm.
But I think you read a gpio status which is only send on change and if this change is only at start time that could be an issue.
The 4 seconds (200*0.02) delay can be found in the last 10 lines of SK-base_d.py.