Thanks Jared, you guys are awesome!
Great response time, much appreciated.
Thanks Jared, you guys are awesome!
Great response time, much appreciated.
@terrypacker Thanks, I will set them up using meta points as you suggest.
@MattFox Hi Matt, the application is a cold room used as a grow room.
The room has set-points for alarms and also automation to turn off grow lights, when the temp gets to high.
But we need to disable all the alarms and automation when they have the doors open for loading/unloading, using an easy method.
I might try to setup the Event Handlers using external context points (maybe a virtual binary point,or physical switch) and scripts, if disabling the event handlers by a user is not possible.
...or just create another user with superadmin privileges.
Thanks anyway for looking at it...
Hi,
I can't see how to give users permissions to Enable/disable event handlers, that have been created by admin.
I gave access to the Event Handlers menu item, which is there, but I can't see any options in the actual individual event handlers, which are not visible.
Does anyone know?
(V3)
Thanks for your reply guys, much appreciated!
(Must not have email post notifications setup, sorry for the delay in thanking you guys...)
Hi,
Wow, not much happening on this Forum?
I am getting what appears to be intrusion attempts. They have come in from various IP addresses.
Anyone else getting this?
My instance is running on port 8008
WARN 2023-02-19T08:44:51,449 (com.serotonin.m2m2.web.mvc.spring.security.MangoAccessDeniedHandler.handle:53) - Denying access to Mango resource / to IP 52.213.21.176
WARN 2023-02-19T08:44:52,317 (com.serotonin.m2m2.web.mvc.spring.security.MangoAccessDeniedHandler.handle:53) - Denying access to Mango resource /debug/default/view to IP 52.213.21.176
WARN 2023-02-19T08:44:53,160 (com.serotonin.m2m2.web.mvc.spring.security.MangoAccessDeniedHandler.handle:53) - Denying access to Mango resource /tool/view/phpinfo.view.php to IP 52.213.21.176
WARN 2023-02-19T08:44:54,021 (com.serotonin.m2m2.web.mvc.spring.security.MangoAccessDeniedHandler.handle:53) - Denying access to Mango resource /wp-config.php-backup to IP 52.213.21.176
WARN 2023-02-19T08:44:54,933 (com.serotonin.m2m2.web.mvc.spring.security.MangoAccessDeniedHandler.handle:53) - Denying access to Mango resource /%C0 to IP 52.213.21.176
WARN 2023-02-19T08:44:55,810 (com.serotonin.m2m2.web.mvc.spring.security.MangoAccessDeniedHandler.handle:53) - Denying access to Mango resource /debug/default/view.html to IP 52.213.21.176
WARN 2023-02-19T08:44:56,531 (com.serotonin.m2m2.web.mvc.spring.security.MangoAccessDeniedHandler.handle:53) - Denying access to Mango resource /debug/default/view to IP 52.213.21.176
WARN 2023-02-19T08:44:57,344 (com.serotonin.m2m2.web.mvc.spring.security.MangoAccessDeniedHandler.handle:53) - Denying access to Mango resource /frontend/web/debug/default/view to IP 52.213.21.176
WARN 2023-02-19T08:44:58,263 (com.serotonin.m2m2.web.mvc.spring.security.MangoAccessDeniedHandler.handle:53) - Denying access to Mango resource /web/debug/default/view to IP 52.213.21.176
WARN 2023-02-19T08:44:59,179 (com.serotonin.m2m2.web.mvc.spring.security.MangoAccessDeniedHandler.handle:53) - Denying access to Mango resource /sapi/debug/default/view to IP 52.213.21.176
WARN 2023-02-19T08:44:59,976 (com.serotonin.m2m2.web.mvc.spring.security.MangoAccessDeniedHandler.handle:53) - Denying access to Mango resource /debug/default/view to IP 52.213.21.176
Hi Craig,
I am not familiar with httpBuilder.
How does the "message" get updated in the script?
From what I can see, httpBuilder method uses at least the point, an event detector, and a global script.
The easier way would have been the original way I tried to get it to work with the Meta
point getting published when the script changes. (which worked, apart from the delay I needed of 5 minutes)
That way for the limit value, I could have used another Virtual numeric point, so the limit can be
easily adjusted on the fly, from a dashboard.
On the Meta point, "context event type" is - Update
The point updating the context is a Virtual point, so I assume is instant.
Here is the Meta data point:
{
"purgePeriod":1,
"setExtremeLowLimit":-179769313486231570814527423731704356798070567525844996598917476803157260780028538760589558632766878171540458953514382464234321326889464182768467546703537516986049910576551282076245490090389328944075868508455133942304583236903222948165808559332123348274797826204144723168738177180919299881250404026184124858368,
"intervalLoggingType":"INSTANT",
"dataSourceXid":"DS_1467c3b6-808b-4f6f-8fe4-0cfe54292b77",
"discardHighLimit":179769313486231570814527423731704356798070567525844996598917476803157260780028538760589558632766878171540458953514382464234321326889464182768467546703537516986049910576551282076245490090389328944075868508455133942304583236903222948165808559332123348274797826204144723168738177180919299881250404026184124858368,
"deviceName":"Meta",
"enabled":true,
"rollup":"NONE",
"purgeOverride":false,
"chartRenderer":{
"limit":10,
"type":"TABLE"
},
"xid":"DP_8d626457-cc93-4d96-a580-53ecc1463373",
"eventDetectors":[
],
"textRenderer":{
"useUnitAsSuffix":false,
"type":"PLAIN",
"suffix":""
},
"loggingType":"ON_CHANGE",
"overrideIntervalLoggingSamples":false,
"defaultCacheSize":1,
"readPermission":"",
"setPermission":"",
"intervalLoggingPeriodType":"MINUTES",
"intervalLoggingSampleWindowSize":0,
"tolerance":0,
"purgeType":"YEARS",
"plotType":"STEP",
"intervalLoggingPeriod":1,
"discardExtremeValues":false,
"tags":{
},
"unit":"",
"pointLocator":{
"contextUpdateEvent":"CONTEXT_UPDATE",
"variableName":"my",
"executionDelaySeconds":6,
"dataType":"ALPHANUMERIC",
"scriptPermissions":[
],
"updateCronPattern":"",
"script":"if(input1.value >= 28){\n return \"Redlands Growth room 28 - Temperature HIGH\";\n}\nelse return \"Redlands Growth room 28 - Temperature NORMAL\";",
"logCount":5,
"settable":false,
"logLevel":"NONE",
"updateEvent":"NONE",
"context":[
{
"varName":"input1",
"dataPointXid":"DP_32e6bd9b-a5a9-4b98-9b30-6e44dc96a6af",
"updateContext":true
}
],
"logSize":1
},
"discardLowLimit":-179769313486231570814527423731704356798070567525844996598917476803157260780028538760589558632766878171540458953514382464234321326889464182768467546703537516986049910576551282076245490090389328944075868508455133942304583236903222948165808559332123348274797826204144723168738177180919299881250404026184124858368,
"setExtremeHighLimit":179769313486231570814527423731704356798070567525844996598917476803157260780028538760589558632766878171540458953514382464234321326889464182768467546703537516986049910576551282076245490090389328944075868508455133942304583236903222948165808559332123348274797826204144723168738177180919299881250404026184124858368,
"name":"Redlands Growth room 28 - Temperature",
"chartColour":"",
"preventSetExtremeValues":false,
"simplifyType":"NONE"
},
EDIT: This is my test setup:
A virtual numeric point
An alphanumeric meta point that reads the value of that point, with a script that returns a string depending on the script.
The Meta point has an execution delay, and the Meta point WILL NOT change state if the execution delay is over 5 seconds.
if(input1.value >= 28){
return "Redlands Growth room 28 - Temperature HIGH";
}
else return "Redlands Growth room 28 - Temperature NORMAL";
I'm all for simple.
The fact here is that the publisher works, and sends messages, so the problem is the execution delay on the Meta point does not work above 5 seconds.
I did come up with a solution:
Room temperature point - NUMERIC
HIGH temp event detector, with 5 minute Duration (hold off delay)
Event handler that sets a Virtual Alphanumeric point - "Room temperature Alarm" - Active "Room temp HIGH", Inactive "Room temp NORMAL"
Publisher is HTTP Sender, which publishes the Alphanumeric points value (Text value)
I think I'll run with this.
Thanks for the help.
Hi IA,
I have an alphanumeric META point, that will only change state if the execution delay is 5 seconds or under.
This appears to be a bug.
Please see this post (EDIT: Go to post 6)
https://forum.infiniteautomation.com/topic/4781/http-sender-publisher/3
I need to add an execution delay of 5 minutes.
Many thanks
Hi Fox, I am not sure what you mean.
The only other way I worked out would be:
Maybe IA could look into this?