Publishing your alarms: RSS and web widgets

From Active911 Documentation Wiki
Jump to: navigation, search

Introduction

News feeds (RSS) and website widgets are ways of sharing alarm data, typically for publication on or via your website. Active911 makes it easy for you to publish recent alarm data from your website using an embeddable widget or a custom RSS feed. In order to protect privacy, this service is not enabled by default. You must log into your Active911 account and make a settings change.

If you embed the widget in your agency website, you will see something like this:


RSS Feed.png









What to do

To enable news feeds, click on the tab with your agency name and scroll to the option with the label "Enable news feeds and RSS?". Click Enable.



Once you have enabled data sharing, look for your newsfeed code under Account Details just below your agency address.

  • To access your RSS feed, use the URL: https://access.active911.com/interface/rss.php?CODE, replacing CODE with the code you wrote down
  • To embed a widget in your website showing recent alarms, paste the following lines into your website, substituting the code you wrote down for CODE:
<div id="a91_syndication"></div>
<script src="https://access.active911.com/interface/js.php?CODE" type="text/javascript"></script>
<script type="text/javascript"> try{a91.init(); } catch(e) {}  </script>

You can also pass options to control whether the full address is displayed, and whether the full call title is displayed. For example, the following code will show full addresses but will replace specific titles ("Code 3 Fall Injury") with generic ones ("Medical").

<div id="a91_syndication"></div>
<script src="https://access.active911.com/interface/js.php?CODE" type="text/javascript"></script>
<script type="text/javascript"> try{a91.init({'show_alarm_titles': false, 'show_alarm_addresses':  true}); } catch(e) {}  </script>