Forum Home › Forums › Uncategorized Issues › Copy and paste notifications
Tagged: Telegram
- This topic has 7 replies, 2 voices, and was last updated 1 year, 2 months ago by Mikhail.
-
AuthorPosts
-
July 13, 2023 at 8:13 am #12985KeanoParticipant
Good Morning im currently working on telegram notifications using the automatic control module. I’d like to know if its possible to copy and paste already done notifications and then just change the address as im making notifications for seperate devices that get the same notifications.
This is a example of a few of my notifcations that I still need to link to the bot but I have 4 more sets of the same notifications that need to be done for diffrent devices.
July 13, 2023 at 11:52 am #12986MikhailModeratorHello,
Copy and Paste buttons were added in the 6th version of the module.
In the 5th version, you could try editing the ModAutoControl.xml file by an external XML editor like Notepad++.July 14, 2023 at 9:07 am #12991KeanoParticipantWhere Do I find the xml file
July 14, 2023 at 9:31 am #12994MikhailModeratorFor example
C:\SCADA\Projects\HelloWorld\Instances\Default\ScadaServer\Config\ModAutoControl.xmlJuly 14, 2023 at 12:08 pm #12996KeanoParticipantI Found it and have been playing around with it but it seems like even if I copy and paste triggers and commands and then change the names and values I still only get one folder instead of two.
<?xml version="1.0" encoding="utf-8"?> <ModAutoControl> <TrGroups> <TrGroup active="true" name="Comap Controllers" /> <TrGroup active="true" name="Comap Controllers 2" /> <TrGroup active="true" name="Gen 1"> <Trigger id="5" active="true" name="Gen 1 Oil Pressure switch" type="CnlDataTrigger"> <CnlDataTriggerProps> <CnlNum>101</CnlNum> <ChkCnlVal>true</ChkCnlVal> <CnlValCond> <CompareOperator1>Equal</CompareOperator1> <CompareArgument1>1</CompareArgument1> <LogicalOperator>None</LogicalOperator> <CompareOperator2>LessThan</CompareOperator2> <CompareArgument2>0</CompareArgument2> </CnlValCond> <Deadband>0</Deadband> <ChkCnlStat>false</ChkCnlStat> <CnlStat /> <Delay>0</Delay> <Repeat>0</Repeat> <RepeatCnt>0</RepeatCnt> </CnlDataTriggerProps> <Trigger id="6" active="true" name="Gen 1 Oil Pressure switch" type="CnlDataTrigger"> </Trigger> <CnlNum>201</CnlNum> <ChkCnlVal>true</ChkCnlVal> <CnlValCond> <CompareOperator1>Equal</CompareOperator1> <CompareArgument1>1</CompareArgument1> <LogicalOperator>None</LogicalOperator> <CompareOperator2>LessThan</CompareOperator2> <CompareArgument2>0</CompareArgument2> </CnlValCond> <Deadband>0</Deadband> <ChkCnlStat>false</ChkCnlStat> <CnlStat /> <Delay>0</Delay> <Repeat>0</Repeat> <RepeatCnt>0</RepeatCnt> <Commands /> </Trigger> </TrGroup> </TrGroups> </ModAutoControl>
As you can see here I have a trigger and I command for two of the same things on diffrent channels but when I run it I dont get a error I ony get my original “Gen 1 ” trigger and command.
July 14, 2023 at 4:02 pm #12998MikhailModeratorYou should use a good XML editor that can collapse and expand nodes, so you can check that the XML structure is correct. Otherwise, move to v6. We can update license keys for the new version.
July 21, 2023 at 11:20 am #13024KeanoParticipantHi I seem to be getting this problem in my automatic control module logs.
Sending commands skipped
Why does this happen and how can I solve it.July 21, 2023 at 11:59 am #13025MikhailModeratorHi,
Please provide screenshots of the module settings and the module log. -
AuthorPosts
- You must be logged in to reply to this topic.