2021-01-08 15:01:37 +01:00

159 lines
6.0 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!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="X-UA-Compatible" content="IE=Edge" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>app module &#8212; APED (API-Documentation) V2.1 documentation</title>
<link rel="stylesheet" href="_static/alabaster.css" type="text/css" />
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<script type="text/javascript" id="documentation_options" data-url_root="./" src="_static/documentation_options.js"></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>
<script type="text/javascript" src="_static/language_data.js"></script>
<link rel="index" title="Index" href="genindex.html" />
<link rel="search" title="Search" href="search.html" />
<link rel="stylesheet" href="_static/custom.css" type="text/css" />
<meta name="viewport" content="width=device-width, initial-scale=0.9, maximum-scale=0.9" />
</head><body>
<div class="document">
<div class="documentwrapper">
<div class="bodywrapper">
<div class="body" role="main">
<div class="section" id="module-app">
<span id="app-module"></span><h1>app module<a class="headerlink" href="#module-app" title="Permalink to this headline"></a></h1>
<dl class="function">
<dt id="app.api_devices">
<code class="descclassname">app.</code><code class="descname">api_devices</code><span class="sig-paren">(</span><em>device_name: str</em>, <em>buffering: str</em><span class="sig-paren">)</span><a class="headerlink" href="#app.api_devices" title="Permalink to this definition"></a></dt>
<dd><p>the method for reading and writing to and from the connected devices</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>device_name</strong> (<em>str</em>) the name of the relevant device</li>
<li><strong>buffering</strong> (<em>str</em>) whether or not the buffer of the device is requested</li>
</ul>
</td>
</tr>
<tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first last">the relevant information about the device in JSON format</p>
</td>
</tr>
</tbody>
</table>
</dd></dl>
<dl class="function">
<dt id="app.api_general_device_info">
<code class="descclassname">app.</code><code class="descname">api_general_device_info</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#app.api_general_device_info" title="Permalink to this definition"></a></dt>
<dd><p>method to read all the available device names</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 available device names</td>
</tr>
<tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body">JSON</td>
</tr>
</tbody>
</table>
</dd></dl>
<dl class="function">
<dt id="app.api_root">
<code class="descclassname">app.</code><code class="descname">api_root</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#app.api_root" title="Permalink to this definition"></a></dt>
<dd><p>method for the root of the API</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">a welcom message</td>
</tr>
<tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body">html</td>
</tr>
</tbody>
</table>
</dd></dl>
<dl class="function">
<dt id="app.xml_transfer">
<code class="descclassname">app.</code><code class="descname">xml_transfer</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#app.xml_transfer" title="Permalink to this definition"></a></dt>
<dd><p>method for transfering the config.xml files to and from the raspberry</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 config.xml or the occured errors</td>
</tr>
</tbody>
</table>
</dd></dl>
</div>
</div>
</div>
</div>
<div class="sphinxsidebar" role="navigation" aria-label="main navigation">
<div class="sphinxsidebarwrapper">
<h1 class="logo"><a href="index.html">APED (API-Documentation)</a></h1>
<h3>Navigation</h3>
<div class="relations">
<h3>Related Topics</h3>
<ul>
<li><a href="index.html">Documentation overview</a><ul>
</ul></li>
</ul>
</div>
<div id="searchbox" style="display: none" role="search">
<h3>Quick search</h3>
<div class="searchformwrapper">
<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>
</div>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
</div>
</div>
<div class="clearer"></div>
</div>
<div class="footer">
&copy;2021, Paul Lödige.
|
Powered by <a href="http://sphinx-doc.org/">Sphinx 1.8.4</a>
&amp; <a href="https://github.com/bitprophet/alabaster">Alabaster 0.7.8</a>
|
<a href="_sources/app.rst.txt"
rel="nofollow">Page source</a>
</div>
</body>
</html>