Common Alert Protocol?
kekoch
Posts: 1
Does anyone have any experience with the Common Alert Protocol with AMX? The Common Alert Protocol makes it possible for any system to "watch" or "listen" for an emergency alert from another system and then act on it. Trying to find out if an AMX controller can "listen" to that protocol for an emergency alert and then perform a specific function. (Turn on projector and then switch sources) This is for a Higher Ed environment that is trying to put security measures in place in case of an emergency.
Thanks in advance!
Kris Koch
New AMX Programmer
Thanks in advance!
Kris Koch
New AMX Programmer
0
Comments
for instance, the NOAA website says it updates every 3-4 minutes, have you application establish a conneciton with the site (or whatever server youre using) and check for updates. If there is an update, the xml file associated with it can then be parsed and you can do whatever actions you deem based on your predefined variables.
For example, I just looked up my state: MD
http://alerts.weather.gov/cap/md.php?x=1
There is 1 warning currently, it handles multiple counties; if I were to base this off my own county, it woudlnt have brought up anything. But going off the entire state. The XML file supplied:
-You've got an alert time/date and when it expires.
-Who sent it and so on..
you may want to check out page 73-78 of the netlinx programming language guide on encoding and decoding keywords... it would probably help clarify how to handle this with the xml file and use the information accordingly.
-Paul
Has anyone figured out how to send COP alerts in Netlinx via POST & XML? I can get it to work without a problem in PHP using curl_setopt_array, but in Netlinx i just keep getting HTTP/1.1 400 Bad Request$0D$0AContent-Type: text/html; charset=us-ascii$0D$0AServer: Microsoft-HTTPAPI/2.0$0D$0ADate: Sat, 02 Mar 2019 01:50:54 GMT$0D$0AConnection: close$0D$0AContent-Length: 311$0D$0A$0D$0A<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.o
No matter how I format the headers any thoughts or help would be greatly appreciated.