mirror of
https://github.com/fhem/fhem-mirror.git
synced 2024-11-22 02:59:49 +00:00
DOC: smallscreen support
git-svn-id: https://svn.fhem.de/fhem/trunk@3834 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
7aecfcc172
commit
7a10484160
@ -4,7 +4,10 @@
|
||||
|
||||
<head>
|
||||
<title>FHEM Howto</title>
|
||||
<link rel="stylesheet" type="text/css" href="../www/pgm2/style.css" />
|
||||
<script type="text/javascript" src="fhemdoc.js"></script>
|
||||
<noscript>
|
||||
<link rel="stylesheet" type="text/css" href="../www/pgm2/style.css" />
|
||||
</noscript>
|
||||
<meta http-equiv="Content-type" content="text/html;charset=ISO-8859-1"/>
|
||||
</head>
|
||||
|
||||
|
@ -1,7 +1,10 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml"><head>
|
||||
<title>Mit FHEM beginnen</title>
|
||||
<link rel="stylesheet" type="text/css" href="../www/pgm2/style.css" />
|
||||
<script type="text/javascript" src="fhemdoc.js"></script>
|
||||
<noscript>
|
||||
<link rel="stylesheet" type="text/css" href="../www/pgm2/style.css" />
|
||||
</noscript>
|
||||
<meta http-equiv="Content-type" content="text/html; charset=UTF-8">
|
||||
</head>
|
||||
|
||||
@ -82,9 +85,9 @@
|
||||
<h3>Anschließen des USB-Gerätes an den PC/die FRITZ!Box (CUL/FHZ1x00PC etc.)</h3>
|
||||
<ul>
|
||||
<p>Verbinden Sie sich mit FHEM indem Sie im Internet-Browser bei Verwendung eines normalen Desktop-Rechners
|
||||
<a href="http://fhem-host:8083/fhem" style="color: blue; text-decoration: underline; text-underline: single">
|
||||
http://fhem-host:8083/fhem</a> oder bei Verwendung eines Smartphones <a href="http://fhem-host:8084/fhem" style="color: blue; text-decoration: underline; text-underline: single">
|
||||
http://fhem-host:8084/fhem</a> oder bei Verwendung eines Tablets wie dem iPad <a href="http://fhem-host:8085/fhem" style="color: blue; text-decoration: underline; text-underline: single">
|
||||
<a href="http://fhem-host:8083/fhem">
|
||||
http://fhem-host:8083/fhem</a> oder bei Verwendung eines Smartphones <a href="http://fhem-host:8084/fhem">
|
||||
http://fhem-host:8084/fhem</a> oder bei Verwendung eines Tablets wie dem iPad <a href="http://fhem-host:8085/fhem">
|
||||
http://fhem-host:8085/fhem</a> eingeben.</p>
|
||||
<p><br>
|
||||
|
||||
|
@ -4,7 +4,10 @@
|
||||
|
||||
<head>
|
||||
<title>FHEM on Windows</title>
|
||||
<link rel="stylesheet" type="text/css" href="../www/pgm2/style.css" />
|
||||
<script type="text/javascript" src="fhemdoc.js"></script>
|
||||
<noscript>
|
||||
<link rel="stylesheet" type="text/css" href="../www/pgm2/style.css" />
|
||||
</noscript>
|
||||
<meta http-equiv="Content-type" content="text/html;charset=ISO-8859-1"/>
|
||||
</head>
|
||||
|
||||
|
@ -4,7 +4,10 @@
|
||||
|
||||
<head>
|
||||
<title>USB compendium</title>
|
||||
<link rel="stylesheet" type="text/css" href="../www/pgm2/style.css" />
|
||||
<script type="text/javascript" src="fhemdoc.js"></script>
|
||||
<noscript>
|
||||
<link rel="stylesheet" type="text/css" href="../www/pgm2/style.css" />
|
||||
</noscript>
|
||||
<meta http-equiv="Content-type" content="text/html;charset=ISO-8859-1"/>
|
||||
</head>
|
||||
|
||||
|
@ -3,8 +3,11 @@
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<title>fhem reference</title>
|
||||
<link rel="stylesheet" type="text/css" href="../www/pgm2/style.css" />
|
||||
<title>FHEM reference</title>
|
||||
<script type="text/javascript" src="fhemdoc.js"></script>
|
||||
<noscript>
|
||||
<link rel="stylesheet" type="text/css" href="../www/pgm2/style.css" />
|
||||
</noscript>
|
||||
<meta http-equiv="Content-type" content="text/html;charset=ISO-8859-1"/>
|
||||
<link rel="shortcut icon" href="/fhem/icons/favicon.ico"/>
|
||||
</head>
|
||||
@ -1345,7 +1348,9 @@ A line ending with \ will be concatenated with the next one, so long lines
|
||||
<li>To make date and time handling easier, the variables $sec, $min, $hour,
|
||||
$mday, $month, $year, $wday, $yday, $isdst are available in the perl
|
||||
oneliners (see also perldoc -f localtime). Exceptions: $month is in the
|
||||
range of 1 to 12, and $year is corrected by 1900 (as I would expect).<br>
|
||||
range of 1 to 12, and $year is corrected by 1900 (as I would expect).
|
||||
Additionally the variable $hms contains the time in the HH:MM:SS format.
|
||||
<br>
|
||||
Additionally the variabe $we is 1 if it is weekend (i.e $wday == 0 or
|
||||
$wday == 6), and 0 otherwise. If the <a href="#holiday2we">holida2we</a>
|
||||
global attribute is set, $we is 1 for holidays too.<br>
|
||||
|
@ -3,8 +3,11 @@
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<title>FHEM reference</title>
|
||||
<link rel="stylesheet" type="text/css" href="../www/pgm2/style.css" />
|
||||
<title>FHEM Referenz</title>
|
||||
<script type="text/javascript" src="fhemdoc.js"></script>
|
||||
<noscript>
|
||||
<link rel="stylesheet" type="text/css" href="../www/pgm2/style.css" />
|
||||
</noscript>
|
||||
<meta http-equiv="Content-type" content="text/html; charset=UTF-8">
|
||||
<link rel="shortcut icon" href="/fhem/icons/favicon.ico"/>
|
||||
|
||||
@ -1397,15 +1400,17 @@ bitte die Funktion fhem(),
|
||||
define n1 notify piri:on { fhem "set light on" }
|
||||
<p> </p>
|
||||
</ul>
|
||||
Bemerkung: Wenn diese Funktion einen wert zurück liefert, wird dieser in der
|
||||
allgemeinen Logdatei gespeichert.. Benutzen sie "1" als zweites Argument um
|
||||
dieses speichern zu verhindern. Sinnvoll ist dieses Argument bei der Abfrage von
|
||||
Werten mittels "get...".
|
||||
Bemerkung: Wenn diese Funktion einen wert zurück liefert, wird dieser
|
||||
in der allgemeinen Logdatei gespeichert.. Benutzen sie "1" als
|
||||
zweites Argument um dieses speichern zu verhindern. Sinnvoll ist dieses
|
||||
Argument bei der Abfrage von Werten mittels "get...".
|
||||
<br>
|
||||
<br>
|
||||
</li>
|
||||
|
||||
</li><li>Notify kann auch dazu verwendet werden, um Macros manuell auszuführen.
|
||||
Verwenden Sie den <a href="#trigger">trigger</a>-Befehl um das Makro zu starten:<br>
|
||||
<li>Notify kann auch dazu verwendet werden, um Macros manuell
|
||||
auszuführen. Verwenden Sie den <a href="#trigger">trigger</a>-Befehl
|
||||
um das Makro zu starten:<br>
|
||||
<ul>
|
||||
define MyMacro notify MyMacro { Log 1, "Hello"}<br>
|
||||
trigger MyMacro<br>
|
||||
@ -1413,18 +1418,22 @@ Verwenden Sie den <a href="#trigger">trigger</a>-Befehl um das Makro zu starten:
|
||||
trigger MyMacro MyArg<br>
|
||||
</ul>
|
||||
<br>
|
||||
</li>
|
||||
|
||||
<li>Um die Verwendung von Datum und Zeitangaben zu vereinfachen, wurden die
|
||||
Variablen $sec, $min, $hour, $mday, $month, $year, $wday, $yday, $isdst
|
||||
für die Verwendung in PERL-"oneliners" eingeführt (s.
|
||||
unter perldoc -f localtime). Ausnahmen: $month hat einen Wertebereich von 1
|
||||
to 12 und $year ist korrigiert von 1900.
|
||||
Weiterhin enthät $hms die Zeit in dem HH:MM:SS Format.
|
||||
<br>
|
||||
|
||||
Die Variabe $we hat den Wert 1 wenn der abgefragte Tag auf ein Wochenende
|
||||
fällt (Z.B. $wday == 0 [Sonntag] oder $wday == 6 [Samstag]), und 0
|
||||
für die anderen Wochentage. Wenn man das global <a
|
||||
href="#holiday2we">holida2we</a> Attribut setzt, dann ist $we ebenfalls 1
|
||||
bei Urlaubstagen.<br>
|
||||
|
||||
</li><li>Um die Verwendung von Datum und Zeitangaben zu vereinfachen, wurden
|
||||
die Variablen $sec, $min, $hour,
|
||||
$mday, $month, $year, $wday, $yday, $isdst für die Verwendung in PERL-"oneliners"
|
||||
eingeführt (s. unter perldoc -f localtime). Ausnahmen: $month hat einen
|
||||
Wertebereich von 1 to 12 und $year ist korrigiert von 1900.<br>
|
||||
Die weitere Variabe $we hat den Wert 1 wenn der abgefragte Tag auf ein
|
||||
Wochenende fällt (Z.B. $wday == 0 [Sonntag] oder
|
||||
$wday == 6 [Samstag]), und 0 für die anderen Wochentage. Wenn man das
|
||||
allgemeine <a href="#holiday2we">holida2we</a> Attribut setzt, dann ist $we
|
||||
ebenfalls 1 bei Urlaubstagen.<br>
|
||||
<ul>
|
||||
define n2 notify piri:on { if($hour > 18 || $hour < 5) {
|
||||
fhem "set light on" } }<br>
|
||||
@ -1439,10 +1448,10 @@ ebenfalls 1 bei Urlaubstagen.<br>
|
||||
wie jede mit 99 beginnende Datei automatisch geladen):
|
||||
<ul>
|
||||
<li>min(a,b), max(a,b)</li>
|
||||
<li>time_str2num("YYYY-MM-DD HH:MM:SS") gibt einen numerischen Wert zurück,
|
||||
der die Berechnung von Zeitdifferenzen vereinfacht</li>
|
||||
<li>time_str2num("YYYY-MM-DD HH:MM:SS") gibt einen numerischen Wert
|
||||
zurück, der die Berechnung von Zeitdifferenzen vereinfacht</li>
|
||||
<li>abstime2rel("HH:MM:SS") wandelt absolute in relative Zeitangaben um
|
||||
</li>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
|
@ -4,7 +4,10 @@
|
||||
|
||||
<head>
|
||||
<title>FHEM FAQ</title>
|
||||
<link rel="stylesheet" type="text/css" href="../www/pgm2/style.css" />
|
||||
<script type="text/javascript" src="fhemdoc.js"></script>
|
||||
<noscript>
|
||||
<link rel="stylesheet" type="text/css" href="../www/pgm2/style.css" />
|
||||
</noscript>
|
||||
<meta http-equiv="Content-type" content="text/html;charset=ISO-8859-1"/>
|
||||
</head>
|
||||
|
||||
|
@ -4,7 +4,11 @@
|
||||
|
||||
<head>
|
||||
<title>Home of FHEM</title>
|
||||
<link rel="stylesheet" type="text/css" href="../www/pgm2/style.css" />
|
||||
<script type="text/javascript" src="fhemdoc.js"></script>
|
||||
<noscript>
|
||||
<link rel="stylesheet" type="text/css" href="../www/pgm2/style.css" />
|
||||
</noscript>
|
||||
|
||||
<meta http-equiv="Content-type" content="text/html;charset=ISO-8859-1"/>
|
||||
<link rel="shortcut icon" href="favicon.ico"/>
|
||||
</head>
|
||||
|
@ -4,7 +4,10 @@
|
||||
|
||||
<head>
|
||||
<title>FHEMs Einstiegsseite</title>
|
||||
<link rel="stylesheet" type="text/css" href="../www/pgm2/style.css" />
|
||||
<script type="text/javascript" src="fhemdoc.js"></script>
|
||||
<noscript>
|
||||
<link rel="stylesheet" type="text/css" href="../www/pgm2/style.css" />
|
||||
</noscript>
|
||||
<meta http-equiv="Content-type" content="text/html;charset=ISO-8859-1"/>
|
||||
<link rel="shortcut icon" href="favicon.ico"/>
|
||||
</head>
|
||||
|
31
fhem/docs/fhemdoc.js
Normal file
31
fhem/docs/fhemdoc.js
Normal file
@ -0,0 +1,31 @@
|
||||
function
|
||||
room_table2select() {
|
||||
var ra = document.getElementsByClassName("room");
|
||||
if(!ra || !ra.length)
|
||||
return;
|
||||
ra = ra[0];
|
||||
ra.style.visibility='hidden';
|
||||
var aarr = ra.getElementsByTagName("a");
|
||||
var sel = document.createElement("select");
|
||||
sel.setAttribute("onChange",
|
||||
"location.href=this.options[this.selectedIndex].value");
|
||||
for(var i=0; i<aarr.length; i++) {
|
||||
var o = document.createElement("option");
|
||||
o.setAttribute("value", aarr[i].getAttribute("href"));
|
||||
o.innerHTML = aarr[i].innerHTML;
|
||||
sel.appendChild(o);
|
||||
}
|
||||
ra.parentElement.insertBefore(sel, ra);
|
||||
}
|
||||
|
||||
var link = document.createElement('link');
|
||||
link.rel = 'stylesheet';
|
||||
link.type = 'text/css';
|
||||
var ua = navigator.userAgent;
|
||||
if(ua.match("Mobile")) {
|
||||
window.onload = room_table2select;
|
||||
link.href="../www/pgm2/smallscreenstyle.css";
|
||||
} else {
|
||||
link.href="../www/pgm2/style.css";
|
||||
}
|
||||
document.getElementsByTagName("head")[0].appendChild(link);
|
@ -4,7 +4,10 @@
|
||||
|
||||
<head>
|
||||
<title>fhem on the Fritz!Box</title>
|
||||
<link rel="stylesheet" type="text/css" href="../www/pgm2/style.css" />
|
||||
<script type="text/javascript" src="fhemdoc.js"></script>
|
||||
<noscript>
|
||||
<link rel="stylesheet" type="text/css" href="../www/pgm2/style.css" />
|
||||
</noscript>
|
||||
<meta http-equiv="Content-type" content="text/html;charset=ISO-8859-1"/>
|
||||
</head>
|
||||
|
||||
|
@ -4,7 +4,10 @@
|
||||
|
||||
<head>
|
||||
<title>fhem.pl - Hints for GNU/Linux</title>
|
||||
<link rel="stylesheet" type="text/css" href="../www/pgm2/style.css" />
|
||||
<script type="text/javascript" src="fhemdoc.js"></script>
|
||||
<noscript>
|
||||
<link rel="stylesheet" type="text/css" href="../www/pgm2/style.css" />
|
||||
</noscript>
|
||||
<meta http-equiv="Content-type" content="text/html;charset=ISO-8859-1"/>
|
||||
</head>
|
||||
|
||||
|
@ -4,7 +4,10 @@
|
||||
|
||||
<head>
|
||||
<title>fhem.pl - Hinweise zu GNU/Linux</title>
|
||||
<link rel="stylesheet" type="text/css" href="../www/pgm2/style.css" />
|
||||
<script type="text/javascript" src="fhemdoc.js"></script>
|
||||
<noscript>
|
||||
<link rel="stylesheet" type="text/css" href="../www/pgm2/style.css" />
|
||||
</noscript>
|
||||
<meta http-equiv="Content-type" content="text/html;charset=UTF-8"/>
|
||||
</head>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user