Originally posted by: <email address deleted>
Hallo miteinander,
wo kann ich die Definitionen für Wochentage, Werktage etc finden?
Die Beispielkonfigurationen / commandref kenne ich natürlich - habe
aber nichts gefunden?
# Only do this on weekend
define a12 at +*{sunset_rel()} { fhem("set lamp on-till 23:00")
if($we) }
Aus Beispielen hier im Forum glaube ich zu wissen das if (!$we)
bedeutet: nur Werktage - ist da der Samstag mit dabei?
Wie würde eine Schaltung aussehen für Montag bis Samstag? z.B. für
den Zeitungsboten?
Greets
Markus
--
To unsubscribe from this group, send email to
fhem-users+unsubscribe@googlegroups.com
> Die Beispielkonfigurationen / commandref kenne ich natürlich - habe
> aber nichts gefunden?
Wenn man im commandref.html nach $we sucht, dann sollte man an folgendes
vorbeikommen:
To make date and time handling easier, before evaluating a perl expression
the variables $sec, $min, $hour, $mday, $month, $year, $wday, $yday, $isdst
are set (see perldoc -f localtime), with the exception that $month is in the
range of 1 to 12, and $year is also corrected by 1900 (as one would normally
expect). Additionally $we is 1 if it is weekend (i.e $wday == 0 || $wday ==
6), and 0 otherwise. If the holida2we global attribute is set, $we is 1 for
holidays too.
Ich habe dieses Posting zum Anlass genommen die Informationsdichte des
betroffenen Kapitels durch hinzufuegen von Beispielen und Leerzeilen deutlich
zu senken :) Siehe auch http://fhem.de/commandref.html/perl
--
To unsubscribe from this group, send email to
fhem-users+unsubscribe@googlegroups.com