FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

14455 questions

17168 answers

28195 comments

0 members

We are migrating to our new platform at https://community.teltonika.lt. Moving forward, you can continue discussions on this new platform. This current platform will be temporarily maintained for reference purposes.
0 votes
620 views 0 comments
by
Hi!

I'd like to be informed, when the input status (e.g. Analog - Voltage: Outside range) of the RUT955 changes. The aim is to have the IO status in node red for further processing.

Information by SMS ist working, but I do not know, how to configure "HTTP POST/GET" on the RUT955 and the HTML receiver (node red server) side.

Do I have to use POST or GET?

if POST:

What is the "header" like?

How is the syntax of the "Site link"?

if GET:

How is the syntax of the "Site link"?

How to fill "HTML query"?

1 Answer

+1 vote
by anonymous
Hello,

Here are some examples of POST/GET commands:

Turn open collector (OC) output ON            
http://192.168.2.1/cgi-bin/output?username=admin&password=admin&action=on&pin=oc

Turn open collector (OC) output OFF          
http://192.168.2.1/cgi-bin/output?username=admin&password=admin&action=off&pin=oc

Turn open collector (OC) output ON after a 10 second delay
http://192.168.2.1/cgi-bin/output?username=admin&password=admin&action=on&pin=oc&delay=10

Turn open collector (OC) output ON for 5 seconds   
http://192.168.2.1/cgi-bin/output?username=admin&password=admin&action=on&pin=oc&time=5

Turn open collector (OC) output ON for 5 seconds after a 10 second delay   
http://192.168.2.1/cgi-bin/output?username=admin&password=admin&action=on&pin=oc&delay=10&time=5

Allowed pin values: oc, relay, 4pin

Regarding the other questions, I would need you to clarify those for me, as I was unable to understand them.