Skip to content
Snippets Groups Projects
Select Git revision
  • master
  • rave
  • ORIGINAL_2007
3 results

UNL_Alert

  • Clone with SSH
  • Clone with HTTPS
  • Forked from Digital Experience Group / UNL_Alert
    Up to date with the upstream repository.
    user avatar
    9864bb84
    History

    PURPOSE

    Proxies UNL Alerts issued from external vendor applications so they can be distributed in CAP format.

    SETUP

    1. Copy configsample.inc.php to config.inc.php
    2. 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