Facility Control

 View Only
  • 1.  Automatic re launch command

    Posted 01-25-2017 09:04
    Hi EveryOne, I m newbie on Dashboard. I would like to create a script that relaunch automatically a commande every 60 min. Is it possible?

    "‹Thanks


  • 2.  RE: Automatic re launch command

    Posted 01-25-2017 14:32

    Easiest method is to create a timer that runs every 60 minutes:

    <timer id="myTimer" pattern="HH:mm:ss" rate="3600000">
          <timertask tasktype="ogscript">ogscript.debug("RUN SCRIPT!");</timertask>
       </timer>

    #DashBoard


  • 3.  RE: Automatic re launch command

    Posted 01-26-2017 16:03
    Thnks James :
    Could you help me again, I'm really new and it is my first command. I would like to lunch a command like :

    rosstalk.sendMessage(ogscript.getPrivateString('hosts', 'CASPARCGLocal.host'), parseInt(ogscript.getPrivateString('hosts', 'CASPARCGLocal.port')), 'play 1-10 [html] http://...;

    How could I do that ?

    Have I to create a button ? Witch language have i to use ? Rosstalk ? ogscript, ???




    #DashBoard


  • 4.  RE: Automatic re launch command

    Posted 01-26-2017 22:41
    Timer tasks have access to the same scripting tools as button tasks. When you are in edit mode, you can see a "Times" button in the floating toolbar. This is where you can create new timers and add/edit timer tasks.

    If you already have a button set up with the script you'd like to run, you can give it a "Trigger ID" (located above the task list for the button) and then trigger the button press from inside of your timer with:

    ogscript.fireGPI('TRIGGER_ID_YOU_USED', null, false);

    #DashBoard