Forum Replies Created
-
AuthorPosts
-
oley
ParticipantHi Mikhail,
I take a look at RapidGate and another backup strategies.
The link to the English document does not work.
Would you provide a valid link?oley
ParticipantHi Mikhail,
I tried yesterday and have success with type 3. Channel value has changed.
Unfortunately (it’s not so bad) I need 2 triggers: switch opened and switch closed.
Type 2. Channel data has changed fires every time I’m uploading configuration, and another disadvantage: I can’t define range of channels.oley
ParticipantAnother approach that scales even better: EventTrigger.
I just set the channel and nothing else.
I connect the copied Notif command to the DrvHttpNotif device.
After changing the channel, an event appears, and in the ACM log I see:
2025-12-04 21:57:45 Send command. Device 200, command Notif
Unfortunately, nothing happens, silence in the DrvHttpNotif device log.
Any idea?oley
ParticipantHi Mikhail,
I was able to get it working with ACM and the phone book – I just need to use the Notif command.
Unfortunately, if I have Channel DataChange Trigger in ACM, it fires after every configuration upload.oley
ParticipantCan’t find any doc for this driver. Can you give me a link to this description?
oley
ParticipantHi Mikhail,
thank you. I can send an SMS from SCADA with simple “Request” command. It works.
Now I want to use it as notifier. So I have some contacts in the address book.
I have Channel Data Change Trigger in ACM.
How to connect this together? Command to device DrvHttpNotif? But how to access this address book?oley
ParticipantI made it work.
I created a proxy service that accepts POST requests and sends SMS messages with two-factor authentication based on them.
Since the request is in JSON format, I have to use [param] instead of {param} for the parameters.
The Headers tab probably refers to the response, because when I set Content-Type there, I kept getting the error: “Error creating request: Misused header name, ‘Content-Type’. Make sure request headers are used with HttpRequestMessage, response headers with HttpResponseMessage, and content headers with HttpContent objects.”I will send something like: {CnlName} on {EvDev} at {EvObj} changed value to {CnlVal}
I suppose this should be Channel Data Change Trigger and than Command with code “Request” to my Notifier device.
Now is the question: how to send SMS to a recipient from the address book?oley
ParticipantOne more request: could you remove the phone number from the configuration I sent? I can’t edit my message.
oley
Participant<?xml version="1.0" encoding="utf-8"?> <NotifDeviceConfig> <Uri>http://localhost:5150/send-sms</Uri> <Method>Post</Method> <Headers> <Header name="Content-Type" value="application/json" /> </Headers> <Content>{ "phoneNumber": "+486011111", "message": "SCADA" } </Content> <ContentType>application/json</ContentType> <ContentEscaping>EncodeJson</ContentEscaping> <ParamEnabled>false</ParamEnabled> <ParamBegin>[</ParamBegin> <ParamEnd>]</ParamEnd> <AddrSep>;</AddrSep> </NotifDeviceConfig>-
This reply was modified 1 month, 1 week ago by
Mikhail.
oley
ParticipantIs there a possibility to simply test if this solution works?
If I had the service which works like:Invoke-RestMethod -Uri "http://localhost:5150/send-sms" -Method Post -Headers @{ "Content-Type" = "application/json" } -Body '{"phoneNumber":"+48111111111","message":"Test API"}'and put Url into DrvHttpNotif with content type json and so on. How to send a test message?
oley
ParticipantThank you,
yes I will provide simple proxy service which can become single request and make two-factor request.oley
ParticipantHi, got it! Thanks!
oley
ParticipantHi,
I can not set the undefined icon.
Status channel equals 1 (and every positive) shows error icon, 0 and -1 (or any negative) shows normal.oley
ParticipantHi,
Thanks, got it.
oley
ParticipantHi,
I figured it out.
Thanks! -
This reply was modified 1 month, 1 week ago by
-
AuthorPosts