PURPOSE
Proxies UNL Alerts issued from external vendor applications so they can be distributed in CAP format.
SETUP
- Copy configsample.inc.php to config.inc.php
- Configure CRON to run the
scripts/exportCAPAlert.php
every minute
Expectations
This application is designed to proxy an alert feed (such as an RSS feed) from a vendor alerting service and output that message in the Common Alerting Protocol (CAP). This is an XML format. It has been translated to JSON for easier integration with the UNLedu web framework.
The scripts that proxy the alert from the vendor are expected to be run at a regular basis, such as via the CRON utility. CRON does have a limitation being able to run something no more frequent than every minute. It may be desired to build some simple daemon script that fetches the content more frequently.
The UNLedu Framework is expected to regularly request the JavaScript file www/json/unlcap.js
and display the alert if one exists.
Automated Testing
Run automated tests via this command pyrus run-phpt tests