Copy and paste notifications

Forum Home Forums Uncategorized Issues Copy and paste notifications

Tagged: 

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #12985
    Keano
    Participant

    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.

    https://imgur.com/yj3d71v

    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.

    #12986
    Mikhail
    Moderator

    Hello,

    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++.

    #12991
    Keano
    Participant

    Where Do I find the xml file

    #12994
    Mikhail
    Moderator

    For example
    C:\SCADA\Projects\HelloWorld\Instances\Default\ScadaServer\Config\ModAutoControl.xml

    #12996
    Keano
    Participant

    I 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.

    #12998
    Mikhail
    Moderator

    You 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.

    #13024
    Keano
    Participant

    Hi 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.

    #13025
    Mikhail
    Moderator

    Hi,
    Please provide screenshots of the module settings and the module log.

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.