Actions

HTTP string: Send from AlphaCom: Difference between revisions

From Zenitel Wiki

No edit summary
Line 26: Line 26:


== Example: Control PTZ on an Axis camera ==
== Example: Control PTZ on an Axis camera ==
When pushing DAK 1 on an intercom station you want to pan an Axis camera 10 degrees to the left. Pushing DAK 2 should pan the camera 10 degrees to the right.


On a PTZ Axis camera one can use http commands to


Relative pan :  10 degrees right
The http commands are:
*Relative pan :  10 degrees right
  http://myserver/axis-cgi/com/ptz.cgi?rpan=10
  http://myserver/axis-cgi/com/ptz.cgi?rpan=10
Relative pan :  10 degrees left
*Relative pan :  10 degrees left
  http://myserver/axis-cgi/com/ptz.cgi?rpan=-10
  http://myserver/axis-cgi/com/ptz.cgi?rpan=-10

Revision as of 09:54, 13 September 2017

HTTP GET via EDO Port

You can send HTTP GET to third-party systems using EDO ports and Event Handler.

Set up EDO port

In AlphaPro select Exchange & System > Serial Ports > Configure EDIO port

Port-Type: TCP/IP Client
IP-Address: destination IP
Port: destination port, usually 80 when HTTP.
Keep-Alive: off

EDIO-port.png

Create Event

Use EDO command to send HTTP GET on the configured port.

Example using DAK 1 to send HTTP GET:
Event-http-string.png

EDO 1 "GET /triggerevent?variable1=test1&variable2=test2 HTTP/1.1\r\nHost: 10.5.101.110\r\nConnection: Keep-Alive\r\n"
EDO 1 "Accept: */*\r\n\r\n"


A string generated by the EDO command can contain maximum 128 characters. If the http string exceeds this length, one can simply use multiple EDO commands.

Example: Control PTZ on an Axis camera

When pushing DAK 1 on an intercom station you want to pan an Axis camera 10 degrees to the left. Pushing DAK 2 should pan the camera 10 degrees to the right.


The http commands are:

  • Relative pan : 10 degrees right
http://myserver/axis-cgi/com/ptz.cgi?rpan=10
  • Relative pan : 10 degrees left
http://myserver/axis-cgi/com/ptz.cgi?rpan=-10
MediaWiki spam blocked by CleanTalk.