diff --git a/FHEM/99_SUNRISE_EL.pm b/FHEM/99_SUNRISE_EL.pm
index 6d394b2d9..fa5b5bb94 100755
--- a/FHEM/99_SUNRISE_EL.pm
+++ b/FHEM/99_SUNRISE_EL.pm
@@ -20,8 +20,8 @@ sub sunrise_coord($$$);
sub SUNRISE_Initialize($);
# See perldoc DateTime::Event::Sunrise for details
-my $long = "8.686";
-my $lat = "50.112";
+my $long;
+my $lat;
my $tz = ""; # will be overwritten
my $altit = "-6"; # Civil twilight
my $RADEG = ( 180 / 3.1415926 );
@@ -50,6 +50,15 @@ sr($$$$$$)
my $needset = (!$rise || $daycheck) ? 1 : 0;
$seconds = 0 if(!$seconds);
+ ############################
+ # If set in global, use longitude/latitude
+ # from global, otherwise set Frankfurt/Germany as
+ # default
+ $long = AttrVal("global", "longitude", "8.686");
+ $lat = AttrVal("global", "latitude", "50.112");
+ Log 5, "Compute sunrise/sunset for latitude $lat , longitude $long";
+
+
my $nt = time;
my @lt = localtime($nt);
my $gmtoff = _calctz($nt,@lt); # in hour
diff --git a/docs/commandref.html b/docs/commandref.html
index f058bbf95..d3d63d477 100644
--- a/docs/commandref.html
+++ b/docs/commandref.html
@@ -924,6 +924,13 @@ A line ending with \ will be concatenated with the next one, so long lines
This attribute is DEPRECATED, use notify, with
the INITIALIZED event to execute commands after initialization.
+
+
+
latitude
+ If set, this latitude is used to calculate sunset/sunrise
+ Notation need to be in decimal format (for example Berlin = 52.666)
+ As default Frankfurt/Main, Germany (50.112) is used.
+
logfile
@@ -933,6 +940,13 @@ A line ending with \ will be concatenated with the next one, so long lines
see the FileLog section.
+
modpath
Specify the path to the modules directory FHEM. The path
@@ -3031,6 +3045,25 @@ A line ending with \ will be concatenated with the next one, so long lines
Set
+ - MD15 commands. Note: The command is not sent until the MD15
+ wakes up and sends a mesage, usually every 10 minutes.
+
+ - actuator <value>
+ Set the actuator to the specifed percent value (0-100)
+ - desired-temp <value>
+ Use the builtin PI regulator, and set the desired temperature to the
+ specified degree. The actual value will be taken from the temperature
+ reported by the MD15.
+ - desired+actual <value1> <value2>
+ Use the builtin PI regulator, and set the desired temperature to
+ <value1>. The actual value is supplied in <value2>
+ - unattended
+ Do not regulate the MD15.
+
+
+
+ - all other:
+
set switch1 <value>
where value is one of A0,AI,B0,BI,C0,CI,D0,DI, combinations of
@@ -3055,6 +3088,9 @@ A line ending with \ will be concatenated with the next one, so long lines
attr eventMap BI:on B0:off
set switch1 on
+
+
+
@@ -3118,11 +3154,28 @@ A line ending with \ will be concatenated with the next one, so long lines
- temperature: XY.Z
- set_point: [0..255]
-
- fan: [0,1,2,3,Auto]
+
- fan: [0|1|2|3|Auto]
- present: yes
- learnBtn: on
-
- T: XY.Z SP: [0..255] F: [0,1,2,3,Auto] P: [yes|no]
+
- T: XY.Z SP: [0..255] F: [0|1|2|3|Auto] P: [yes|no]
+ MD15-FtL-HE (Heating/Valve-regulator)
+ subType must be MD15. This is done if the device was created by
+ autocreate.
+
+ - $actuator %
+
- currentValue: $actuator
+
- serviceOn: [yes|no]
+
- energyInput: [enabled|disabled]
+
- energyStorage: [charged|empty]
+
- battery: [ok|empty]
+
- cover: [open|closed]
+
- tempSensor: [failed|ok]
+
- window: [open|closed]
+
- actuator: [ok|obstructed]
+
- temperature: $tmp
+
+
diff --git a/docs/faq.html b/docs/faq.html
index dc6b1ca53..e9708a75e 100644
--- a/docs/faq.html
+++ b/docs/faq.html
@@ -327,8 +327,8 @@ by fhem.pl?
Look for the geographic coordinates of your home, e.g with a GPS
receiver or with googleearth. Compute the latitude/longitude as needed, and
- enter them in your 99_SUNRISE_EL.pm file.
- After restart, { sunrise() } will return the time of the next sunrise,
+ set the latitude/longitude global attributes.
+ { sunrise() } now will return the time of the next sunrise,
in a HH:MM:SS format. Also note faq20
Note: 99_SUNRISE_EL.pm is the ExtraLight version of the original
diff --git a/fhem.pl b/fhem.pl
index a9241196c..83d37088f 100755
--- a/fhem.pl
+++ b/fhem.pl
@@ -167,7 +167,7 @@ my $nextat; # Time when next timer will be triggered.
my $intAtCnt=0;
my %duplicate; # Pool of received msg for multi-fhz/cul setups
my $duplidx=0; # helper for the above pool
-my $cvsid = '$Id: fhem.pl,v 1.154 2011-10-02 12:27:51 rudolfkoenig Exp $';
+my $cvsid = '$Id: fhem.pl,v 1.155 2011-10-16 07:55:20 rudolfkoenig Exp $';
my $namedef =
"where is either:\n" .
"- a single device name\n" .
@@ -185,7 +185,7 @@ $modules{Global}{AttrList} =
"archivecmd allowfrom archivedir configfile lastinclude logfile " .
"modpath nrarchive pidfilename port statefile title userattr " .
"verbose:1,2,3,4,5 mseclog version nofork logdir holiday2we " .
- "autoload_undefined_devices dupTimeout";
+ "autoload_undefined_devices dupTimeout latitude longitude";
$modules{Global}{AttrFn} = "GlobalAttr";
my $commonAttr = "eventMap";