Facility Control

 View Only
  • 1.  Dashboard-get Xpression status

    Posted 02-28-2024 16:11

    Is it possible in Dashboard via ogscript to have the status of the Xpression as well as Carbonite.
    It's in the basic tree, but I'd like to display an error message via my key4 if my Xpression is dead.

    Thx a lot,
    Best regards.



    ------------------------------
    Sylvain Menet
    Technical Manager
    Dreamwall
    ------------------------------


  • 2.  RE: Dashboard-get Xpression status

    Ross Staff
    Posted 03-05-2024 16:41

    Hi Sylvain, 

    I don't think you can have both statuses at the same time. If you have one of the devices in your custom panel configured as the opengear contexttype, then you can use params.getDeviceStatus() or params.isDeviceOnline() to achieve that. isDeviceOnline() returns a boolean (true or false), and getDeviceStatus() returns the device status as an integer:

    • 0 - good (green)
    • 1 - warning (yellow)
    • 2 - Error (red)
    • 3 - Unknown (gray)

    Here is a sample code below:

    <abs contexttype="opengear" id="_top" keepalive="false" objectid="yourXpressionIP:8020:XPression" subscriptions="false">
       <button buttontype="push" height="76" left="79" name="tEST" top="102" width="109">
          <task tasktype="ogscript">ogscript.debug(params.getDeviceStatus());</task>
       </button>
    </abs>
    

    Cheers,
    Aury R.



    ------------------------------
    Aury Rukazana
    Senior Software Developer
    Ross Video
    ------------------------------