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
------------------------------
Original Message:
Sent: 02-28-2024 16:10
From: Sylvain Menet
Subject: Dashboard-get Xpression status
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
------------------------------