Safety monitor based on text file

I would like to raise a suspend event in case a power outage occurs in my roll-off-roof observatory.
To this purpose I’ve recently bought an APC UPS and developed a little piece of software (a watchdog) that, in case the UPS is on batteries (power outage), is able to write a file or do any other operation.
How can I use the safety monitor based on text file in Voyager?
In particular what “Add integration time management to conditions” option means?
What should I expect? That the suspend or exit event is raised in case Voyager is not able to find the file or does not read the safe string in it?
I ask because it seems not to work in my drag script…

Voyager read the file and contents you ask.

  • if file is not avalaible or not changed in time from last reading start a timer for unsafe if “Generate UNSAFE if Voyager cannot read file or data not modified for” flag is set for the time in field in minutes
  • if file not contains the string expected start a timer to unsafe based on the “integration time” in seconds if flag set or generate immediatly the unsafe condition
  • if file contains safe string and is updated start integration timer if set and after integration generate safe condition and reset all timer

Generaly integrtion (if set) work on change to avoid glitch, if set integration Voyager expect to read the safe or unsafe status for the time you put inside the field. Read must be stable or timer will be resetted and counter restart.

I hope this help you

First of all sorry for delay and thank you very much for answer.
I’ve recently bought a UPS and developed a piece of software that, in case the UPS is on battery (power outage is occurred) stops updating a file that I would like to use as an alert signal in Voyager.
I’m asking what are the best settings to use and the drag script element to raise an alert and to suspend observations until the power has been restored.
Second I would like to know how the “File Single Line Monitor” string works.


I answered in the previous message. For your UPS the best solution is to check external with your script or application and write a safety file text.

All the best