Sorry for the late reply.
Thank you so much for the help, this was very easy to follow.
The one thing I'm not clear on is how to call
I'm guessing that I would use the
getMaintenanceEvent(xid)from here: https://github.com/infiniteautomation/ma-modules-public/blob/main/Maintenance Events/src/com/serotonin/m2m2/maintenanceEvents/MaintenanceEventsDwr.java#L52
Something like this?
//To toggle off var maintEvt = getMaintenanceEvent("MNT_123"); if (maintEvt.isEventActive()) toggleMaintenanceEvent("MNT_123");
For some reason, my V3 watchlists don't show any live data. If you click the check box, the chart shows up and shows the data just fine, but the value and time fields on the actual watchlist are blank for every single point.
Is there something I'm missing that I need to set up to enable this feature? The live point values work just fine in the old watchlist, but nothing for the V3 watchlist.
I get alarms from my system, but when I'm tweaking things or working on my system and dont want to get bombarded with alarms, I like to use the maintenance mode module to keep the alarms quiet while I'm working on things. However, this requires going into mango and enabling the maintenance mode manually. I would love to wire in a switch that I can flip to enable maintenance mode. I figure this should be possible using either a data point script or a global script of some kind.
Is there any script API documentation that shows how to set or unset the maintenance modes from the maintenance module?