HTTP Actions
You account will allow you to perform a number of server side actions. The HTTP POST action will allow you to POST data from your module to a third party server or application.
There are three types of HTTP POSTs
-
Digital Input POST
-
Analog Input POST
-
Pulse Count POST
HTTP POSTs can be tested at this website: http://www.posttestserver.com/
Digital Input POST
Send a POST when a digital input is triggered
-
URI: Address of POST
-
Basic Authentication Username: Basic HTTP Authentication Username (not required)
-
Basic Authentication Password: Basic HTTP Authentication Password (not required)
-
Digital Input Off Content: Parameter and value to be sent in the digital off state.
-
Digital Input On Content: Parameter and value to be sent in the digital on state.
Analog Input POST
Send a POST when a analog input is triggered
-
Analog Trigger Condition: Determine if the action is triggered when the analog value goes above or below a set threshold value.
-
Analog Trigger Value (0 to 1023): Set the threshold, in RAW, when the action will be triggered.
-
URI: Address of POST
-
Basic Authentication Username: Basic HTTP Authentication Username (not required)
-
Basic Authentication Password: Basic HTTP Authentication Password (not required)
-
Content: Parameter and value to be sent on the transition across the trigger.
Pulse Count POST
Send a POST when a pulse count number is hit. This actions works exactly like the analog action; however, it works on pulse counts rather than analog values.
-
Pulse Count Limit Condition: Determine if the action is triggered when the pulse count value goes above or below a set threshold value.
-
Pulse Count Limit (0 to 4294967295):: Set the threshold when the action will be triggered.
-
URI: Address of POST
-
Basic Authentication Username: Basic HTTP Authentication Username (not required)
-
Basic Authentication Password: Basic HTTP Authentication Password (not required)
-
Content: Parameter and value to be sent on the transition across the trigger.
Substitutions
Substitutions can be used to send variable data to a POST.
Pass the analog input to a POST
%%input%%
Pass a digital state to a POST
%%condition%%
Pass a date and time to a POST
%%datetime%%
Example
In the below example, a POST is made to the fictitious website http://mywebsite.com/doorState.php.
Transition to OFF STATE as detected by digital channel
POST http://mywebsite.com/doorState.php?door=closed
Transition to ON STATE as detected by digital channel
POST http://mywebsite.com/doorState.php?door=open

