new module 02_HTTPSRV.pm
git-svn-id: https://fhem.svn.sourceforge.net/svnroot/fhem/trunk/fhem@1815 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
@@ -96,6 +96,7 @@
|
||||
<a href="#FS20">FS20</a>
|
||||
<a href="#HMS">HMS</a>
|
||||
<a href="#HMLAN">HMLAN</a>
|
||||
<a href="#HTTPSRV">HTTPSRV</a>
|
||||
<a href="#IPCAM">IPCAM</a>
|
||||
<a href="#IPWE">IPWE</a>
|
||||
<a href="#IT">IT</a>
|
||||
@@ -5296,6 +5297,56 @@ To send the data, both send or write could be used.<br>
|
||||
<br>
|
||||
</ul>
|
||||
|
||||
<a name="HTTPSRV"></a>
|
||||
<h3>HTTPSRV</h3>
|
||||
<ul>
|
||||
Provides a mini HTTP server plugin for FHEMWEB. It serves files from a given directory.<p>
|
||||
|
||||
HTTPSRV is an extension to <a href="HTTPSRV">FHEMWEB</a>. You must install FHEMWEB to use HTTPSRV.</p>
|
||||
|
||||
<a name="HTTPSRVdefine"></a>
|
||||
<b>Define</b>
|
||||
<ul>
|
||||
<code>define <name> <infix> <directory> <friendlyname></code><br><br>
|
||||
|
||||
Defines the HTTP server. <code><infix></code> is the portion behind the FHEMWEB base URL (usually
|
||||
<code>http://hostname:8083/fhem</code>), <code><directory></code> is the absolute path the
|
||||
files are served from, and <code><friendlyname></code> is the name displayed in the side menu of FHEMWEB.<p><p>
|
||||
|
||||
Example:
|
||||
<ul>
|
||||
<code>define myJSFrontend HTTPSRV jsf /usr/share/jsfrontend My little frontend</code><br>
|
||||
</ul>
|
||||
<br>
|
||||
</ul>
|
||||
|
||||
<a name="HTTPSRVset"></a>
|
||||
<b>Set</b>
|
||||
<ul>
|
||||
n/a
|
||||
</ul>
|
||||
<br><br>
|
||||
|
||||
<a name="HTTPSRVattr"></a>
|
||||
<b>Attributes</b>
|
||||
<br><br>
|
||||
<ul>
|
||||
n/a
|
||||
</ul>
|
||||
<br><br>
|
||||
|
||||
<b>Usage information</b>
|
||||
<br><br>
|
||||
<ul>
|
||||
|
||||
The above example on <code>http://hostname:8083/fhem</code> will return the file
|
||||
<code>/usr/share/jsfrontend/foo.html</code> for <code>http://hostname:8083/fhem/jsf/foo.html</code>.
|
||||
If no filename is given, <code>index.html</code> is returned.<p>
|
||||
|
||||
Notice: All links are relative to <code>http://hostname:8083/fhem</code>.
|
||||
</ul>
|
||||
<br><br>
|
||||
|
||||
<a name="USF1000"></a>
|
||||
<h3>USF1000</h3>
|
||||
<ul>
|
||||
|
||||
Reference in New Issue
Block a user