Environment Variables in Signal Message

An example on how to use the environment variables managed by Voyager internally and ready to use in your DragScript.

In this case we use the Emergency variables:

  • $$EMEVENT_EXIT_LASTREASON
  • $$EMEVENT_EXIT_LASTTIME
  • $$EMEVENT_SUSPEND_LASTREASON
  • $$EMEVENT_SUSPEND_LASTTIME

and the Sequence Fail Status variable:

  • $$SEQUENCE_FAIL_STATUS

A DragScript to send more info on exit status and on sequence error:

1   - 	Start: Events At Start are ENABLE
2   - 	Script
3   - 		Sequence: Interval of 01:00:00 [hh:mm:ss] - C:\Users\pegas\OneDrive\Documenti\Voyager\ConfigSequence\TestUnguidedNoPlateSolve.s2q
4   - 			If Error
5   - 				Send Telegram: Sequence Internal Error Code:.##VAR-$$SEQUENCE_FAIL_STATUS##..##NOW##.
6   - 	End
7   - 	Events
8   - 		Emergency Suspend: Wait Resume for a time interval of : 00:05:00 [hh:mm:ss] - On Resume Timeout End DragScript
9   - 			Remark: SUSPEND
10  - 			Send Telegram: Suspend Info:.##VAR-$$EMEVENT_SUSPEND_LASTREASON##..Suspend Date Time:.##VAR-$$EMEVENT_SUSPEND_LASTTIME##
11  - 		Emergency Resume
12  - 			Remark: RESUME
13  - 		Emergency Exit
14  - 			Remark: EXIT
15  - 			Send Telegram: ##VAR-$$EMEVENT_EXIT_LASTREASON##.##VAR-$$EMEVENT_EXIT_LASTTIME##

The script:
UsingEnvVariableInSignalMessage.chg.vos (17.5 KB)

Configuration of Send Telegram Block for Sequence:

immagine

Configuration of Send Telegram Block for Emergency Exit:

immagine

Generally to print content of a variable in a text press the button Variable and after the char - and ## insert the name of variable.

More info on Environment Variables here:
https://wiki.starkeeper.it/index.php/DragScript_Environment_Variables

All the best
Leonardo