Facility Control

 View Only
  • 1.  Dashboard and scheduling custom controls in Acuity

    Posted 05-28-2019 19:33

    Hi all,

    I am trying to discern if Dashboard can fire a custom control on my Acuity switcher at a scheduled time.  Is that possible?  Thanks in advance!



  • 2.  RE: Dashboard and scheduling custom controls in Acuity

    Posted 05-28-2019 22:41

    Hi Jason.

    If this is something you want to do on a regular basis, there is a product called PowerPlay that you may be interested in:
    https://www.rossvideo.com/products-services/management-systems/facility-control-systems/powerplay/

     

    If it is more of a one-off, we have posted a demo CustomPanel that will run a task at a given time on a given day before. I'll re-post the code here:

    <abs contexttype="opengear" style="">
    <meta>
    <api>function runFunctionAtTime(funcToRun, time)
    {
    var now = new Date();
    var delay = time.getTime() - now.getTime();
    if (delay &gt;= 0)
    {
    ogscript.debug("TASK SCHEDULED FOR " + time + " (in " + delay + "ms)");
    ogscript.asyncExec(funcToRun, delay);
    }
    }</api>
    </meta>
    <button buttontype="push" height="120" left="20" name="Schedule Task" top="22" width="303">
    <task tasktype="ogscript">var dateAndTime = new Date(2019, 06, 01, 16, 01, 0, 0);
    function doThing()
    {
    ogscript.debug("HELLO WORLD");
    }
    runFunctionAtTime(doThing, dateAndTime);</task>
    </button>
    </abs>

     

    Cheers.

    James


    #DashBoard