|
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-
-
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-
- <title>alarmdecoder Package — alarmdecoder documentation</title>
-
- <link rel="stylesheet" href="_static/default.css" type="text/css" />
- <link rel="stylesheet" href="_static/pygments.css" type="text/css" />
-
- <script type="text/javascript">
- var DOCUMENTATION_OPTIONS = {
- URL_ROOT: './',
- VERSION: '',
- COLLAPSE_INDEX: false,
- FILE_SUFFIX: '.html',
- HAS_SOURCE: true
- };
- </script>
- <script type="text/javascript" src="_static/jquery.js"></script>
- <script type="text/javascript" src="_static/underscore.js"></script>
- <script type="text/javascript" src="_static/doctools.js"></script>
- <link rel="top" title="alarmdecoder documentation" href="index.html" />
- <link rel="prev" title="Welcome to Alarm Decoder’s documentation!" href="index.html" />
- </head>
- <body>
- <div class="related">
- <h3>Navigation</h3>
- <ul>
- <li class="right" style="margin-right: 10px">
- <a href="genindex.html" title="General Index"
- accesskey="I">index</a></li>
- <li class="right" >
- <a href="py-modindex.html" title="Python Module Index"
- >modules</a> |</li>
- <li class="right" >
- <a href="index.html" title="Welcome to Alarm Decoder’s documentation!"
- accesskey="P">previous</a> |</li>
- <li><a href="index.html">alarmdecoder documentation</a> »</li>
- </ul>
- </div>
-
- <div class="document">
- <div class="documentwrapper">
- <div class="bodywrapper">
- <div class="body">
-
- <div class="section" id="alarmdecoder-package">
- <h1>alarmdecoder Package<a class="headerlink" href="#alarmdecoder-package" title="Permalink to this headline">¶</a></h1>
- <div class="section" id="module-alarmdecoder.decoder">
- <span id="decoder-module"></span><h2><tt class="xref py py-mod docutils literal"><span class="pre">decoder</span></tt> Module<a class="headerlink" href="#module-alarmdecoder.decoder" title="Permalink to this headline">¶</a></h2>
- <p>Provides the main AlarmDecoder class.</p>
- <dl class="class">
- <dt id="alarmdecoder.decoder.AlarmDecoder">
- <em class="property">class </em><tt class="descclassname">alarmdecoder.decoder.</tt><tt class="descname">AlarmDecoder</tt><big>(</big><em>device</em><big>)</big><a class="reference internal" href="_modules/alarmdecoder/decoder.html#AlarmDecoder"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#alarmdecoder.decoder.AlarmDecoder" title="Permalink to this definition">¶</a></dt>
- <dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">object</span></tt></p>
- <p>High-level wrapper around <a class="reference external" href="http://www.alarmdecoder.com">AlarmDecoder</a> (AD2) devices.</p>
- <dl class="attribute">
- <dt id="alarmdecoder.decoder.AlarmDecoder.on_arm">
- <tt class="descname">on_arm</tt><a class="headerlink" href="#alarmdecoder.decoder.AlarmDecoder.on_arm" title="Permalink to this definition">¶</a></dt>
- <dd><p>This event is called when the panel is armed.</p>
- <p><strong>Callback definition:</strong> <em>def callback(device)</em></p>
- </dd></dl>
-
- <dl class="attribute">
- <dt id="alarmdecoder.decoder.AlarmDecoder.on_disarm">
- <tt class="descname">on_disarm</tt><a class="headerlink" href="#alarmdecoder.decoder.AlarmDecoder.on_disarm" title="Permalink to this definition">¶</a></dt>
- <dd><p>This event is called when the panel is disarmed.</p>
- <p><strong>Callback definition:</strong> <em>def callback(device)</em></p>
- </dd></dl>
-
- <dl class="attribute">
- <dt id="alarmdecoder.decoder.AlarmDecoder.on_power_changed">
- <tt class="descname">on_power_changed</tt><a class="headerlink" href="#alarmdecoder.decoder.AlarmDecoder.on_power_changed" title="Permalink to this definition">¶</a></dt>
- <dd><p>This event is called when panel power switches between AC and DC.</p>
- <p><strong>Callback definition:</strong> <em>def callback(device, status)</em></p>
- </dd></dl>
-
- <dl class="attribute">
- <dt id="alarmdecoder.decoder.AlarmDecoder.on_alarm">
- <tt class="descname">on_alarm</tt><a class="headerlink" href="#alarmdecoder.decoder.AlarmDecoder.on_alarm" title="Permalink to this definition">¶</a></dt>
- <dd><p>This event is called when the alarm is triggered.</p>
- <p><strong>Callback definition:</strong> <em>def callback(device, zone)</em></p>
- </dd></dl>
-
- <dl class="attribute">
- <dt id="alarmdecoder.decoder.AlarmDecoder.on_alarm_restored">
- <tt class="descname">on_alarm_restored</tt><a class="headerlink" href="#alarmdecoder.decoder.AlarmDecoder.on_alarm_restored" title="Permalink to this definition">¶</a></dt>
- <dd><p>This event is called when the alarm stops sounding.</p>
- <p><strong>Callback definition:</strong> <em>def callback(device, zone)</em></p>
- </dd></dl>
-
- <dl class="attribute">
- <dt id="alarmdecoder.decoder.AlarmDecoder.on_fire">
- <tt class="descname">on_fire</tt><a class="headerlink" href="#alarmdecoder.decoder.AlarmDecoder.on_fire" title="Permalink to this definition">¶</a></dt>
- <dd><p>This event is called when a fire is detected.</p>
- <p><strong>Callback definition:</strong> <em>def callback(device, status)</em></p>
- </dd></dl>
-
- <dl class="attribute">
- <dt id="alarmdecoder.decoder.AlarmDecoder.on_bypass">
- <tt class="descname">on_bypass</tt><a class="headerlink" href="#alarmdecoder.decoder.AlarmDecoder.on_bypass" title="Permalink to this definition">¶</a></dt>
- <dd><p>This event is called when a zone is bypassed.</p>
- <p><strong>Callback definition:</strong> <em>def callback(device, status)</em></p>
- </dd></dl>
-
- <dl class="attribute">
- <dt id="alarmdecoder.decoder.AlarmDecoder.on_boot">
- <tt class="descname">on_boot</tt><a class="headerlink" href="#alarmdecoder.decoder.AlarmDecoder.on_boot" title="Permalink to this definition">¶</a></dt>
- <dd><p>This event is called when the device finishes booting.</p>
- <p><strong>Callback definition:</strong> <em>def callback(device)</em></p>
- </dd></dl>
-
- <dl class="attribute">
- <dt id="alarmdecoder.decoder.AlarmDecoder.on_config_received">
- <tt class="descname">on_config_received</tt><a class="headerlink" href="#alarmdecoder.decoder.AlarmDecoder.on_config_received" title="Permalink to this definition">¶</a></dt>
- <dd><p>This event is called when the device receives its configuration.</p>
- <p><strong>Callback definition:</strong> <em>def callback(device)</em></p>
- </dd></dl>
-
- <dl class="attribute">
- <dt id="alarmdecoder.decoder.AlarmDecoder.on_zone_fault">
- <tt class="descname">on_zone_fault</tt><a class="headerlink" href="#alarmdecoder.decoder.AlarmDecoder.on_zone_fault" title="Permalink to this definition">¶</a></dt>
- <dd><p>This event is called when <a class="reference internal" href="#alarmdecoder.zonetracking.Zonetracker" title="alarmdecoder.zonetracking.Zonetracker"><tt class="xref py py-class docutils literal"><span class="pre">Zonetracker</span></tt></a> detects a zone fault.</p>
- <p><strong>Callback definition:</strong> <em>def callback(device, zone)</em></p>
- </dd></dl>
-
- <dl class="attribute">
- <dt id="alarmdecoder.decoder.AlarmDecoder.on_zone_restore">
- <tt class="descname">on_zone_restore</tt><a class="headerlink" href="#alarmdecoder.decoder.AlarmDecoder.on_zone_restore" title="Permalink to this definition">¶</a></dt>
- <dd><p>This event is called when <a class="reference internal" href="#alarmdecoder.zonetracking.Zonetracker" title="alarmdecoder.zonetracking.Zonetracker"><tt class="xref py py-class docutils literal"><span class="pre">Zonetracker</span></tt></a> detects that a fault is restored.</p>
- <p><strong>Callback definition:</strong> <em>def callback(device, zone)</em></p>
- </dd></dl>
-
- <dl class="attribute">
- <dt id="alarmdecoder.decoder.AlarmDecoder.on_low_battery">
- <tt class="descname">on_low_battery</tt><a class="headerlink" href="#alarmdecoder.decoder.AlarmDecoder.on_low_battery" title="Permalink to this definition">¶</a></dt>
- <dd><p>This event is called when the device detects a low battery.</p>
- <p><strong>Callback definition:</strong> <em>def callback(device, status)</em></p>
- </dd></dl>
-
- <dl class="attribute">
- <dt id="alarmdecoder.decoder.AlarmDecoder.on_panic">
- <tt class="descname">on_panic</tt><a class="headerlink" href="#alarmdecoder.decoder.AlarmDecoder.on_panic" title="Permalink to this definition">¶</a></dt>
- <dd><p>This event is called when the device detects a panic.</p>
- <p><strong>Callback definition:</strong> <em>def callback(device, status)</em></p>
- </dd></dl>
-
- <dl class="attribute">
- <dt id="alarmdecoder.decoder.AlarmDecoder.on_relay_changed">
- <tt class="descname">on_relay_changed</tt><a class="headerlink" href="#alarmdecoder.decoder.AlarmDecoder.on_relay_changed" title="Permalink to this definition">¶</a></dt>
- <dd><p>This event is called when a relay is opened or closed on an expander board.</p>
- <p><strong>Callback definition:</strong> <em>def callback(device, message)</em></p>
- </dd></dl>
-
- <dl class="attribute">
- <dt id="alarmdecoder.decoder.AlarmDecoder.on_message">
- <tt class="descname">on_message</tt><a class="headerlink" href="#alarmdecoder.decoder.AlarmDecoder.on_message" title="Permalink to this definition">¶</a></dt>
- <dd><p>This event is called when standard panel <a class="reference internal" href="#alarmdecoder.messages.Message" title="alarmdecoder.messages.Message"><tt class="xref py py-class docutils literal"><span class="pre">Message</span></tt></a> is received.</p>
- <p><strong>Callback definition:</strong> <em>def callback(device, message)</em></p>
- </dd></dl>
-
- <dl class="attribute">
- <dt id="alarmdecoder.decoder.AlarmDecoder.on_expander_message">
- <tt class="descname">on_expander_message</tt><a class="headerlink" href="#alarmdecoder.decoder.AlarmDecoder.on_expander_message" title="Permalink to this definition">¶</a></dt>
- <dd><p>This event is called when an <a class="reference internal" href="#alarmdecoder.messages.ExpanderMessage" title="alarmdecoder.messages.ExpanderMessage"><tt class="xref py py-class docutils literal"><span class="pre">ExpanderMessage</span></tt></a> is received.</p>
- <p><strong>Callback definition:</strong> <em>def callback(device, message)</em></p>
- </dd></dl>
-
- <dl class="attribute">
- <dt id="alarmdecoder.decoder.AlarmDecoder.on_lrr_message">
- <tt class="descname">on_lrr_message</tt><a class="headerlink" href="#alarmdecoder.decoder.AlarmDecoder.on_lrr_message" title="Permalink to this definition">¶</a></dt>
- <dd><p>This event is called when an <a class="reference internal" href="#alarmdecoder.messages.LRRMessage" title="alarmdecoder.messages.LRRMessage"><tt class="xref py py-class docutils literal"><span class="pre">LRRMessage</span></tt></a> is received.</p>
- <p><strong>Callback definition:</strong> <em>def callback(device, message)</em></p>
- </dd></dl>
-
- <dl class="attribute">
- <dt id="alarmdecoder.decoder.AlarmDecoder.on_rfx_message">
- <tt class="descname">on_rfx_message</tt><a class="headerlink" href="#alarmdecoder.decoder.AlarmDecoder.on_rfx_message" title="Permalink to this definition">¶</a></dt>
- <dd><p>This event is called when an <a class="reference internal" href="#alarmdecoder.messages.RFMessage" title="alarmdecoder.messages.RFMessage"><tt class="xref py py-class docutils literal"><span class="pre">RFMessage</span></tt></a> is received.</p>
- <p><strong>Callback definition:</strong> <em>def callback(device, message)</em></p>
- </dd></dl>
-
- <dl class="attribute">
- <dt id="alarmdecoder.decoder.AlarmDecoder.on_sending_received">
- <tt class="descname">on_sending_received</tt><a class="headerlink" href="#alarmdecoder.decoder.AlarmDecoder.on_sending_received" title="Permalink to this definition">¶</a></dt>
- <dd><p>This event is called when a !Sending.done message is received from the AlarmDecoder.</p>
- <p><strong>Callback definition:</strong> <em>def callback(device, status, message)</em></p>
- </dd></dl>
-
- <dl class="attribute">
- <dt id="alarmdecoder.decoder.AlarmDecoder.on_open">
- <tt class="descname">on_open</tt><a class="headerlink" href="#alarmdecoder.decoder.AlarmDecoder.on_open" title="Permalink to this definition">¶</a></dt>
- <dd><p>This event is called when the device has been opened.</p>
- <p><strong>Callback definition:</strong> <em>def callback(device)</em></p>
- </dd></dl>
-
- <dl class="attribute">
- <dt id="alarmdecoder.decoder.AlarmDecoder.on_close">
- <tt class="descname">on_close</tt><a class="headerlink" href="#alarmdecoder.decoder.AlarmDecoder.on_close" title="Permalink to this definition">¶</a></dt>
- <dd><p>This event is called when the device has been closed.</p>
- <p><strong>Callback definition:</strong> <em>def callback(device)</em></p>
- </dd></dl>
-
- <dl class="attribute">
- <dt id="alarmdecoder.decoder.AlarmDecoder.on_read">
- <tt class="descname">on_read</tt><a class="headerlink" href="#alarmdecoder.decoder.AlarmDecoder.on_read" title="Permalink to this definition">¶</a></dt>
- <dd><p>This event is called when a line has been read from the device.</p>
- <p><strong>Callback definition:</strong> <em>def callback(device, data)</em></p>
- </dd></dl>
-
- <dl class="attribute">
- <dt id="alarmdecoder.decoder.AlarmDecoder.on_write">
- <tt class="descname">on_write</tt><a class="headerlink" href="#alarmdecoder.decoder.AlarmDecoder.on_write" title="Permalink to this definition">¶</a></dt>
- <dd><p>This event is called when data has been written to the device.</p>
- <p><strong>Callback definition:</strong> <em>def callback(device, data)</em></p>
- </dd></dl>
-
- <dl class="attribute">
- <dt id="alarmdecoder.decoder.AlarmDecoder.KEY_F1">
- <tt class="descname">KEY_F1</tt><em class="property"> = u'\x01\x01\x01'</em><a class="headerlink" href="#alarmdecoder.decoder.AlarmDecoder.KEY_F1" title="Permalink to this definition">¶</a></dt>
- <dd><p>Represents panel function key #1</p>
- </dd></dl>
-
- <dl class="attribute">
- <dt id="alarmdecoder.decoder.AlarmDecoder.KEY_F2">
- <tt class="descname">KEY_F2</tt><em class="property"> = u'\x02\x02\x02'</em><a class="headerlink" href="#alarmdecoder.decoder.AlarmDecoder.KEY_F2" title="Permalink to this definition">¶</a></dt>
- <dd><p>Represents panel function key #2</p>
- </dd></dl>
-
- <dl class="attribute">
- <dt id="alarmdecoder.decoder.AlarmDecoder.KEY_F3">
- <tt class="descname">KEY_F3</tt><em class="property"> = u'\x03\x03\x03'</em><a class="headerlink" href="#alarmdecoder.decoder.AlarmDecoder.KEY_F3" title="Permalink to this definition">¶</a></dt>
- <dd><p>Represents panel function key #3</p>
- </dd></dl>
-
- <dl class="attribute">
- <dt id="alarmdecoder.decoder.AlarmDecoder.KEY_F4">
- <tt class="descname">KEY_F4</tt><em class="property"> = u'\x04\x04\x04'</em><a class="headerlink" href="#alarmdecoder.decoder.AlarmDecoder.KEY_F4" title="Permalink to this definition">¶</a></dt>
- <dd><p>Represents panel function key #4</p>
- </dd></dl>
-
- <dl class="attribute">
- <dt id="alarmdecoder.decoder.AlarmDecoder.KEY_PANIC">
- <tt class="descname">KEY_PANIC</tt><em class="property"> = u'\x05\x05\x05'</em><a class="headerlink" href="#alarmdecoder.decoder.AlarmDecoder.KEY_PANIC" title="Permalink to this definition">¶</a></dt>
- <dd><p>Represents a panic keypress</p>
- </dd></dl>
-
- <dl class="attribute">
- <dt id="alarmdecoder.decoder.AlarmDecoder.BATTERY_TIMEOUT">
- <tt class="descname">BATTERY_TIMEOUT</tt><em class="property"> = 30</em><a class="headerlink" href="#alarmdecoder.decoder.AlarmDecoder.BATTERY_TIMEOUT" title="Permalink to this definition">¶</a></dt>
- <dd><p>Default timeout (in seconds) before the battery status reverts.</p>
- </dd></dl>
-
- <dl class="attribute">
- <dt id="alarmdecoder.decoder.AlarmDecoder.FIRE_TIMEOUT">
- <tt class="descname">FIRE_TIMEOUT</tt><em class="property"> = 30</em><a class="headerlink" href="#alarmdecoder.decoder.AlarmDecoder.FIRE_TIMEOUT" title="Permalink to this definition">¶</a></dt>
- <dd><p>Default tTimeout (in seconds) before the fire status reverts.</p>
- </dd></dl>
-
- <dl class="attribute">
- <dt id="alarmdecoder.decoder.AlarmDecoder.address">
- <tt class="descname">address</tt><em class="property"> = 18</em><a class="headerlink" href="#alarmdecoder.decoder.AlarmDecoder.address" title="Permalink to this definition">¶</a></dt>
- <dd><p>The keypad address in use by the device.</p>
- </dd></dl>
-
- <dl class="attribute">
- <dt id="alarmdecoder.decoder.AlarmDecoder.configbits">
- <tt class="descname">configbits</tt><em class="property"> = 65280</em><a class="headerlink" href="#alarmdecoder.decoder.AlarmDecoder.configbits" title="Permalink to this definition">¶</a></dt>
- <dd><p>The configuration bits set on the device.</p>
- </dd></dl>
-
- <dl class="attribute">
- <dt id="alarmdecoder.decoder.AlarmDecoder.address_mask">
- <tt class="descname">address_mask</tt><em class="property"> = 4294967295</em><a class="headerlink" href="#alarmdecoder.decoder.AlarmDecoder.address_mask" title="Permalink to this definition">¶</a></dt>
- <dd><p>The address mask configured on the device.</p>
- </dd></dl>
-
- <dl class="attribute">
- <dt id="alarmdecoder.decoder.AlarmDecoder.emulate_zone">
- <tt class="descname">emulate_zone</tt><em class="property"> = [False, False, False, False, False]</em><a class="headerlink" href="#alarmdecoder.decoder.AlarmDecoder.emulate_zone" title="Permalink to this definition">¶</a></dt>
- <dd><p>List containing the devices zone emulation status.</p>
- </dd></dl>
-
- <dl class="attribute">
- <dt id="alarmdecoder.decoder.AlarmDecoder.emulate_relay">
- <tt class="descname">emulate_relay</tt><em class="property"> = [False, False, False, False]</em><a class="headerlink" href="#alarmdecoder.decoder.AlarmDecoder.emulate_relay" title="Permalink to this definition">¶</a></dt>
- <dd><p>List containing the devices relay emulation status.</p>
- </dd></dl>
-
- <dl class="attribute">
- <dt id="alarmdecoder.decoder.AlarmDecoder.emulate_lrr">
- <tt class="descname">emulate_lrr</tt><em class="property"> = False</em><a class="headerlink" href="#alarmdecoder.decoder.AlarmDecoder.emulate_lrr" title="Permalink to this definition">¶</a></dt>
- <dd><p>The status of the devices LRR emulation.</p>
- </dd></dl>
-
- <dl class="attribute">
- <dt id="alarmdecoder.decoder.AlarmDecoder.deduplicate">
- <tt class="descname">deduplicate</tt><em class="property"> = False</em><a class="headerlink" href="#alarmdecoder.decoder.AlarmDecoder.deduplicate" title="Permalink to this definition">¶</a></dt>
- <dd><p>The status of message deduplication as configured on the device.</p>
- </dd></dl>
-
- <dl class="attribute">
- <dt id="alarmdecoder.decoder.AlarmDecoder.mode">
- <tt class="descname">mode</tt><em class="property"> = 0</em><a class="headerlink" href="#alarmdecoder.decoder.AlarmDecoder.mode" title="Permalink to this definition">¶</a></dt>
- <dd><p>The panel mode that the AlarmDecoder is in. Currently supports ADEMCO and DSC.</p>
- </dd></dl>
-
- <dl class="attribute">
- <dt id="alarmdecoder.decoder.AlarmDecoder.id">
- <tt class="descname">id</tt><a class="reference internal" href="_modules/alarmdecoder/decoder.html#AlarmDecoder.id"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#alarmdecoder.decoder.AlarmDecoder.id" title="Permalink to this definition">¶</a></dt>
- <dd><p>The ID of the <a class="reference external" href="http://www.alarmdecoder.com">AlarmDecoder</a> device.</p>
- <table class="docutils field-list" frame="void" rules="none">
- <col class="field-name" />
- <col class="field-body" />
- <tbody valign="top">
- <tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">identification string for the device</td>
- </tr>
- </tbody>
- </table>
- </dd></dl>
-
- <dl class="attribute">
- <dt id="alarmdecoder.decoder.AlarmDecoder.battery_timeout">
- <tt class="descname">battery_timeout</tt><a class="reference internal" href="_modules/alarmdecoder/decoder.html#AlarmDecoder.battery_timeout"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#alarmdecoder.decoder.AlarmDecoder.battery_timeout" title="Permalink to this definition">¶</a></dt>
- <dd><p>Retrieves the timeout for restoring the battery status, in seconds.</p>
- <table class="docutils field-list" frame="void" rules="none">
- <col class="field-name" />
- <col class="field-body" />
- <tbody valign="top">
- <tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">battery status timeout</td>
- </tr>
- </tbody>
- </table>
- </dd></dl>
-
- <dl class="attribute">
- <dt id="alarmdecoder.decoder.AlarmDecoder.fire_timeout">
- <tt class="descname">fire_timeout</tt><a class="reference internal" href="_modules/alarmdecoder/decoder.html#AlarmDecoder.fire_timeout"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#alarmdecoder.decoder.AlarmDecoder.fire_timeout" title="Permalink to this definition">¶</a></dt>
- <dd><p>Retrieves the timeout for restoring the fire status, in seconds.</p>
- <table class="docutils field-list" frame="void" rules="none">
- <col class="field-name" />
- <col class="field-body" />
- <tbody valign="top">
- <tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">fire status timeout</td>
- </tr>
- </tbody>
- </table>
- </dd></dl>
-
- <dl class="method">
- <dt id="alarmdecoder.decoder.AlarmDecoder.open">
- <tt class="descname">open</tt><big>(</big><em>baudrate=None</em>, <em>no_reader_thread=False</em><big>)</big><a class="reference internal" href="_modules/alarmdecoder/decoder.html#AlarmDecoder.open"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#alarmdecoder.decoder.AlarmDecoder.open" title="Permalink to this definition">¶</a></dt>
- <dd><p>Opens the device.</p>
- <table class="docutils field-list" frame="void" rules="none">
- <col class="field-name" />
- <col class="field-body" />
- <tbody valign="top">
- <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
- <li><strong>baudrate</strong> (<em>int</em>) – baudrate used for the device. Defaults to the lower-level device default.</li>
- <li><strong>no_reader_thread</strong> (<em>bool</em>) – Specifies whether or not the automatic reader
- thread should be started.</li>
- </ul>
- </td>
- </tr>
- </tbody>
- </table>
- </dd></dl>
-
- <dl class="method">
- <dt id="alarmdecoder.decoder.AlarmDecoder.close">
- <tt class="descname">close</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/alarmdecoder/decoder.html#AlarmDecoder.close"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#alarmdecoder.decoder.AlarmDecoder.close" title="Permalink to this definition">¶</a></dt>
- <dd><p>Closes the device.</p>
- </dd></dl>
-
- <dl class="method">
- <dt id="alarmdecoder.decoder.AlarmDecoder.send">
- <tt class="descname">send</tt><big>(</big><em>data</em><big>)</big><a class="reference internal" href="_modules/alarmdecoder/decoder.html#AlarmDecoder.send"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#alarmdecoder.decoder.AlarmDecoder.send" title="Permalink to this definition">¶</a></dt>
- <dd><p>Sends data to the <a class="reference external" href="http://www.alarmdecoder.com">AlarmDecoder</a> device.</p>
- <table class="docutils field-list" frame="void" rules="none">
- <col class="field-name" />
- <col class="field-body" />
- <tbody valign="top">
- <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>data</strong> (<em>string</em>) – data to send</td>
- </tr>
- </tbody>
- </table>
- </dd></dl>
-
- <dl class="method">
- <dt id="alarmdecoder.decoder.AlarmDecoder.get_config">
- <tt class="descname">get_config</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/alarmdecoder/decoder.html#AlarmDecoder.get_config"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#alarmdecoder.decoder.AlarmDecoder.get_config" title="Permalink to this definition">¶</a></dt>
- <dd><p>Retrieves the configuration from the device. Called automatically by <tt class="xref py py-meth docutils literal"><span class="pre">_on_open()</span></tt>.</p>
- </dd></dl>
-
- <dl class="method">
- <dt id="alarmdecoder.decoder.AlarmDecoder.save_config">
- <tt class="descname">save_config</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/alarmdecoder/decoder.html#AlarmDecoder.save_config"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#alarmdecoder.decoder.AlarmDecoder.save_config" title="Permalink to this definition">¶</a></dt>
- <dd><p>Sets configuration entries on the device.</p>
- </dd></dl>
-
- <dl class="method">
- <dt id="alarmdecoder.decoder.AlarmDecoder.reboot">
- <tt class="descname">reboot</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/alarmdecoder/decoder.html#AlarmDecoder.reboot"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#alarmdecoder.decoder.AlarmDecoder.reboot" title="Permalink to this definition">¶</a></dt>
- <dd><p>Reboots the device.</p>
- </dd></dl>
-
- <dl class="method">
- <dt id="alarmdecoder.decoder.AlarmDecoder.fault_zone">
- <tt class="descname">fault_zone</tt><big>(</big><em>zone</em>, <em>simulate_wire_problem=False</em><big>)</big><a class="reference internal" href="_modules/alarmdecoder/decoder.html#AlarmDecoder.fault_zone"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#alarmdecoder.decoder.AlarmDecoder.fault_zone" title="Permalink to this definition">¶</a></dt>
- <dd><p>Faults a zone if we are emulating a zone expander.</p>
- <table class="docutils field-list" frame="void" rules="none">
- <col class="field-name" />
- <col class="field-body" />
- <tbody valign="top">
- <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
- <li><strong>zone</strong> (<em>int</em>) – zone to fault</li>
- <li><strong>simulate_wire_problem</strong> (<em>bool</em>) – Whether or not to simulate a wire fault</li>
- </ul>
- </td>
- </tr>
- </tbody>
- </table>
- </dd></dl>
-
- <dl class="method">
- <dt id="alarmdecoder.decoder.AlarmDecoder.clear_zone">
- <tt class="descname">clear_zone</tt><big>(</big><em>zone</em><big>)</big><a class="reference internal" href="_modules/alarmdecoder/decoder.html#AlarmDecoder.clear_zone"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#alarmdecoder.decoder.AlarmDecoder.clear_zone" title="Permalink to this definition">¶</a></dt>
- <dd><p>Clears a zone if we are emulating a zone expander.</p>
- <table class="docutils field-list" frame="void" rules="none">
- <col class="field-name" />
- <col class="field-body" />
- <tbody valign="top">
- <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>zone</strong> (<em>int</em>) – zone to clear</td>
- </tr>
- </tbody>
- </table>
- </dd></dl>
-
- </dd></dl>
-
- </div>
- <div class="section" id="module-alarmdecoder.devices">
- <span id="devices-module"></span><h2><tt class="xref py py-mod docutils literal"><span class="pre">devices</span></tt> Module<a class="headerlink" href="#module-alarmdecoder.devices" title="Permalink to this headline">¶</a></h2>
- <p>This module contains different types of devices belonging to the <a class="reference external" href="http://www.alarmdecoder.com">AlarmDecoder</a> (AD2) family.</p>
- <ul class="simple">
- <li><a class="reference internal" href="#alarmdecoder.devices.USBDevice" title="alarmdecoder.devices.USBDevice"><tt class="xref py py-class docutils literal"><span class="pre">USBDevice</span></tt></a>: Interfaces with the <a class="reference external" href="http://www.alarmdecoder.com">AD2USB</a> device.</li>
- <li><a class="reference internal" href="#alarmdecoder.devices.SerialDevice" title="alarmdecoder.devices.SerialDevice"><tt class="xref py py-class docutils literal"><span class="pre">SerialDevice</span></tt></a>: Interfaces with the <a class="reference external" href="http://www.alarmdecoder.com">AD2USB</a>, <a class="reference external" href="http://www.alarmdecoder.com">AD2SERIAL</a> or <a class="reference external" href="http://www.alarmdecoder.com">AD2PI</a>.</li>
- <li><a class="reference internal" href="#alarmdecoder.devices.SocketDevice" title="alarmdecoder.devices.SocketDevice"><tt class="xref py py-class docutils literal"><span class="pre">SocketDevice</span></tt></a>: Interfaces with devices exposed through <a class="reference external" href="http://github.com/nutechsoftware/ser2sock">ser2sock</a> or another IP to Serial solution.
- Also supports SSL if using <a class="reference external" href="http://github.com/nutechsoftware/ser2sock">ser2sock</a>.</li>
- </ul>
- <dl class="class">
- <dt id="alarmdecoder.devices.Device">
- <em class="property">class </em><tt class="descclassname">alarmdecoder.devices.</tt><tt class="descname">Device</tt><a class="reference internal" href="_modules/alarmdecoder/devices.html#Device"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#alarmdecoder.devices.Device" title="Permalink to this definition">¶</a></dt>
- <dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">object</span></tt></p>
- <p>Base class for all <a class="reference external" href="http://www.alarmdecoder.com">AlarmDecoder</a> (AD2) device types.</p>
- <dl class="attribute">
- <dt id="alarmdecoder.devices.Device.on_open">
- <tt class="descname">on_open</tt><a class="headerlink" href="#alarmdecoder.devices.Device.on_open" title="Permalink to this definition">¶</a></dt>
- <dd><p>This event is called when the device has been opened.</p>
- <p><strong>Callback definition:</strong> <em>def callback(device)</em></p>
- </dd></dl>
-
- <dl class="attribute">
- <dt id="alarmdecoder.devices.Device.on_close">
- <tt class="descname">on_close</tt><a class="headerlink" href="#alarmdecoder.devices.Device.on_close" title="Permalink to this definition">¶</a></dt>
- <dd><p>This event is called when the device has been closed.</p>
- <p><strong>Callback definition:</strong> def callback(device)*</p>
- </dd></dl>
-
- <dl class="attribute">
- <dt id="alarmdecoder.devices.Device.on_read">
- <tt class="descname">on_read</tt><a class="headerlink" href="#alarmdecoder.devices.Device.on_read" title="Permalink to this definition">¶</a></dt>
- <dd><p>This event is called when a line has been read from the device.</p>
- <p><strong>Callback definition:</strong> def callback(device, data)*</p>
- </dd></dl>
-
- <dl class="attribute">
- <dt id="alarmdecoder.devices.Device.on_write">
- <tt class="descname">on_write</tt><a class="headerlink" href="#alarmdecoder.devices.Device.on_write" title="Permalink to this definition">¶</a></dt>
- <dd><p>This event is called when data has been written to the device.</p>
- <p><strong>Callback definition:</strong> def callback(device, data)*</p>
- </dd></dl>
-
- <dl class="attribute">
- <dt id="alarmdecoder.devices.Device.id">
- <tt class="descname">id</tt><a class="reference internal" href="_modules/alarmdecoder/devices.html#Device.id"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#alarmdecoder.devices.Device.id" title="Permalink to this definition">¶</a></dt>
- <dd><p>Retrieve the device ID.</p>
- <table class="docutils field-list" frame="void" rules="none">
- <col class="field-name" />
- <col class="field-body" />
- <tbody valign="top">
- <tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">identification string for the device</td>
- </tr>
- </tbody>
- </table>
- </dd></dl>
-
- <dl class="method">
- <dt id="alarmdecoder.devices.Device.is_reader_alive">
- <tt class="descname">is_reader_alive</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/alarmdecoder/devices.html#Device.is_reader_alive"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#alarmdecoder.devices.Device.is_reader_alive" title="Permalink to this definition">¶</a></dt>
- <dd><p>Indicates whether or not the reader thread is alive.</p>
- <table class="docutils field-list" frame="void" rules="none">
- <col class="field-name" />
- <col class="field-body" />
- <tbody valign="top">
- <tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">whether or not the reader thread is alive</td>
- </tr>
- </tbody>
- </table>
- </dd></dl>
-
- <dl class="method">
- <dt id="alarmdecoder.devices.Device.stop_reader">
- <tt class="descname">stop_reader</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/alarmdecoder/devices.html#Device.stop_reader"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#alarmdecoder.devices.Device.stop_reader" title="Permalink to this definition">¶</a></dt>
- <dd><p>Stops the reader thread.</p>
- </dd></dl>
-
- <dl class="method">
- <dt id="alarmdecoder.devices.Device.close">
- <tt class="descname">close</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/alarmdecoder/devices.html#Device.close"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#alarmdecoder.devices.Device.close" title="Permalink to this definition">¶</a></dt>
- <dd><p>Closes the device.</p>
- </dd></dl>
-
- <dl class="class">
- <dt id="alarmdecoder.devices.Device.ReadThread">
- <em class="property">class </em><tt class="descname">ReadThread</tt><big>(</big><em>device</em><big>)</big><a class="reference internal" href="_modules/alarmdecoder/devices.html#Device.ReadThread"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#alarmdecoder.devices.Device.ReadThread" title="Permalink to this definition">¶</a></dt>
- <dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">threading.Thread</span></tt></p>
- <p>Reader thread which processes messages from the device.</p>
- <dl class="attribute">
- <dt id="alarmdecoder.devices.Device.ReadThread.READ_TIMEOUT">
- <tt class="descname">READ_TIMEOUT</tt><em class="property"> = 10</em><a class="headerlink" href="#alarmdecoder.devices.Device.ReadThread.READ_TIMEOUT" title="Permalink to this definition">¶</a></dt>
- <dd><p>Timeout for the reader thread.</p>
- </dd></dl>
-
- <dl class="method">
- <dt id="alarmdecoder.devices.Device.ReadThread.stop">
- <tt class="descname">stop</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/alarmdecoder/devices.html#Device.ReadThread.stop"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#alarmdecoder.devices.Device.ReadThread.stop" title="Permalink to this definition">¶</a></dt>
- <dd><p>Stops the running thread.</p>
- </dd></dl>
-
- <dl class="method">
- <dt id="alarmdecoder.devices.Device.ReadThread.run">
- <tt class="descname">run</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/alarmdecoder/devices.html#Device.ReadThread.run"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#alarmdecoder.devices.Device.ReadThread.run" title="Permalink to this definition">¶</a></dt>
- <dd><p>The actual read process.</p>
- </dd></dl>
-
- </dd></dl>
-
- </dd></dl>
-
- <dl class="class">
- <dt id="alarmdecoder.devices.USBDevice">
- <em class="property">class </em><tt class="descclassname">alarmdecoder.devices.</tt><tt class="descname">USBDevice</tt><big>(</big><em>interface=0</em>, <em>vid=None</em>, <em>pid=None</em><big>)</big><a class="reference internal" href="_modules/alarmdecoder/devices.html#USBDevice"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#alarmdecoder.devices.USBDevice" title="Permalink to this definition">¶</a></dt>
- <dd><p>Bases: <a class="reference internal" href="#alarmdecoder.devices.Device" title="alarmdecoder.devices.Device"><tt class="xref py py-class docutils literal"><span class="pre">alarmdecoder.devices.Device</span></tt></a></p>
- <p><a class="reference external" href="http://www.alarmdecoder.com">AD2USB</a> device utilizing PyFTDI’s interface.</p>
- <dl class="attribute">
- <dt id="alarmdecoder.devices.USBDevice.PRODUCT_IDS">
- <tt class="descname">PRODUCT_IDS</tt><em class="property"> = ((1027, 24577), (1027, 24597))</em><a class="headerlink" href="#alarmdecoder.devices.USBDevice.PRODUCT_IDS" title="Permalink to this definition">¶</a></dt>
- <dd><p>List of Vendor and Product IDs used to recognize <a class="reference external" href="http://www.alarmdecoder.com">AD2USB</a> devices.</p>
- </dd></dl>
-
- <dl class="attribute">
- <dt id="alarmdecoder.devices.USBDevice.DEFAULT_VENDOR_ID">
- <tt class="descname">DEFAULT_VENDOR_ID</tt><em class="property"> = 1027</em><a class="headerlink" href="#alarmdecoder.devices.USBDevice.DEFAULT_VENDOR_ID" title="Permalink to this definition">¶</a></dt>
- <dd><p>Default Vendor ID used to recognize <a class="reference external" href="http://www.alarmdecoder.com">AD2USB</a> devices.</p>
- </dd></dl>
-
- <dl class="attribute">
- <dt id="alarmdecoder.devices.USBDevice.DEFAULT_PRODUCT_ID">
- <tt class="descname">DEFAULT_PRODUCT_ID</tt><em class="property"> = 24577</em><a class="headerlink" href="#alarmdecoder.devices.USBDevice.DEFAULT_PRODUCT_ID" title="Permalink to this definition">¶</a></dt>
- <dd><p>Default Product ID used to recognize <a class="reference external" href="http://www.alarmdecoder.com">AD2USB</a> devices.</p>
- </dd></dl>
-
- <dl class="attribute">
- <dt id="alarmdecoder.devices.USBDevice.FTDI_VENDOR_ID">
- <tt class="descname">FTDI_VENDOR_ID</tt><em class="property"> = 1027</em><a class="headerlink" href="#alarmdecoder.devices.USBDevice.FTDI_VENDOR_ID" title="Permalink to this definition">¶</a></dt>
- <dd><p>DEPRECATED: Vendor ID used to recognize <a class="reference external" href="http://www.alarmdecoder.com">AD2USB</a> devices.</p>
- </dd></dl>
-
- <dl class="attribute">
- <dt id="alarmdecoder.devices.USBDevice.FTDI_PRODUCT_ID">
- <tt class="descname">FTDI_PRODUCT_ID</tt><em class="property"> = 24577</em><a class="headerlink" href="#alarmdecoder.devices.USBDevice.FTDI_PRODUCT_ID" title="Permalink to this definition">¶</a></dt>
- <dd><p>DEPRECATED: Product ID used to recognize <a class="reference external" href="http://www.alarmdecoder.com">AD2USB</a> devices.</p>
- </dd></dl>
-
- <dl class="attribute">
- <dt id="alarmdecoder.devices.USBDevice.BAUDRATE">
- <tt class="descname">BAUDRATE</tt><em class="property"> = 115200</em><a class="headerlink" href="#alarmdecoder.devices.USBDevice.BAUDRATE" title="Permalink to this definition">¶</a></dt>
- <dd><p>Default baudrate for <a class="reference external" href="http://www.alarmdecoder.com">AD2USB</a> devices.</p>
- </dd></dl>
-
- <dl class="classmethod">
- <dt id="alarmdecoder.devices.USBDevice.find_all">
- <em class="property">classmethod </em><tt class="descname">find_all</tt><big>(</big><em>vid=None</em>, <em>pid=None</em><big>)</big><a class="reference internal" href="_modules/alarmdecoder/devices.html#USBDevice.find_all"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#alarmdecoder.devices.USBDevice.find_all" title="Permalink to this definition">¶</a></dt>
- <dd><p>Returns all FTDI devices matching our vendor and product IDs.</p>
- <table class="docutils field-list" frame="void" rules="none">
- <col class="field-name" />
- <col class="field-body" />
- <tbody valign="top">
- <tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">list of devices</td>
- </tr>
- <tr class="field-even field"><th class="field-name">Raises :</th><td class="field-body"><a class="reference internal" href="#alarmdecoder.util.CommError" title="alarmdecoder.util.CommError"><tt class="xref py py-class docutils literal"><span class="pre">CommError</span></tt></a></td>
- </tr>
- </tbody>
- </table>
- </dd></dl>
-
- <dl class="classmethod">
- <dt id="alarmdecoder.devices.USBDevice.devices">
- <em class="property">classmethod </em><tt class="descname">devices</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/alarmdecoder/devices.html#USBDevice.devices"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#alarmdecoder.devices.USBDevice.devices" title="Permalink to this definition">¶</a></dt>
- <dd><p>Returns a cached list of <a class="reference external" href="http://www.alarmdecoder.com">AD2USB</a> devices located on the system.</p>
- <table class="docutils field-list" frame="void" rules="none">
- <col class="field-name" />
- <col class="field-body" />
- <tbody valign="top">
- <tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">cached list of devices found</td>
- </tr>
- </tbody>
- </table>
- </dd></dl>
-
- <dl class="classmethod">
- <dt id="alarmdecoder.devices.USBDevice.find">
- <em class="property">classmethod </em><tt class="descname">find</tt><big>(</big><em>device=None</em><big>)</big><a class="reference internal" href="_modules/alarmdecoder/devices.html#USBDevice.find"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#alarmdecoder.devices.USBDevice.find" title="Permalink to this definition">¶</a></dt>
- <dd><p>Factory method that returns the requested <a class="reference internal" href="#alarmdecoder.devices.USBDevice" title="alarmdecoder.devices.USBDevice"><tt class="xref py py-class docutils literal"><span class="pre">USBDevice</span></tt></a> device, or the
- first device.</p>
- <table class="docutils field-list" frame="void" rules="none">
- <col class="field-name" />
- <col class="field-body" />
- <tbody valign="top">
- <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>device</strong> (<em>tuple</em>) – Tuple describing the USB device to open, as returned
- by find_all().</td>
- </tr>
- <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><a class="reference internal" href="#alarmdecoder.devices.USBDevice" title="alarmdecoder.devices.USBDevice"><tt class="xref py py-class docutils literal"><span class="pre">USBDevice</span></tt></a> object utilizing the specified device</td>
- </tr>
- <tr class="field-odd field"><th class="field-name">Raises :</th><td class="field-body"><a class="reference internal" href="#alarmdecoder.util.NoDeviceError" title="alarmdecoder.util.NoDeviceError"><tt class="xref py py-class docutils literal"><span class="pre">NoDeviceError</span></tt></a></td>
- </tr>
- </tbody>
- </table>
- </dd></dl>
-
- <dl class="classmethod">
- <dt id="alarmdecoder.devices.USBDevice.start_detection">
- <em class="property">classmethod </em><tt class="descname">start_detection</tt><big>(</big><em>on_attached=None</em>, <em>on_detached=None</em><big>)</big><a class="reference internal" href="_modules/alarmdecoder/devices.html#USBDevice.start_detection"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#alarmdecoder.devices.USBDevice.start_detection" title="Permalink to this definition">¶</a></dt>
- <dd><p>Starts the device detection thread.</p>
- <table class="docutils field-list" frame="void" rules="none">
- <col class="field-name" />
- <col class="field-body" />
- <tbody valign="top">
- <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
- <li><strong>on_attached</strong> (<em>function</em>) – function to be called when a device is attached <strong>Callback definition:</strong> <em>def callback(thread, device)</em></li>
- <li><strong>on_detached</strong> (<em>function</em>) – function to be called when a device is detached <strong>Callback definition:</strong> <em>def callback(thread, device)</em></li>
- </ul>
- </td>
- </tr>
- </tbody>
- </table>
- </dd></dl>
-
- <dl class="classmethod">
- <dt id="alarmdecoder.devices.USBDevice.stop_detection">
- <em class="property">classmethod </em><tt class="descname">stop_detection</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/alarmdecoder/devices.html#USBDevice.stop_detection"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#alarmdecoder.devices.USBDevice.stop_detection" title="Permalink to this definition">¶</a></dt>
- <dd><p>Stops the device detection thread.</p>
- </dd></dl>
-
- <dl class="attribute">
- <dt id="alarmdecoder.devices.USBDevice.serial_number">
- <tt class="descname">serial_number</tt><a class="reference internal" href="_modules/alarmdecoder/devices.html#USBDevice.serial_number"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#alarmdecoder.devices.USBDevice.serial_number" title="Permalink to this definition">¶</a></dt>
- <dd><p>Retrieves the serial number of the device.</p>
- <table class="docutils field-list" frame="void" rules="none">
- <col class="field-name" />
- <col class="field-body" />
- <tbody valign="top">
- <tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">serial number of the device</td>
- </tr>
- </tbody>
- </table>
- </dd></dl>
-
- <dl class="attribute">
- <dt id="alarmdecoder.devices.USBDevice.description">
- <tt class="descname">description</tt><a class="reference internal" href="_modules/alarmdecoder/devices.html#USBDevice.description"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#alarmdecoder.devices.USBDevice.description" title="Permalink to this definition">¶</a></dt>
- <dd><p>Retrieves the description of the device.</p>
- <table class="docutils field-list" frame="void" rules="none">
- <col class="field-name" />
- <col class="field-body" />
- <tbody valign="top">
- <tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">description of the device</td>
- </tr>
- </tbody>
- </table>
- </dd></dl>
-
- <dl class="attribute">
- <dt id="alarmdecoder.devices.USBDevice.interface">
- <tt class="descname">interface</tt><a class="reference internal" href="_modules/alarmdecoder/devices.html#USBDevice.interface"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#alarmdecoder.devices.USBDevice.interface" title="Permalink to this definition">¶</a></dt>
- <dd><p>Retrieves the interface used to connect to the device.</p>
- <table class="docutils field-list" frame="void" rules="none">
- <col class="field-name" />
- <col class="field-body" />
- <tbody valign="top">
- <tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">the interface used to connect to the device</td>
- </tr>
- </tbody>
- </table>
- </dd></dl>
-
- <dl class="method">
- <dt id="alarmdecoder.devices.USBDevice.open">
- <tt class="descname">open</tt><big>(</big><em>baudrate=115200</em>, <em>no_reader_thread=False</em><big>)</big><a class="reference internal" href="_modules/alarmdecoder/devices.html#USBDevice.open"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#alarmdecoder.devices.USBDevice.open" title="Permalink to this definition">¶</a></dt>
- <dd><p>Opens the device.</p>
- <table class="docutils field-list" frame="void" rules="none">
- <col class="field-name" />
- <col class="field-body" />
- <tbody valign="top">
- <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
- <li><strong>baudrate</strong> (<em>int</em>) – baudrate to use</li>
- <li><strong>no_reader_thread</strong> (<em>bool</em>) – whether or not to automatically start the
- reader thread.</li>
- </ul>
- </td>
- </tr>
- <tr class="field-even field"><th class="field-name">Raises :</th><td class="field-body"><p class="first last"><a class="reference internal" href="#alarmdecoder.util.NoDeviceError" title="alarmdecoder.util.NoDeviceError"><tt class="xref py py-class docutils literal"><span class="pre">NoDeviceError</span></tt></a></p>
- </td>
- </tr>
- </tbody>
- </table>
- </dd></dl>
-
- <dl class="method">
- <dt id="alarmdecoder.devices.USBDevice.close">
- <tt class="descname">close</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/alarmdecoder/devices.html#USBDevice.close"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#alarmdecoder.devices.USBDevice.close" title="Permalink to this definition">¶</a></dt>
- <dd><p>Closes the device.</p>
- </dd></dl>
-
- <dl class="method">
- <dt id="alarmdecoder.devices.USBDevice.fileno">
- <tt class="descname">fileno</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/alarmdecoder/devices.html#USBDevice.fileno"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#alarmdecoder.devices.USBDevice.fileno" title="Permalink to this definition">¶</a></dt>
- <dd></dd></dl>
-
- <dl class="method">
- <dt id="alarmdecoder.devices.USBDevice.write">
- <tt class="descname">write</tt><big>(</big><em>data</em><big>)</big><a class="reference internal" href="_modules/alarmdecoder/devices.html#USBDevice.write"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#alarmdecoder.devices.USBDevice.write" title="Permalink to this definition">¶</a></dt>
- <dd><p>Writes data to the device.</p>
- <table class="docutils field-list" frame="void" rules="none">
- <col class="field-name" />
- <col class="field-body" />
- <tbody valign="top">
- <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>data</strong> (<em>string</em>) – data to write</td>
- </tr>
- <tr class="field-even field"><th class="field-name">Raises :</th><td class="field-body"><a class="reference internal" href="#alarmdecoder.util.CommError" title="alarmdecoder.util.CommError"><tt class="xref py py-class docutils literal"><span class="pre">CommError</span></tt></a></td>
- </tr>
- </tbody>
- </table>
- </dd></dl>
-
- <dl class="method">
- <dt id="alarmdecoder.devices.USBDevice.read">
- <tt class="descname">read</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/alarmdecoder/devices.html#USBDevice.read"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#alarmdecoder.devices.USBDevice.read" title="Permalink to this definition">¶</a></dt>
- <dd><p>Reads a single character from the device.</p>
- <table class="docutils field-list" frame="void" rules="none">
- <col class="field-name" />
- <col class="field-body" />
- <tbody valign="top">
- <tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">character read from the device</td>
- </tr>
- <tr class="field-even field"><th class="field-name">Raises :</th><td class="field-body"><a class="reference internal" href="#alarmdecoder.util.CommError" title="alarmdecoder.util.CommError"><tt class="xref py py-class docutils literal"><span class="pre">CommError</span></tt></a></td>
- </tr>
- </tbody>
- </table>
- </dd></dl>
-
- <dl class="method">
- <dt id="alarmdecoder.devices.USBDevice.read_line">
- <tt class="descname">read_line</tt><big>(</big><em>timeout=0.0</em>, <em>purge_buffer=False</em><big>)</big><a class="reference internal" href="_modules/alarmdecoder/devices.html#USBDevice.read_line"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#alarmdecoder.devices.USBDevice.read_line" title="Permalink to this definition">¶</a></dt>
- <dd><p>Reads a line from the device.</p>
- <table class="docutils field-list" frame="void" rules="none">
- <col class="field-name" />
- <col class="field-body" />
- <tbody valign="top">
- <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
- <li><strong>timeout</strong> (<em>float</em>) – read timeout</li>
- <li><strong>purge_buffer</strong> (<em>bool</em>) – Indicates whether to purge the buffer prior to
- reading.</li>
- </ul>
- </td>
- </tr>
- <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first">line that was read</p>
- </td>
- </tr>
- <tr class="field-odd field"><th class="field-name">Raises :</th><td class="field-body"><p class="first last"><a class="reference internal" href="#alarmdecoder.util.CommError" title="alarmdecoder.util.CommError"><tt class="xref py py-class docutils literal"><span class="pre">CommError</span></tt></a>, <a class="reference internal" href="#alarmdecoder.util.TimeoutError" title="alarmdecoder.util.TimeoutError"><tt class="xref py py-class docutils literal"><span class="pre">TimeoutError</span></tt></a></p>
- </td>
- </tr>
- </tbody>
- </table>
- </dd></dl>
-
- <dl class="class">
- <dt id="alarmdecoder.devices.USBDevice.DetectThread">
- <em class="property">class </em><tt class="descname">DetectThread</tt><big>(</big><em>on_attached=None</em>, <em>on_detached=None</em><big>)</big><a class="reference internal" href="_modules/alarmdecoder/devices.html#USBDevice.DetectThread"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#alarmdecoder.devices.USBDevice.DetectThread" title="Permalink to this definition">¶</a></dt>
- <dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">threading.Thread</span></tt></p>
- <p>Thread that handles detection of added/removed devices.</p>
- <dl class="attribute">
- <dt id="alarmdecoder.devices.USBDevice.DetectThread.on_attached">
- <tt class="descname">on_attached</tt><a class="headerlink" href="#alarmdecoder.devices.USBDevice.DetectThread.on_attached" title="Permalink to this definition">¶</a></dt>
- <dd><p>This event is called when an <a class="reference external" href="http://www.alarmdecoder.com">AD2USB</a> device has been detected.</p>
- <p><strong>Callback definition:</strong> def callback(thread, device*</p>
- </dd></dl>
-
- <dl class="attribute">
- <dt id="alarmdecoder.devices.USBDevice.DetectThread.on_detached">
- <tt class="descname">on_detached</tt><a class="headerlink" href="#alarmdecoder.devices.USBDevice.DetectThread.on_detached" title="Permalink to this definition">¶</a></dt>
- <dd><p>This event is called when an <a class="reference external" href="http://www.alarmdecoder.com">AD2USB</a> device has been removed.</p>
- <p><strong>Callback definition:</strong> def callback(thread, device*</p>
- </dd></dl>
-
- <dl class="method">
- <dt id="alarmdecoder.devices.USBDevice.DetectThread.stop">
- <tt class="descname">stop</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/alarmdecoder/devices.html#USBDevice.DetectThread.stop"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#alarmdecoder.devices.USBDevice.DetectThread.stop" title="Permalink to this definition">¶</a></dt>
- <dd><p>Stops the thread.</p>
- </dd></dl>
-
- <dl class="method">
- <dt id="alarmdecoder.devices.USBDevice.DetectThread.run">
- <tt class="descname">run</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/alarmdecoder/devices.html#USBDevice.DetectThread.run"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#alarmdecoder.devices.USBDevice.DetectThread.run" title="Permalink to this definition">¶</a></dt>
- <dd><p>The actual detection process.</p>
- </dd></dl>
-
- </dd></dl>
-
- </dd></dl>
-
- <dl class="class">
- <dt id="alarmdecoder.devices.SerialDevice">
- <em class="property">class </em><tt class="descclassname">alarmdecoder.devices.</tt><tt class="descname">SerialDevice</tt><big>(</big><em>interface=None</em><big>)</big><a class="reference internal" href="_modules/alarmdecoder/devices.html#SerialDevice"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#alarmdecoder.devices.SerialDevice" title="Permalink to this definition">¶</a></dt>
- <dd><p>Bases: <a class="reference internal" href="#alarmdecoder.devices.Device" title="alarmdecoder.devices.Device"><tt class="xref py py-class docutils literal"><span class="pre">alarmdecoder.devices.Device</span></tt></a></p>
- <p><a class="reference external" href="http://www.alarmdecoder.com">AD2USB</a>, <a class="reference external" href="http://www.alarmdecoder.com">AD2SERIAL</a> or <a class="reference external" href="http://www.alarmdecoder.com">AD2PI</a> device utilizing the PySerial interface.</p>
- <dl class="attribute">
- <dt id="alarmdecoder.devices.SerialDevice.BAUDRATE">
- <tt class="descname">BAUDRATE</tt><em class="property"> = 19200</em><a class="headerlink" href="#alarmdecoder.devices.SerialDevice.BAUDRATE" title="Permalink to this definition">¶</a></dt>
- <dd><p>Default baudrate for Serial devices.</p>
- </dd></dl>
-
- <dl class="staticmethod">
- <dt id="alarmdecoder.devices.SerialDevice.find_all">
- <em class="property">static </em><tt class="descname">find_all</tt><big>(</big><em>pattern=None</em><big>)</big><a class="reference internal" href="_modules/alarmdecoder/devices.html#SerialDevice.find_all"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#alarmdecoder.devices.SerialDevice.find_all" title="Permalink to this definition">¶</a></dt>
- <dd><p>Returns all serial ports present.</p>
- <table class="docutils field-list" frame="void" rules="none">
- <col class="field-name" />
- <col class="field-body" />
- <tbody valign="top">
- <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>pattern</strong> (<em>string</em>) – pattern to search for when retrieving serial ports</td>
- </tr>
- <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">list of devices</td>
- </tr>
- <tr class="field-odd field"><th class="field-name">Raises :</th><td class="field-body"><a class="reference internal" href="#alarmdecoder.util.CommError" title="alarmdecoder.util.CommError"><tt class="xref py py-class docutils literal"><span class="pre">CommError</span></tt></a></td>
- </tr>
- </tbody>
- </table>
- </dd></dl>
-
- <dl class="attribute">
- <dt id="alarmdecoder.devices.SerialDevice.interface">
- <tt class="descname">interface</tt><a class="reference internal" href="_modules/alarmdecoder/devices.html#SerialDevice.interface"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#alarmdecoder.devices.SerialDevice.interface" title="Permalink to this definition">¶</a></dt>
- <dd><p>Retrieves the interface used to connect to the device.</p>
- <table class="docutils field-list" frame="void" rules="none">
- <col class="field-name" />
- <col class="field-body" />
- <tbody valign="top">
- <tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">interface used to connect to the device</td>
- </tr>
- </tbody>
- </table>
- </dd></dl>
-
- <dl class="method">
- <dt id="alarmdecoder.devices.SerialDevice.open">
- <tt class="descname">open</tt><big>(</big><em>baudrate=19200</em>, <em>no_reader_thread=False</em><big>)</big><a class="reference internal" href="_modules/alarmdecoder/devices.html#SerialDevice.open"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#alarmdecoder.devices.SerialDevice.open" title="Permalink to this definition">¶</a></dt>
- <dd><p>Opens the device.</p>
- <table class="docutils field-list" frame="void" rules="none">
- <col class="field-name" />
- <col class="field-body" />
- <tbody valign="top">
- <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
- <li><strong>baudrate</strong> (<em>int</em>) – baudrate to use with the device</li>
- <li><strong>no_reader_thread</strong> (<em>bool</em>) – whether or not to automatically start the
- reader thread.</li>
- </ul>
- </td>
- </tr>
- <tr class="field-even field"><th class="field-name">Raises :</th><td class="field-body"><p class="first last"><a class="reference internal" href="#alarmdecoder.util.NoDeviceError" title="alarmdecoder.util.NoDeviceError"><tt class="xref py py-class docutils literal"><span class="pre">NoDeviceError</span></tt></a></p>
- </td>
- </tr>
- </tbody>
- </table>
- </dd></dl>
-
- <dl class="method">
- <dt id="alarmdecoder.devices.SerialDevice.close">
- <tt class="descname">close</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/alarmdecoder/devices.html#SerialDevice.close"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#alarmdecoder.devices.SerialDevice.close" title="Permalink to this definition">¶</a></dt>
- <dd><p>Closes the device.</p>
- </dd></dl>
-
- <dl class="method">
- <dt id="alarmdecoder.devices.SerialDevice.fileno">
- <tt class="descname">fileno</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/alarmdecoder/devices.html#SerialDevice.fileno"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#alarmdecoder.devices.SerialDevice.fileno" title="Permalink to this definition">¶</a></dt>
- <dd></dd></dl>
-
- <dl class="method">
- <dt id="alarmdecoder.devices.SerialDevice.write">
- <tt class="descname">write</tt><big>(</big><em>data</em><big>)</big><a class="reference internal" href="_modules/alarmdecoder/devices.html#SerialDevice.write"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#alarmdecoder.devices.SerialDevice.write" title="Permalink to this definition">¶</a></dt>
- <dd><p>Writes data to the device.</p>
- <table class="docutils field-list" frame="void" rules="none">
- <col class="field-name" />
- <col class="field-body" />
- <tbody valign="top">
- <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>data</strong> (<em>string</em>) – data to write</td>
- </tr>
- <tr class="field-even field"><th class="field-name">Raises :</th><td class="field-body">py:class:<cite>~alarmdecoder.util.CommError</cite></td>
- </tr>
- </tbody>
- </table>
- </dd></dl>
-
- <dl class="method">
- <dt id="alarmdecoder.devices.SerialDevice.read">
- <tt class="descname">read</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/alarmdecoder/devices.html#SerialDevice.read"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#alarmdecoder.devices.SerialDevice.read" title="Permalink to this definition">¶</a></dt>
- <dd><p>Reads a single character from the device.</p>
- <table class="docutils field-list" frame="void" rules="none">
- <col class="field-name" />
- <col class="field-body" />
- <tbody valign="top">
- <tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">character read from the device</td>
- </tr>
- <tr class="field-even field"><th class="field-name">Raises :</th><td class="field-body"><a class="reference internal" href="#alarmdecoder.util.CommError" title="alarmdecoder.util.CommError"><tt class="xref py py-class docutils literal"><span class="pre">CommError</span></tt></a></td>
- </tr>
- </tbody>
- </table>
- </dd></dl>
-
- <dl class="method">
- <dt id="alarmdecoder.devices.SerialDevice.read_line">
- <tt class="descname">read_line</tt><big>(</big><em>timeout=0.0</em>, <em>purge_buffer=False</em><big>)</big><a class="reference internal" href="_modules/alarmdecoder/devices.html#SerialDevice.read_line"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#alarmdecoder.devices.SerialDevice.read_line" title="Permalink to this definition">¶</a></dt>
- <dd><p>Reads a line from the device.</p>
- <table class="docutils field-list" frame="void" rules="none">
- <col class="field-name" />
- <col class="field-body" />
- <tbody valign="top">
- <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
- <li><strong>timeout</strong> (<em>float</em>) – read timeout</li>
- <li><strong>purge_buffer</strong> (<em>bool</em>) – Indicates whether to purge the buffer prior to
- reading.</li>
- </ul>
- </td>
- </tr>
- <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first">line that was read</p>
- </td>
- </tr>
- <tr class="field-odd field"><th class="field-name">Raises :</th><td class="field-body"><p class="first last"><a class="reference internal" href="#alarmdecoder.util.CommError" title="alarmdecoder.util.CommError"><tt class="xref py py-class docutils literal"><span class="pre">CommError</span></tt></a>, <a class="reference internal" href="#alarmdecoder.util.TimeoutError" title="alarmdecoder.util.TimeoutError"><tt class="xref py py-class docutils literal"><span class="pre">TimeoutError</span></tt></a></p>
- </td>
- </tr>
- </tbody>
- </table>
- </dd></dl>
-
- </dd></dl>
-
- <dl class="class">
- <dt id="alarmdecoder.devices.SocketDevice">
- <em class="property">class </em><tt class="descclassname">alarmdecoder.devices.</tt><tt class="descname">SocketDevice</tt><big>(</big><em>interface=('localhost'</em>, <em>10000)</em><big>)</big><a class="reference internal" href="_modules/alarmdecoder/devices.html#SocketDevice"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#alarmdecoder.devices.SocketDevice" title="Permalink to this definition">¶</a></dt>
- <dd><p>Bases: <a class="reference internal" href="#alarmdecoder.devices.Device" title="alarmdecoder.devices.Device"><tt class="xref py py-class docutils literal"><span class="pre">alarmdecoder.devices.Device</span></tt></a></p>
- <p>Device that supports communication with an <a class="reference external" href="http://www.alarmdecoder.com">AlarmDecoder</a> (AD2) that is
- exposed via <a class="reference external" href="http://github.com/nutechsoftware/ser2sock">ser2sock</a> or another Serial to IP interface.</p>
- <dl class="attribute">
- <dt id="alarmdecoder.devices.SocketDevice.interface">
- <tt class="descname">interface</tt><a class="reference internal" href="_modules/alarmdecoder/devices.html#SocketDevice.interface"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#alarmdecoder.devices.SocketDevice.interface" title="Permalink to this definition">¶</a></dt>
- <dd><p>Retrieves the interface used to connect to the device.</p>
- <table class="docutils field-list" frame="void" rules="none">
- <col class="field-name" />
- <col class="field-body" />
- <tbody valign="top">
- <tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">interface used to connect to the device</td>
- </tr>
- </tbody>
- </table>
- </dd></dl>
-
- <dl class="attribute">
- <dt id="alarmdecoder.devices.SocketDevice.ssl">
- <tt class="descname">ssl</tt><a class="reference internal" href="_modules/alarmdecoder/devices.html#SocketDevice.ssl"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#alarmdecoder.devices.SocketDevice.ssl" title="Permalink to this definition">¶</a></dt>
- <dd><p>Retrieves whether or not the device is using SSL.</p>
- <table class="docutils field-list" frame="void" rules="none">
- <col class="field-name" />
- <col class="field-body" />
- <tbody valign="top">
- <tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">whether or not the device is using SSL</td>
- </tr>
- </tbody>
- </table>
- </dd></dl>
-
- <dl class="attribute">
- <dt id="alarmdecoder.devices.SocketDevice.ssl_certificate">
- <tt class="descname">ssl_certificate</tt><a class="reference internal" href="_modules/alarmdecoder/devices.html#SocketDevice.ssl_certificate"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#alarmdecoder.devices.SocketDevice.ssl_certificate" title="Permalink to this definition">¶</a></dt>
- <dd><p>Retrieves the SSL client certificate path used for authentication.</p>
- <table class="docutils field-list" frame="void" rules="none">
- <col class="field-name" />
- <col class="field-body" />
- <tbody valign="top">
- <tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">path to the certificate path or <tt class="xref py py-class docutils literal"><span class="pre">OpenSSL.crypto.X509</span></tt></td>
- </tr>
- </tbody>
- </table>
- </dd></dl>
-
- <dl class="attribute">
- <dt id="alarmdecoder.devices.SocketDevice.ssl_key">
- <tt class="descname">ssl_key</tt><a class="reference internal" href="_modules/alarmdecoder/devices.html#SocketDevice.ssl_key"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#alarmdecoder.devices.SocketDevice.ssl_key" title="Permalink to this definition">¶</a></dt>
- <dd><p>Retrieves the SSL client certificate key used for authentication.</p>
- <table class="docutils field-list" frame="void" rules="none">
- <col class="field-name" />
- <col class="field-body" />
- <tbody valign="top">
- <tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">jpath to the SSL key or <tt class="xref py py-class docutils literal"><span class="pre">OpenSSL.crypto.PKey</span></tt></td>
- </tr>
- </tbody>
- </table>
- </dd></dl>
-
- <dl class="attribute">
- <dt id="alarmdecoder.devices.SocketDevice.ssl_ca">
- <tt class="descname">ssl_ca</tt><a class="reference internal" href="_modules/alarmdecoder/devices.html#SocketDevice.ssl_ca"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#alarmdecoder.devices.SocketDevice.ssl_ca" title="Permalink to this definition">¶</a></dt>
- <dd><p>Retrieves the SSL Certificate Authority certificate used for
- authentication.</p>
- <table class="docutils field-list" frame="void" rules="none">
- <col class="field-name" />
- <col class="field-body" />
- <tbody valign="top">
- <tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">path to the CA certificate or <tt class="xref py py-class docutils literal"><span class="pre">OpenSSL.crypto.X509</span></tt></td>
- </tr>
- </tbody>
- </table>
- </dd></dl>
-
- <dl class="method">
- <dt id="alarmdecoder.devices.SocketDevice.open">
- <tt class="descname">open</tt><big>(</big><em>baudrate=None</em>, <em>no_reader_thread=False</em><big>)</big><a class="reference internal" href="_modules/alarmdecoder/devices.html#SocketDevice.open"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#alarmdecoder.devices.SocketDevice.open" title="Permalink to this definition">¶</a></dt>
- <dd><p>Opens the device.</p>
- <table class="docutils field-list" frame="void" rules="none">
- <col class="field-name" />
- <col class="field-body" />
- <tbody valign="top">
- <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
- <li><strong>baudrate</strong> (<em>int</em>) – baudrate to use</li>
- <li><strong>no_reader_thread</strong> (<em>bool</em>) – whether or not to automatically open the reader
- thread.</li>
- </ul>
- </td>
- </tr>
- <tr class="field-even field"><th class="field-name">Raises :</th><td class="field-body"><p class="first last"><a class="reference internal" href="#alarmdecoder.util.NoDeviceError" title="alarmdecoder.util.NoDeviceError"><tt class="xref py py-class docutils literal"><span class="pre">NoDeviceError</span></tt></a>, <a class="reference internal" href="#alarmdecoder.util.CommError" title="alarmdecoder.util.CommError"><tt class="xref py py-class docutils literal"><span class="pre">CommError</span></tt></a></p>
- </td>
- </tr>
- </tbody>
- </table>
- </dd></dl>
-
- <dl class="method">
- <dt id="alarmdecoder.devices.SocketDevice.close">
- <tt class="descname">close</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/alarmdecoder/devices.html#SocketDevice.close"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#alarmdecoder.devices.SocketDevice.close" title="Permalink to this definition">¶</a></dt>
- <dd><p>Closes the device.</p>
- </dd></dl>
-
- <dl class="method">
- <dt id="alarmdecoder.devices.SocketDevice.fileno">
- <tt class="descname">fileno</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/alarmdecoder/devices.html#SocketDevice.fileno"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#alarmdecoder.devices.SocketDevice.fileno" title="Permalink to this definition">¶</a></dt>
- <dd></dd></dl>
-
- <dl class="method">
- <dt id="alarmdecoder.devices.SocketDevice.write">
- <tt class="descname">write</tt><big>(</big><em>data</em><big>)</big><a class="reference internal" href="_modules/alarmdecoder/devices.html#SocketDevice.write"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#alarmdecoder.devices.SocketDevice.write" title="Permalink to this definition">¶</a></dt>
- <dd><p>Writes data to the device.</p>
- <table class="docutils field-list" frame="void" rules="none">
- <col class="field-name" />
- <col class="field-body" />
- <tbody valign="top">
- <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>data</strong> (<em>string</em>) – data to write</td>
- </tr>
- <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">number of bytes sent</td>
- </tr>
- <tr class="field-odd field"><th class="field-name">Raises :</th><td class="field-body"><a class="reference internal" href="#alarmdecoder.util.CommError" title="alarmdecoder.util.CommError"><tt class="xref py py-class docutils literal"><span class="pre">CommError</span></tt></a></td>
- </tr>
- </tbody>
- </table>
- </dd></dl>
-
- <dl class="method">
- <dt id="alarmdecoder.devices.SocketDevice.read">
- <tt class="descname">read</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/alarmdecoder/devices.html#SocketDevice.read"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#alarmdecoder.devices.SocketDevice.read" title="Permalink to this definition">¶</a></dt>
- <dd><p>Reads a single character from the device.</p>
- <table class="docutils field-list" frame="void" rules="none">
- <col class="field-name" />
- <col class="field-body" />
- <tbody valign="top">
- <tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">character read from the device</td>
- </tr>
- <tr class="field-even field"><th class="field-name">Raises :</th><td class="field-body"><a class="reference internal" href="#alarmdecoder.util.CommError" title="alarmdecoder.util.CommError"><tt class="xref py py-class docutils literal"><span class="pre">CommError</span></tt></a></td>
- </tr>
- </tbody>
- </table>
- </dd></dl>
-
- <dl class="method">
- <dt id="alarmdecoder.devices.SocketDevice.read_line">
- <tt class="descname">read_line</tt><big>(</big><em>timeout=0.0</em>, <em>purge_buffer=False</em><big>)</big><a class="reference internal" href="_modules/alarmdecoder/devices.html#SocketDevice.read_line"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#alarmdecoder.devices.SocketDevice.read_line" title="Permalink to this definition">¶</a></dt>
- <dd><p>Reads a line from the device.</p>
- <table class="docutils field-list" frame="void" rules="none">
- <col class="field-name" />
- <col class="field-body" />
- <tbody valign="top">
- <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
- <li><strong>timeout</strong> (<em>float</em>) – read timeout</li>
- <li><strong>purge_buffer</strong> (<em>bool</em>) – Indicates whether to purge the buffer prior to
- reading.</li>
- </ul>
- </td>
- </tr>
- <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first">line that was read</p>
- </td>
- </tr>
- <tr class="field-odd field"><th class="field-name">Raises :</th><td class="field-body"><p class="first last"><a class="reference internal" href="#alarmdecoder.util.CommError" title="alarmdecoder.util.CommError"><tt class="xref py py-class docutils literal"><span class="pre">CommError</span></tt></a>, <a class="reference internal" href="#alarmdecoder.util.TimeoutError" title="alarmdecoder.util.TimeoutError"><tt class="xref py py-class docutils literal"><span class="pre">TimeoutError</span></tt></a></p>
- </td>
- </tr>
- </tbody>
- </table>
- </dd></dl>
-
- </dd></dl>
-
- </div>
- <div class="section" id="module-alarmdecoder.messages">
- <span id="messages-module"></span><h2><tt class="xref py py-mod docutils literal"><span class="pre">messages</span></tt> Module<a class="headerlink" href="#module-alarmdecoder.messages" title="Permalink to this headline">¶</a></h2>
- <p>Message representations received from the panel through the <a class="reference external" href="http://www.alarmdecoder.com">AlarmDecoder</a> (AD2)
- devices.</p>
- <ul class="simple">
- <li><a class="reference internal" href="#alarmdecoder.messages.Message" title="alarmdecoder.messages.Message"><tt class="xref py py-class docutils literal"><span class="pre">Message</span></tt></a>: The standard and most common message received from a panel.</li>
- <li><a class="reference internal" href="#alarmdecoder.messages.ExpanderMessage" title="alarmdecoder.messages.ExpanderMessage"><tt class="xref py py-class docutils literal"><span class="pre">ExpanderMessage</span></tt></a>: Messages received from Relay or Zone expander modules.</li>
- <li><a class="reference internal" href="#alarmdecoder.messages.RFMessage" title="alarmdecoder.messages.RFMessage"><tt class="xref py py-class docutils literal"><span class="pre">RFMessage</span></tt></a>: Message received from an RF receiver module.</li>
- <li><a class="reference internal" href="#alarmdecoder.messages.LRRMessage" title="alarmdecoder.messages.LRRMessage"><tt class="xref py py-class docutils literal"><span class="pre">LRRMessage</span></tt></a>: Message received from a long-range radio module.</li>
- </ul>
- <dl class="class">
- <dt id="alarmdecoder.messages.BaseMessage">
- <em class="property">class </em><tt class="descclassname">alarmdecoder.messages.</tt><tt class="descname">BaseMessage</tt><a class="reference internal" href="_modules/alarmdecoder/messages.html#BaseMessage"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#alarmdecoder.messages.BaseMessage" title="Permalink to this definition">¶</a></dt>
- <dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">object</span></tt></p>
- <p>Base class for messages.</p>
- <dl class="attribute">
- <dt id="alarmdecoder.messages.BaseMessage.raw">
- <tt class="descname">raw</tt><em class="property"> = None</em><a class="headerlink" href="#alarmdecoder.messages.BaseMessage.raw" title="Permalink to this definition">¶</a></dt>
- <dd><p>The raw message text</p>
- </dd></dl>
-
- <dl class="attribute">
- <dt id="alarmdecoder.messages.BaseMessage.timestamp">
- <tt class="descname">timestamp</tt><em class="property"> = None</em><a class="headerlink" href="#alarmdecoder.messages.BaseMessage.timestamp" title="Permalink to this definition">¶</a></dt>
- <dd><p>The timestamp of the message</p>
- </dd></dl>
-
- <dl class="method">
- <dt id="alarmdecoder.messages.BaseMessage.dict">
- <tt class="descname">dict</tt><big>(</big><em>**kwargs</em><big>)</big><a class="reference internal" href="_modules/alarmdecoder/messages.html#BaseMessage.dict"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#alarmdecoder.messages.BaseMessage.dict" title="Permalink to this definition">¶</a></dt>
- <dd><p>Dictionary representation.</p>
- </dd></dl>
-
- </dd></dl>
-
- <dl class="class">
- <dt id="alarmdecoder.messages.Message">
- <em class="property">class </em><tt class="descclassname">alarmdecoder.messages.</tt><tt class="descname">Message</tt><big>(</big><em>data=None</em><big>)</big><a class="reference internal" href="_modules/alarmdecoder/messages.html#Message"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#alarmdecoder.messages.Message" title="Permalink to this definition">¶</a></dt>
- <dd><p>Bases: <a class="reference internal" href="#alarmdecoder.messages.BaseMessage" title="alarmdecoder.messages.BaseMessage"><tt class="xref py py-class docutils literal"><span class="pre">alarmdecoder.messages.BaseMessage</span></tt></a></p>
- <p>Represents a message from the alarm panel.</p>
- <dl class="attribute">
- <dt id="alarmdecoder.messages.Message.ready">
- <tt class="descname">ready</tt><em class="property"> = False</em><a class="headerlink" href="#alarmdecoder.messages.Message.ready" title="Permalink to this definition">¶</a></dt>
- <dd><p>Indicates whether or not the panel is in a ready state.</p>
- </dd></dl>
-
- <dl class="attribute">
- <dt id="alarmdecoder.messages.Message.armed_away">
- <tt class="descname">armed_away</tt><em class="property"> = False</em><a class="headerlink" href="#alarmdecoder.messages.Message.armed_away" title="Permalink to this definition">¶</a></dt>
- <dd><p>Indicates whether or not the panel is armed away.</p>
- </dd></dl>
-
- <dl class="attribute">
- <dt id="alarmdecoder.messages.Message.armed_home">
- <tt class="descname">armed_home</tt><em class="property"> = False</em><a class="headerlink" href="#alarmdecoder.messages.Message.armed_home" title="Permalink to this definition">¶</a></dt>
- <dd><p>Indicates whether or not the panel is armed home.</p>
- </dd></dl>
-
- <dl class="attribute">
- <dt id="alarmdecoder.messages.Message.backlight_on">
- <tt class="descname">backlight_on</tt><em class="property"> = False</em><a class="headerlink" href="#alarmdecoder.messages.Message.backlight_on" title="Permalink to this definition">¶</a></dt>
- <dd><p>Indicates whether or not the keypad backlight is on.</p>
- </dd></dl>
-
- <dl class="attribute">
- <dt id="alarmdecoder.messages.Message.programming_mode">
- <tt class="descname">programming_mode</tt><em class="property"> = False</em><a class="headerlink" href="#alarmdecoder.messages.Message.programming_mode" title="Permalink to this definition">¶</a></dt>
- <dd><p>Indicates whether or not we’re in programming mode.</p>
- </dd></dl>
-
- <dl class="attribute">
- <dt id="alarmdecoder.messages.Message.beeps">
- <tt class="descname">beeps</tt><em class="property"> = -1</em><a class="headerlink" href="#alarmdecoder.messages.Message.beeps" title="Permalink to this definition">¶</a></dt>
- <dd><p>Number of beeps associated with a message.</p>
- </dd></dl>
-
- <dl class="attribute">
- <dt id="alarmdecoder.messages.Message.zone_bypassed">
- <tt class="descname">zone_bypassed</tt><em class="property"> = False</em><a class="headerlink" href="#alarmdecoder.messages.Message.zone_bypassed" title="Permalink to this definition">¶</a></dt>
- <dd><p>Indicates whether or not a zone is bypassed.</p>
- </dd></dl>
-
- <dl class="attribute">
- <dt id="alarmdecoder.messages.Message.ac_power">
- <tt class="descname">ac_power</tt><em class="property"> = False</em><a class="headerlink" href="#alarmdecoder.messages.Message.ac_power" title="Permalink to this definition">¶</a></dt>
- <dd><p>Indicates whether or not the panel is on AC power.</p>
- </dd></dl>
-
- <dl class="attribute">
- <dt id="alarmdecoder.messages.Message.chime_on">
- <tt class="descname">chime_on</tt><em class="property"> = False</em><a class="headerlink" href="#alarmdecoder.messages.Message.chime_on" title="Permalink to this definition">¶</a></dt>
- <dd><p>Indicates whether or not the chime is enabled.</p>
- </dd></dl>
-
- <dl class="attribute">
- <dt id="alarmdecoder.messages.Message.alarm_event_occurred">
- <tt class="descname">alarm_event_occurred</tt><em class="property"> = False</em><a class="headerlink" href="#alarmdecoder.messages.Message.alarm_event_occurred" title="Permalink to this definition">¶</a></dt>
- <dd><p>Indicates whether or not an alarm event has occurred.</p>
- </dd></dl>
-
- <dl class="attribute">
- <dt id="alarmdecoder.messages.Message.alarm_sounding">
- <tt class="descname">alarm_sounding</tt><em class="property"> = False</em><a class="headerlink" href="#alarmdecoder.messages.Message.alarm_sounding" title="Permalink to this definition">¶</a></dt>
- <dd><p>Indicates whether or not an alarm is sounding.</p>
- </dd></dl>
-
- <dl class="attribute">
- <dt id="alarmdecoder.messages.Message.battery_low">
- <tt class="descname">battery_low</tt><em class="property"> = False</em><a class="headerlink" href="#alarmdecoder.messages.Message.battery_low" title="Permalink to this definition">¶</a></dt>
- <dd><p>Indicates whether or not there is a low battery.</p>
- </dd></dl>
-
- <dl class="attribute">
- <dt id="alarmdecoder.messages.Message.entry_delay_off">
- <tt class="descname">entry_delay_off</tt><em class="property"> = False</em><a class="headerlink" href="#alarmdecoder.messages.Message.entry_delay_off" title="Permalink to this definition">¶</a></dt>
- <dd><p>Indicates whether or not the entry delay is enabled.</p>
- </dd></dl>
-
- <dl class="attribute">
- <dt id="alarmdecoder.messages.Message.fire_alarm">
- <tt class="descname">fire_alarm</tt><em class="property"> = False</em><a class="headerlink" href="#alarmdecoder.messages.Message.fire_alarm" title="Permalink to this definition">¶</a></dt>
- <dd><p>Indicates whether or not a fire alarm is sounding.</p>
- </dd></dl>
-
- <dl class="attribute">
- <dt id="alarmdecoder.messages.Message.check_zone">
- <tt class="descname">check_zone</tt><em class="property"> = False</em><a class="headerlink" href="#alarmdecoder.messages.Message.check_zone" title="Permalink to this definition">¶</a></dt>
- <dd><p>Indicates whether or not there are zones that require attention.</p>
- </dd></dl>
-
- <dl class="attribute">
- <dt id="alarmdecoder.messages.Message.perimeter_only">
- <tt class="descname">perimeter_only</tt><em class="property"> = False</em><a class="headerlink" href="#alarmdecoder.messages.Message.perimeter_only" title="Permalink to this definition">¶</a></dt>
- <dd><p>Indicates whether or not the perimeter is armed.</p>
- </dd></dl>
-
- <dl class="attribute">
- <dt id="alarmdecoder.messages.Message.system_fault">
- <tt class="descname">system_fault</tt><em class="property"> = False</em><a class="headerlink" href="#alarmdecoder.messages.Message.system_fault" title="Permalink to this definition">¶</a></dt>
- <dd><p>Indicates whether a system fault has occurred.</p>
- </dd></dl>
-
- <dl class="attribute">
- <dt id="alarmdecoder.messages.Message.panel_type">
- <tt class="descname">panel_type</tt><em class="property"> = 0</em><a class="headerlink" href="#alarmdecoder.messages.Message.panel_type" title="Permalink to this definition">¶</a></dt>
- <dd><p>Indicates which panel type was the source of this message.</p>
- </dd></dl>
-
- <dl class="attribute">
- <dt id="alarmdecoder.messages.Message.numeric_code">
- <tt class="descname">numeric_code</tt><em class="property"> = None</em><a class="headerlink" href="#alarmdecoder.messages.Message.numeric_code" title="Permalink to this definition">¶</a></dt>
- <dd><p>The numeric code associated with the message.</p>
- </dd></dl>
-
- <dl class="attribute">
- <dt id="alarmdecoder.messages.Message.text">
- <tt class="descname">text</tt><em class="property"> = None</em><a class="headerlink" href="#alarmdecoder.messages.Message.text" title="Permalink to this definition">¶</a></dt>
- <dd><p>The human-readable text to be displayed on the panel LCD.</p>
- </dd></dl>
-
- <dl class="attribute">
- <dt id="alarmdecoder.messages.Message.cursor_location">
- <tt class="descname">cursor_location</tt><em class="property"> = -1</em><a class="headerlink" href="#alarmdecoder.messages.Message.cursor_location" title="Permalink to this definition">¶</a></dt>
- <dd><p>Current cursor location on the keypad.</p>
- </dd></dl>
-
- <dl class="attribute">
- <dt id="alarmdecoder.messages.Message.mask">
- <tt class="descname">mask</tt><em class="property"> = 4294967295</em><a class="headerlink" href="#alarmdecoder.messages.Message.mask" title="Permalink to this definition">¶</a></dt>
- <dd><p>Address mask this message is intended for.</p>
- </dd></dl>
-
- <dl class="attribute">
- <dt id="alarmdecoder.messages.Message.bitfield">
- <tt class="descname">bitfield</tt><em class="property"> = None</em><a class="headerlink" href="#alarmdecoder.messages.Message.bitfield" title="Permalink to this definition">¶</a></dt>
- <dd><p>The bitfield associated with this message.</p>
- </dd></dl>
-
- <dl class="attribute">
- <dt id="alarmdecoder.messages.Message.panel_data">
- <tt class="descname">panel_data</tt><em class="property"> = None</em><a class="headerlink" href="#alarmdecoder.messages.Message.panel_data" title="Permalink to this definition">¶</a></dt>
- <dd><p>The panel data field associated with this message.</p>
- </dd></dl>
-
- <dl class="method">
- <dt id="alarmdecoder.messages.Message.dict">
- <tt class="descname">dict</tt><big>(</big><em>**kwargs</em><big>)</big><a class="reference internal" href="_modules/alarmdecoder/messages.html#Message.dict"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#alarmdecoder.messages.Message.dict" title="Permalink to this definition">¶</a></dt>
- <dd><p>Dictionary representation.</p>
- </dd></dl>
-
- </dd></dl>
-
- <dl class="class">
- <dt id="alarmdecoder.messages.ExpanderMessage">
- <em class="property">class </em><tt class="descclassname">alarmdecoder.messages.</tt><tt class="descname">ExpanderMessage</tt><big>(</big><em>data=None</em><big>)</big><a class="reference internal" href="_modules/alarmdecoder/messages.html#ExpanderMessage"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#alarmdecoder.messages.ExpanderMessage" title="Permalink to this definition">¶</a></dt>
- <dd><p>Bases: <a class="reference internal" href="#alarmdecoder.messages.BaseMessage" title="alarmdecoder.messages.BaseMessage"><tt class="xref py py-class docutils literal"><span class="pre">alarmdecoder.messages.BaseMessage</span></tt></a></p>
- <p>Represents a message from a zone or relay expansion module.</p>
- <dl class="attribute">
- <dt id="alarmdecoder.messages.ExpanderMessage.ZONE">
- <tt class="descname">ZONE</tt><em class="property"> = 0</em><a class="headerlink" href="#alarmdecoder.messages.ExpanderMessage.ZONE" title="Permalink to this definition">¶</a></dt>
- <dd><p>Flag indicating that the expander message relates to a Zone Expander.</p>
- </dd></dl>
-
- <dl class="attribute">
- <dt id="alarmdecoder.messages.ExpanderMessage.RELAY">
- <tt class="descname">RELAY</tt><em class="property"> = 1</em><a class="headerlink" href="#alarmdecoder.messages.ExpanderMessage.RELAY" title="Permalink to this definition">¶</a></dt>
- <dd><p>Flag indicating that the expander message relates to a Relay Expander.</p>
- </dd></dl>
-
- <dl class="attribute">
- <dt id="alarmdecoder.messages.ExpanderMessage.type">
- <tt class="descname">type</tt><em class="property"> = None</em><a class="headerlink" href="#alarmdecoder.messages.ExpanderMessage.type" title="Permalink to this definition">¶</a></dt>
- <dd><p>Expander message type: ExpanderMessage.ZONE or ExpanderMessage.RELAY</p>
- </dd></dl>
-
- <dl class="attribute">
- <dt id="alarmdecoder.messages.ExpanderMessage.address">
- <tt class="descname">address</tt><em class="property"> = -1</em><a class="headerlink" href="#alarmdecoder.messages.ExpanderMessage.address" title="Permalink to this definition">¶</a></dt>
- <dd><p>Address of expander</p>
- </dd></dl>
-
- <dl class="attribute">
- <dt id="alarmdecoder.messages.ExpanderMessage.channel">
- <tt class="descname">channel</tt><em class="property"> = -1</em><a class="headerlink" href="#alarmdecoder.messages.ExpanderMessage.channel" title="Permalink to this definition">¶</a></dt>
- <dd><p>Channel on the expander</p>
- </dd></dl>
-
- <dl class="attribute">
- <dt id="alarmdecoder.messages.ExpanderMessage.value">
- <tt class="descname">value</tt><em class="property"> = -1</em><a class="headerlink" href="#alarmdecoder.messages.ExpanderMessage.value" title="Permalink to this definition">¶</a></dt>
- <dd><p>Value associated with the message</p>
- </dd></dl>
-
- <dl class="method">
- <dt id="alarmdecoder.messages.ExpanderMessage.dict">
- <tt class="descname">dict</tt><big>(</big><em>**kwargs</em><big>)</big><a class="reference internal" href="_modules/alarmdecoder/messages.html#ExpanderMessage.dict"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#alarmdecoder.messages.ExpanderMessage.dict" title="Permalink to this definition">¶</a></dt>
- <dd><p>Dictionary representation.</p>
- </dd></dl>
-
- </dd></dl>
-
- <dl class="class">
- <dt id="alarmdecoder.messages.RFMessage">
- <em class="property">class </em><tt class="descclassname">alarmdecoder.messages.</tt><tt class="descname">RFMessage</tt><big>(</big><em>data=None</em><big>)</big><a class="reference internal" href="_modules/alarmdecoder/messages.html#RFMessage"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#alarmdecoder.messages.RFMessage" title="Permalink to this definition">¶</a></dt>
- <dd><p>Bases: <a class="reference internal" href="#alarmdecoder.messages.BaseMessage" title="alarmdecoder.messages.BaseMessage"><tt class="xref py py-class docutils literal"><span class="pre">alarmdecoder.messages.BaseMessage</span></tt></a></p>
- <p>Represents a message from an RF receiver.</p>
- <dl class="attribute">
- <dt id="alarmdecoder.messages.RFMessage.serial_number">
- <tt class="descname">serial_number</tt><em class="property"> = None</em><a class="headerlink" href="#alarmdecoder.messages.RFMessage.serial_number" title="Permalink to this definition">¶</a></dt>
- <dd><p>Serial number of the RF device.</p>
- </dd></dl>
-
- <dl class="attribute">
- <dt id="alarmdecoder.messages.RFMessage.value">
- <tt class="descname">value</tt><em class="property"> = -1</em><a class="headerlink" href="#alarmdecoder.messages.RFMessage.value" title="Permalink to this definition">¶</a></dt>
- <dd><p>Value associated with this message.</p>
- </dd></dl>
-
- <dl class="attribute">
- <dt id="alarmdecoder.messages.RFMessage.battery">
- <tt class="descname">battery</tt><em class="property"> = False</em><a class="headerlink" href="#alarmdecoder.messages.RFMessage.battery" title="Permalink to this definition">¶</a></dt>
- <dd><p>Low battery indication</p>
- </dd></dl>
-
- <dl class="attribute">
- <dt id="alarmdecoder.messages.RFMessage.supervision">
- <tt class="descname">supervision</tt><em class="property"> = False</em><a class="headerlink" href="#alarmdecoder.messages.RFMessage.supervision" title="Permalink to this definition">¶</a></dt>
- <dd><p>Supervision required indication</p>
- </dd></dl>
-
- <dl class="attribute">
- <dt id="alarmdecoder.messages.RFMessage.loop">
- <tt class="descname">loop</tt><em class="property"> = [False, False, False, False]</em><a class="headerlink" href="#alarmdecoder.messages.RFMessage.loop" title="Permalink to this definition">¶</a></dt>
- <dd><p>Loop indicators</p>
- </dd></dl>
-
- <dl class="method">
- <dt id="alarmdecoder.messages.RFMessage.dict">
- <tt class="descname">dict</tt><big>(</big><em>**kwargs</em><big>)</big><a class="reference internal" href="_modules/alarmdecoder/messages.html#RFMessage.dict"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#alarmdecoder.messages.RFMessage.dict" title="Permalink to this definition">¶</a></dt>
- <dd><p>Dictionary representation.</p>
- </dd></dl>
-
- </dd></dl>
-
- <dl class="class">
- <dt id="alarmdecoder.messages.LRRMessage">
- <em class="property">class </em><tt class="descclassname">alarmdecoder.messages.</tt><tt class="descname">LRRMessage</tt><big>(</big><em>data=None</em><big>)</big><a class="reference internal" href="_modules/alarmdecoder/messages.html#LRRMessage"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#alarmdecoder.messages.LRRMessage" title="Permalink to this definition">¶</a></dt>
- <dd><p>Bases: <a class="reference internal" href="#alarmdecoder.messages.BaseMessage" title="alarmdecoder.messages.BaseMessage"><tt class="xref py py-class docutils literal"><span class="pre">alarmdecoder.messages.BaseMessage</span></tt></a></p>
- <p>Represent a message from a Long Range Radio.</p>
- <dl class="attribute">
- <dt id="alarmdecoder.messages.LRRMessage.event_data">
- <tt class="descname">event_data</tt><em class="property"> = None</em><a class="headerlink" href="#alarmdecoder.messages.LRRMessage.event_data" title="Permalink to this definition">¶</a></dt>
- <dd><p>Data associated with the LRR message. Usually user ID or zone.</p>
- </dd></dl>
-
- <dl class="attribute">
- <dt id="alarmdecoder.messages.LRRMessage.partition">
- <tt class="descname">partition</tt><em class="property"> = -1</em><a class="headerlink" href="#alarmdecoder.messages.LRRMessage.partition" title="Permalink to this definition">¶</a></dt>
- <dd><p>The partition that this message applies to.</p>
- </dd></dl>
-
- <dl class="attribute">
- <dt id="alarmdecoder.messages.LRRMessage.event_type">
- <tt class="descname">event_type</tt><em class="property"> = None</em><a class="headerlink" href="#alarmdecoder.messages.LRRMessage.event_type" title="Permalink to this definition">¶</a></dt>
- <dd><p>The type of the event that occurred.</p>
- </dd></dl>
-
- <dl class="method">
- <dt id="alarmdecoder.messages.LRRMessage.dict">
- <tt class="descname">dict</tt><big>(</big><em>**kwargs</em><big>)</big><a class="reference internal" href="_modules/alarmdecoder/messages.html#LRRMessage.dict"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#alarmdecoder.messages.LRRMessage.dict" title="Permalink to this definition">¶</a></dt>
- <dd><p>Dictionary representation.</p>
- </dd></dl>
-
- </dd></dl>
-
- </div>
- <div class="section" id="module-alarmdecoder.zonetracking">
- <span id="zonetracking-module"></span><h2><tt class="xref py py-mod docutils literal"><span class="pre">zonetracking</span></tt> Module<a class="headerlink" href="#module-alarmdecoder.zonetracking" title="Permalink to this headline">¶</a></h2>
- <p>Provides zone tracking functionality for the <a class="reference external" href="http://www.alarmdecoder.com">AlarmDecoder</a> (AD2) device family.</p>
- <dl class="class">
- <dt id="alarmdecoder.zonetracking.Zone">
- <em class="property">class </em><tt class="descclassname">alarmdecoder.zonetracking.</tt><tt class="descname">Zone</tt><big>(</big><em>zone=0</em>, <em>name=''</em>, <em>status=0</em><big>)</big><a class="reference internal" href="_modules/alarmdecoder/zonetracking.html#Zone"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#alarmdecoder.zonetracking.Zone" title="Permalink to this definition">¶</a></dt>
- <dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">object</span></tt></p>
- <p>Representation of a panel zone.</p>
- <dl class="attribute">
- <dt id="alarmdecoder.zonetracking.Zone.CLEAR">
- <tt class="descname">CLEAR</tt><em class="property"> = 0</em><a class="headerlink" href="#alarmdecoder.zonetracking.Zone.CLEAR" title="Permalink to this definition">¶</a></dt>
- <dd><p>Status indicating that the zone is cleared.</p>
- </dd></dl>
-
- <dl class="attribute">
- <dt id="alarmdecoder.zonetracking.Zone.FAULT">
- <tt class="descname">FAULT</tt><em class="property"> = 1</em><a class="headerlink" href="#alarmdecoder.zonetracking.Zone.FAULT" title="Permalink to this definition">¶</a></dt>
- <dd><p>Status indicating that the zone is faulted.</p>
- </dd></dl>
-
- <dl class="attribute">
- <dt id="alarmdecoder.zonetracking.Zone.CHECK">
- <tt class="descname">CHECK</tt><em class="property"> = 2</em><a class="headerlink" href="#alarmdecoder.zonetracking.Zone.CHECK" title="Permalink to this definition">¶</a></dt>
- <dd><p>Status indicating that there is a wiring issue with the zone.</p>
- </dd></dl>
-
- <dl class="attribute">
- <dt id="alarmdecoder.zonetracking.Zone.STATUS">
- <tt class="descname">STATUS</tt><em class="property"> = {0: 'CLEAR', 1: 'FAULT', 2: 'CHECK'}</em><a class="headerlink" href="#alarmdecoder.zonetracking.Zone.STATUS" title="Permalink to this definition">¶</a></dt>
- <dd></dd></dl>
-
- <dl class="attribute">
- <dt id="alarmdecoder.zonetracking.Zone.zone">
- <tt class="descname">zone</tt><em class="property"> = 0</em><a class="headerlink" href="#alarmdecoder.zonetracking.Zone.zone" title="Permalink to this definition">¶</a></dt>
- <dd><p>Zone ID</p>
- </dd></dl>
-
- <dl class="attribute">
- <dt id="alarmdecoder.zonetracking.Zone.name">
- <tt class="descname">name</tt><em class="property"> = ''</em><a class="headerlink" href="#alarmdecoder.zonetracking.Zone.name" title="Permalink to this definition">¶</a></dt>
- <dd><p>Zone name</p>
- </dd></dl>
-
- <dl class="attribute">
- <dt id="alarmdecoder.zonetracking.Zone.status">
- <tt class="descname">status</tt><em class="property"> = 0</em><a class="headerlink" href="#alarmdecoder.zonetracking.Zone.status" title="Permalink to this definition">¶</a></dt>
- <dd><p>Zone status</p>
- </dd></dl>
-
- <dl class="attribute">
- <dt id="alarmdecoder.zonetracking.Zone.timestamp">
- <tt class="descname">timestamp</tt><em class="property"> = None</em><a class="headerlink" href="#alarmdecoder.zonetracking.Zone.timestamp" title="Permalink to this definition">¶</a></dt>
- <dd><p>Timestamp of last update</p>
- </dd></dl>
-
- </dd></dl>
-
- <dl class="class">
- <dt id="alarmdecoder.zonetracking.Zonetracker">
- <em class="property">class </em><tt class="descclassname">alarmdecoder.zonetracking.</tt><tt class="descname">Zonetracker</tt><a class="reference internal" href="_modules/alarmdecoder/zonetracking.html#Zonetracker"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#alarmdecoder.zonetracking.Zonetracker" title="Permalink to this definition">¶</a></dt>
- <dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">object</span></tt></p>
- <p>Handles tracking of zones and their statuses.</p>
- <dl class="attribute">
- <dt id="alarmdecoder.zonetracking.Zonetracker.on_fault">
- <tt class="descname">on_fault</tt><a class="headerlink" href="#alarmdecoder.zonetracking.Zonetracker.on_fault" title="Permalink to this definition">¶</a></dt>
- <dd><p>This event is called when the device detects a zone fault.</p>
- <p><strong>Callback definition:</strong> <em>def callback(device, zone)</em></p>
- </dd></dl>
-
- <dl class="attribute">
- <dt id="alarmdecoder.zonetracking.Zonetracker.on_restore">
- <tt class="descname">on_restore</tt><a class="headerlink" href="#alarmdecoder.zonetracking.Zonetracker.on_restore" title="Permalink to this definition">¶</a></dt>
- <dd><p>This event is called when the device detects that a fault is restored.</p>
- <p><strong>Callback definition:</strong> <em>def callback(device, zone)</em></p>
- </dd></dl>
-
- <dl class="attribute">
- <dt id="alarmdecoder.zonetracking.Zonetracker.EXPIRE">
- <tt class="descname">EXPIRE</tt><em class="property"> = 30</em><a class="headerlink" href="#alarmdecoder.zonetracking.Zonetracker.EXPIRE" title="Permalink to this definition">¶</a></dt>
- <dd><p>Zone expiration timeout.</p>
- </dd></dl>
-
- <dl class="attribute">
- <dt id="alarmdecoder.zonetracking.Zonetracker.zones">
- <tt class="descname">zones</tt><a class="reference internal" href="_modules/alarmdecoder/zonetracking.html#Zonetracker.zones"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#alarmdecoder.zonetracking.Zonetracker.zones" title="Permalink to this definition">¶</a></dt>
- <dd><p>Returns the current list of zones being tracked.</p>
- <table class="docutils field-list" frame="void" rules="none">
- <col class="field-name" />
- <col class="field-body" />
- <tbody valign="top">
- <tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">dictionary of <a class="reference internal" href="#alarmdecoder.zonetracking.Zone" title="alarmdecoder.zonetracking.Zone"><tt class="xref py py-class docutils literal"><span class="pre">Zone</span></tt></a> being tracked</td>
- </tr>
- </tbody>
- </table>
- </dd></dl>
-
- <dl class="attribute">
- <dt id="alarmdecoder.zonetracking.Zonetracker.faulted">
- <tt class="descname">faulted</tt><a class="reference internal" href="_modules/alarmdecoder/zonetracking.html#Zonetracker.faulted"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#alarmdecoder.zonetracking.Zonetracker.faulted" title="Permalink to this definition">¶</a></dt>
- <dd><p>Retrieves the current list of faulted zones.</p>
- <table class="docutils field-list" frame="void" rules="none">
- <col class="field-name" />
- <col class="field-body" />
- <tbody valign="top">
- <tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">list of faulted zones</td>
- </tr>
- </tbody>
- </table>
- </dd></dl>
-
- <dl class="method">
- <dt id="alarmdecoder.zonetracking.Zonetracker.update">
- <tt class="descname">update</tt><big>(</big><em>message</em><big>)</big><a class="reference internal" href="_modules/alarmdecoder/zonetracking.html#Zonetracker.update"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#alarmdecoder.zonetracking.Zonetracker.update" title="Permalink to this definition">¶</a></dt>
- <dd><p>Update zone statuses based on the current message.</p>
- <table class="docutils field-list" frame="void" rules="none">
- <col class="field-name" />
- <col class="field-body" />
- <tbody valign="top">
- <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>message</strong> (<a class="reference internal" href="#alarmdecoder.messages.Message" title="alarmdecoder.messages.Message"><tt class="xref py py-class docutils literal"><span class="pre">Message</span></tt></a> or <a class="reference internal" href="#alarmdecoder.messages.ExpanderMessage" title="alarmdecoder.messages.ExpanderMessage"><tt class="xref py py-class docutils literal"><span class="pre">ExpanderMessage</span></tt></a>) – message to use to update the zone tracking</td>
- </tr>
- </tbody>
- </table>
- </dd></dl>
-
- <dl class="method">
- <dt id="alarmdecoder.zonetracking.Zonetracker.expander_to_zone">
- <tt class="descname">expander_to_zone</tt><big>(</big><em>address</em>, <em>channel</em><big>)</big><a class="reference internal" href="_modules/alarmdecoder/zonetracking.html#Zonetracker.expander_to_zone"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#alarmdecoder.zonetracking.Zonetracker.expander_to_zone" title="Permalink to this definition">¶</a></dt>
- <dd><p>Convert an address and channel into a zone number.</p>
- <table class="docutils field-list" frame="void" rules="none">
- <col class="field-name" />
- <col class="field-body" />
- <tbody valign="top">
- <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
- <li><strong>address</strong> (<em>int</em>) – expander address</li>
- <li><strong>channel</strong> (<em>int</em>) – channel</li>
- </ul>
- </td>
- </tr>
- <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first last">zone number associated with an address and channel</p>
- </td>
- </tr>
- </tbody>
- </table>
- </dd></dl>
-
- </dd></dl>
-
- </div>
- <div class="section" id="module-alarmdecoder.util">
- <span id="util-module"></span><h2><tt class="xref py py-mod docutils literal"><span class="pre">util</span></tt> Module<a class="headerlink" href="#module-alarmdecoder.util" title="Permalink to this headline">¶</a></h2>
- <p>Provides utility classes for the <a class="reference external" href="http://www.alarmdecoder.com">AlarmDecoder</a> (AD2) devices.</p>
- <dl class="exception">
- <dt id="alarmdecoder.util.NoDeviceError">
- <em class="property">exception </em><tt class="descclassname">alarmdecoder.util.</tt><tt class="descname">NoDeviceError</tt><a class="reference internal" href="_modules/alarmdecoder/util.html#NoDeviceError"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#alarmdecoder.util.NoDeviceError" title="Permalink to this definition">¶</a></dt>
- <dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">exceptions.Exception</span></tt></p>
- <p>No devices found.</p>
- </dd></dl>
-
- <dl class="exception">
- <dt id="alarmdecoder.util.CommError">
- <em class="property">exception </em><tt class="descclassname">alarmdecoder.util.</tt><tt class="descname">CommError</tt><a class="reference internal" href="_modules/alarmdecoder/util.html#CommError"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#alarmdecoder.util.CommError" title="Permalink to this definition">¶</a></dt>
- <dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">exceptions.Exception</span></tt></p>
- <p>There was an error communicating with the device.</p>
- </dd></dl>
-
- <dl class="exception">
- <dt id="alarmdecoder.util.TimeoutError">
- <em class="property">exception </em><tt class="descclassname">alarmdecoder.util.</tt><tt class="descname">TimeoutError</tt><a class="reference internal" href="_modules/alarmdecoder/util.html#TimeoutError"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#alarmdecoder.util.TimeoutError" title="Permalink to this definition">¶</a></dt>
- <dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">exceptions.Exception</span></tt></p>
- <p>There was a timeout while trying to communicate with the device.</p>
- </dd></dl>
-
- <dl class="exception">
- <dt id="alarmdecoder.util.InvalidMessageError">
- <em class="property">exception </em><tt class="descclassname">alarmdecoder.util.</tt><tt class="descname">InvalidMessageError</tt><a class="reference internal" href="_modules/alarmdecoder/util.html#InvalidMessageError"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#alarmdecoder.util.InvalidMessageError" title="Permalink to this definition">¶</a></dt>
- <dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">exceptions.Exception</span></tt></p>
- <p>The format of the panel message was invalid.</p>
- </dd></dl>
-
- <dl class="class">
- <dt id="alarmdecoder.util.Firmware">
- <em class="property">class </em><tt class="descclassname">alarmdecoder.util.</tt><tt class="descname">Firmware</tt><a class="reference internal" href="_modules/alarmdecoder/util.html#Firmware"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#alarmdecoder.util.Firmware" title="Permalink to this definition">¶</a></dt>
- <dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">object</span></tt></p>
- <p>Represents firmware for the <a class="reference external" href="http://www.alarmdecoder.com">AlarmDecoder</a> devices.</p>
- <dl class="attribute">
- <dt id="alarmdecoder.util.Firmware.STAGE_START">
- <tt class="descname">STAGE_START</tt><em class="property"> = 0</em><a class="headerlink" href="#alarmdecoder.util.Firmware.STAGE_START" title="Permalink to this definition">¶</a></dt>
- <dd></dd></dl>
-
- <dl class="attribute">
- <dt id="alarmdecoder.util.Firmware.STAGE_WAITING">
- <tt class="descname">STAGE_WAITING</tt><em class="property"> = 1</em><a class="headerlink" href="#alarmdecoder.util.Firmware.STAGE_WAITING" title="Permalink to this definition">¶</a></dt>
- <dd></dd></dl>
-
- <dl class="attribute">
- <dt id="alarmdecoder.util.Firmware.STAGE_BOOT">
- <tt class="descname">STAGE_BOOT</tt><em class="property"> = 2</em><a class="headerlink" href="#alarmdecoder.util.Firmware.STAGE_BOOT" title="Permalink to this definition">¶</a></dt>
- <dd></dd></dl>
-
- <dl class="attribute">
- <dt id="alarmdecoder.util.Firmware.STAGE_LOAD">
- <tt class="descname">STAGE_LOAD</tt><em class="property"> = 3</em><a class="headerlink" href="#alarmdecoder.util.Firmware.STAGE_LOAD" title="Permalink to this definition">¶</a></dt>
- <dd></dd></dl>
-
- <dl class="attribute">
- <dt id="alarmdecoder.util.Firmware.STAGE_UPLOADING">
- <tt class="descname">STAGE_UPLOADING</tt><em class="property"> = 4</em><a class="headerlink" href="#alarmdecoder.util.Firmware.STAGE_UPLOADING" title="Permalink to this definition">¶</a></dt>
- <dd></dd></dl>
-
- <dl class="attribute">
- <dt id="alarmdecoder.util.Firmware.STAGE_DONE">
- <tt class="descname">STAGE_DONE</tt><em class="property"> = 5</em><a class="headerlink" href="#alarmdecoder.util.Firmware.STAGE_DONE" title="Permalink to this definition">¶</a></dt>
- <dd></dd></dl>
-
- <dl class="staticmethod">
- <dt id="alarmdecoder.util.Firmware.upload">
- <em class="property">static </em><tt class="descname">upload</tt><big>(</big><em>dev</em>, <em>filename</em>, <em>progress_callback=None</em><big>)</big><a class="reference internal" href="_modules/alarmdecoder/util.html#Firmware.upload"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#alarmdecoder.util.Firmware.upload" title="Permalink to this definition">¶</a></dt>
- <dd><p>Uploads firmware to an <a class="reference external" href="http://www.alarmdecoder.com">AlarmDecoder</a> device.</p>
- <table class="docutils field-list" frame="void" rules="none">
- <col class="field-name" />
- <col class="field-body" />
- <tbody valign="top">
- <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
- <li><strong>filename</strong> (<em>string</em>) – firmware filename</li>
- <li><strong>progress_callback</strong> (<em>function</em>) – callback function used to report progress</li>
- </ul>
- </td>
- </tr>
- <tr class="field-even field"><th class="field-name">Raises :</th><td class="field-body"><p class="first last"><a class="reference internal" href="#alarmdecoder.util.NoDeviceError" title="alarmdecoder.util.NoDeviceError"><tt class="xref py py-class docutils literal"><span class="pre">NoDeviceError</span></tt></a>, <a class="reference internal" href="#alarmdecoder.util.TimeoutError" title="alarmdecoder.util.TimeoutError"><tt class="xref py py-class docutils literal"><span class="pre">TimeoutError</span></tt></a></p>
- </td>
- </tr>
- </tbody>
- </table>
- </dd></dl>
-
- </dd></dl>
-
- </div>
- <div class="section" id="module-alarmdecoder.panels">
- <span id="panels-module"></span><h2><tt class="xref py py-mod docutils literal"><span class="pre">panels</span></tt> Module<a class="headerlink" href="#module-alarmdecoder.panels" title="Permalink to this headline">¶</a></h2>
- <p>Representations of Panels and their templates.</p>
- </div>
- </div>
-
-
- </div>
- </div>
- </div>
- <div class="sphinxsidebar">
- <div class="sphinxsidebarwrapper">
- <h3><a href="index.html">Table Of Contents</a></h3>
- <ul>
- <li><a class="reference internal" href="#">alarmdecoder Package</a><ul>
- <li><a class="reference internal" href="#module-alarmdecoder.decoder"><tt class="docutils literal"><span class="pre">decoder</span></tt> Module</a></li>
- <li><a class="reference internal" href="#module-alarmdecoder.devices"><tt class="docutils literal"><span class="pre">devices</span></tt> Module</a></li>
- <li><a class="reference internal" href="#module-alarmdecoder.messages"><tt class="docutils literal"><span class="pre">messages</span></tt> Module</a></li>
- <li><a class="reference internal" href="#module-alarmdecoder.zonetracking"><tt class="docutils literal"><span class="pre">zonetracking</span></tt> Module</a></li>
- <li><a class="reference internal" href="#module-alarmdecoder.util"><tt class="docutils literal"><span class="pre">util</span></tt> Module</a></li>
- <li><a class="reference internal" href="#module-alarmdecoder.panels"><tt class="docutils literal"><span class="pre">panels</span></tt> Module</a></li>
- </ul>
- </li>
- </ul>
-
- <h4>Previous topic</h4>
- <p class="topless"><a href="index.html"
- title="previous chapter">Welcome to Alarm Decoder’s documentation!</a></p>
- <h3>This Page</h3>
- <ul class="this-page-menu">
- <li><a href="_sources/alarmdecoder.txt"
- rel="nofollow">Show Source</a></li>
- </ul>
- <div id="searchbox" style="display: none">
- <h3>Quick search</h3>
- <form class="search" action="search.html" method="get">
- <input type="text" name="q" />
- <input type="submit" value="Go" />
- <input type="hidden" name="check_keywords" value="yes" />
- <input type="hidden" name="area" value="default" />
- </form>
- <p class="searchtip" style="font-size: 90%">
- Enter search terms or a module, class or function name.
- </p>
- </div>
- <script type="text/javascript">$('#searchbox').show(0);</script>
- </div>
- </div>
- <div class="clearer"></div>
- </div>
- <div class="related">
- <h3>Navigation</h3>
- <ul>
- <li class="right" style="margin-right: 10px">
- <a href="genindex.html" title="General Index"
- >index</a></li>
- <li class="right" >
- <a href="py-modindex.html" title="Python Module Index"
- >modules</a> |</li>
- <li class="right" >
- <a href="index.html" title="Welcome to Alarm Decoder’s documentation!"
- >previous</a> |</li>
- <li><a href="index.html">alarmdecoder documentation</a> »</li>
- </ul>
- </div>
- <div class="footer">
- © Copyright 2013, Nu Tech Software Solutions, Inc..
- Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.2b1.
- </div>
- </body>
- </html>
|