Replacing <pre> in the documentation

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@2895 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2013-03-11 19:48:01 +00:00
parent d4ac698fa6
commit 717b12ae12
7 changed files with 93 additions and 81 deletions

View File

@ -872,13 +872,14 @@ FHZ_Read($)
for detailed USB / electromag. interference troubleshooting.</li> for detailed USB / electromag. interference troubleshooting.</li>
<li><code>initfull</code> issues the initialization sequence for the FHZ <li><code>initfull</code> issues the initialization sequence for the FHZ
device:<br> device:<br>
<pre> <ul><code>
get FHZ init2 get FHZ init2<br>
get FHZ serial get FHZ serial<br>
set FHZ initHMS set FHZ initHMS<br>
set FHZ initFS20 set FHZ initFS20<br>
set FHZ time set FHZ time<br>
set FHZ raw 04 01010100010000</pre></li> set FHZ raw 04 01010100010000<br>
</code></ul></li>
<li><code>reopen</code> closes and reopens the serial device port. This <li><code>reopen</code> closes and reopens the serial device port. This
implicitly initializes the FHZ and issues the implicitly initializes the FHZ and issues the
<code>initfull</code> command sequence.</li> <code>initfull</code> command sequence.</li>

View File

@ -519,25 +519,25 @@ four2hex($$)
<code>set &lt;name&gt; &lt;value&gt; [&lt;time&gt]</code> <code>set &lt;name&gt; &lt;value&gt; [&lt;time&gt]</code>
<br><br> <br><br>
where <code>value</code> is one of:<br> where <code>value</code> is one of:<br>
<pre> <ul><code>
dim06% dim12% dim18% dim25% dim31% dim37% dim43% dim50% dim06% dim12% dim18% dim25% dim31% dim37% dim43% dim50%<br>
dim56% dim62% dim68% dim75% dim81% dim87% dim93% dim100% dim56% dim62% dim68% dim75% dim81% dim87% dim93% dim100%<br>
dimdown dimdown<br>
dimup dimup<br>
dimupdown dimupdown<br>
off off<br>
off-for-timer off-for-timer<br>
on # dimmer: set to value before switching it off on # dimmer: set to value before switching it off<br>
on-for-timer # see the note on-for-timer # see the note<br>
on-old-for-timer # set to previous (before switching it on) on-old-for-timer # set to previous (before switching it on)<br>
ramp-on-time # time to reach the desired dim value on dimmers ramp-on-time # time to reach the desired dim value on dimmers<br>
ramp-off-time # time to reach the off state on dimmers ramp-off-time # time to reach the off state on dimmers<br>
reset reset<br>
sendstate sendstate<br>
timer timer<br>
toggle # between off and previous dim val toggle # between off and previous dim val<br>
on-till # Special, see the note on-till # Special, see the note<br>
</pre> </code></ul>
The <a href="#setExtensions"> set extensions</a> are also supported.<br> The <a href="#setExtensions"> set extensions</a> are also supported.<br>
<br> <br>
Examples: Examples:

View File

@ -744,26 +744,26 @@ getFhtBuffer($)
<code>set &lt;name&gt; &lt;valuetype&gt; &lt;value&gt;</code> <code>set &lt;name&gt; &lt;valuetype&gt; &lt;value&gt;</code>
<br><br> <br><br>
where <code>value</code> is one of:<br> where <code>value</code> is one of:<br>
<pre> <ul><code>
desired-temp desired-temp<br>
day-temp night-temp day-temp night-temp<br>
report1 report2 report1 report2<br>
refreshvalues refreshvalues<br>
mode mode<br>
holiday1 holiday2 # see mode holiday_short or holiday holiday1 holiday2 # see mode holiday_short or holiday<br>
manu-temp # No clue what it does. manu-temp # No clue what it does.<br>
year month day hour minute year month day hour minute<br>
time date time date<br>
lowtemp-offset # Alarm-Temp.-Differenz lowtemp-offset # Alarm-Temp.-Differenz<br>
windowopen-temp windowopen-temp<br>
mon-from1 mon-to1 mon-from2 mon-to2 mon-from1 mon-to1 mon-from2 mon-to2<br>
tue-from1 tue-to1 tue-from2 tue-to2 tue-from1 tue-to1 tue-from2 tue-to2<br>
wed-from1 wed-to1 wed-from2 wed-to2 wed-from1 wed-to1 wed-from2 wed-to2<br>
thu-from1 thu-to1 thu-from2 thu-to2 thu-from1 thu-to1 thu-from2 thu-to2<br>
fri-from1 fri-to1 fri-from2 fri-to2 fri-from1 fri-to1 fri-from2 fri-to2<br>
sat-from1 sat-to1 sat-from2 sat-to2 sat-from1 sat-to1 sat-from2 sat-to2<br>
sun-from1 sun-to1 sun-from2 sun-to2 sun-from1 sun-to1 sun-from2 sun-to2<br>
</pre> </code></ul>
Examples: Examples:
<ul> <ul>

View File

@ -286,14 +286,16 @@ CUL_EM_Parse($$)
daily and mothly fees. Your COST will appear in the log, generated once daily and mothly fees. Your COST will appear in the log, generated once
daiy (without the basic fee) or month (with the bassic fee included). Your daiy (without the basic fee) or month (with the bassic fee included). Your
definition should look like E.g.: definition should look like E.g.:
<pre> <ul><code>
define emwz 1 75 900 0.15 12.50</pre> define emwz 1 75 900 0.15 12.50<br>
</code></ul>
and the Log looks like: and the Log looks like:
<pre> <ul><code>
CUM_DAY: 6.849 CUM: 60123.4 COST: 1.02 CUM_DAY: 6.849 CUM: 60123.4 COST: 1.02<br>
CUM_MONTH: 212.319 CUM: 60123.4 COST: 44.34</pre> CUM_MONTH: 212.319 CUM: 60123.4 COST: 44.34<br>
</code></ul>
Tipp: You can configure your EMWZ device to show in the CUM column of the Tip: You can configure your EMWZ device to show in the CUM column of the
STATE reading the current reading of your meter. For this purpose: multiply STATE reading the current reading of your meter. For this purpose: multiply
the current reading (from the real device) with the corr1 value (RperKW), the current reading (from the real device) with the corr1 value (RperKW),
and substract the RAW CUM value from it. Now set the basis reading of your and substract the RAW CUM value from it. Now set the basis reading of your

View File

@ -178,23 +178,23 @@ watchdog_Undef($$)
<br><br> <br><br>
Examples: Examples:
<pre> <code><ul>
# Request data from the FHT80 _once_ if we do not receive any message for # Request data from the FHT80 _once_ if we do not receive any message for<br>
# 15 Minutes. # 15 Minutes.<br>
define w watchdog FHT80 00:15:00 SAME set FHT80 date define w watchdog FHT80 00:15:00 SAME set FHT80 date<br>
# Request data from the FHT80 _each_ time we do not receive any message for # Request data from the FHT80 _each_ time we do not receive any message for<br>
# 15 Minutes, i.e. reactivate the watchdog after it triggered. Might be # 15 Minutes, i.e. reactivate the watchdog after it triggered. Might be<br>
# dangerous, as it can trigger in a loop. # dangerous, as it can trigger in a loop.<br>
define w watchdog FHT80 00:15:00 SAME set FHT80 date;; trigger w . define w watchdog FHT80 00:15:00 SAME set FHT80 date;; trigger w .<br>
# Shout once if the HMS100-FIT is not alive # Shout once if the HMS100-FIT is not alive<br>
define w watchdog HMS100-FIT 01:00:00 SAME "alarm-fit.sh" define w watchdog HMS100-FIT 01:00:00 SAME "alarm-fit.sh"<br>
# Send mail if the window is left open # Send mail if the window is left open<br>
define w watchdog contact1:open 00:15 contact1:closed "mail_me close window1" define w watchdog contact1:open 00:15 contact1:closed "mail_me close window1"<br>
attr w regexp1WontReactivate attr w regexp1WontReactivate<br>
</pre> </ul></code>
Notes:<br> Notes:<br>
<ul> <ul>

View File

@ -506,8 +506,9 @@ seekTo($$$$)
<br><br> <br><br>
Log events to <code>&lt;filename&gt;</code>. The log format is Log events to <code>&lt;filename&gt;</code>. The log format is
<pre> <ul><code><br>
YYYY:MM:DD_HH:MM:SS &lt;device&gt; &lt;event&gt;</pre> YYYY:MM:DD_HH:MM:SS &lt;device&gt; &lt;event&gt;<br>
<br></code></ul>
The regexp will be checked against the device name The regexp will be checked against the device name
devicename:event or timestamp:devicename:event combination. devicename:event or timestamp:devicename:event combination.
The regexp must match the complete string, not just a part of it. The regexp must match the complete string, not just a part of it.
@ -613,8 +614,10 @@ seekTo($$$$)
</ul> </ul>
<br><br> <br><br>
Example: Example:
<pre>get outlog out-2008.log - 2008-01-01 2008-01-08 4:IR:int: 9:IR::</pre> <ul><code><br>
<br><br> get outlog out-2008.log - 2008-01-01 2008-01-08 4:IR:int: 9:IR::
</code></ul>
<br>
</ul> </ul>
<a name="FileLogattr"></a> <a name="FileLogattr"></a>

View File

@ -121,17 +121,23 @@ CommandXmlList($$)
optional, and restricts the list of devices if specified. optional, and restricts the list of devices if specified.
<br><br> <br><br>
Example: Example:
<pre> fhem> xmllist <code>
&lt;FHZINFO&gt; <ul>
&lt;internal_LIST&gt; fhem> xmllist<br>
&lt;internal name="global" state="internal" sets="" &lt;FHZINFO&gt;<br>
attrs="room configfile logfile ..."&gt; <ul>
&lt;INT key="DEF" value="&lt;no definition&gt;"/&gt; &lt;internal_LIST&gt;<br>
&lt;INT key="NR" value="0"/&gt; <ul>
&lt;INT key="STATE" value="internal"/&gt; &lt;internal name="global" state="internal" sets="" attrs="room configfile logfile ..."&gt;<br>
[...] <ul>
&lt;INT key="DEF" value="&lt;no definition&gt;"/&gt;<br>
</pre> &lt;INT key="NR" value="0"/&gt;<br>
&lt;INT key="STATE" value="internal"/&gt;<br>
</ul>
[...]<br>
</ul>
</ul>
</ul></code>
</ul> </ul>
=end html =end html