Page 1 of 1

send sunrise/sunset variables to controller

Posted: 12 Jan 2019, 17:26
by TungstenE2
Hi all,

is there a way to send the sunrise/sunset variables to controller (FHEM)?

I would like to show the sunrise/sunset time in my FHEM Tablet UI.

There reason why I do not use the sunrise modul: https://fhem.de/commandref.html#SUNRISE_EL

Seems like FHEM is using the civil calculation by default. This is different to the ESPeasy calculation, which seems to be the real (horizon = 0 degree).
But when I use the sunrise ("REAL") I still see a difference.

{ my $s = sunrise("REAL",0); fhem("set Sonnenaufgang $s"); $s = sunset("REAL",0); fhem("set Sonnenuntergang $s"); $s = sunset("REAL",1800); fhem("set SonnenuntergangPlus $s"); }

So I would like to send the ESPeasy varaiables to FHEM. Is this possible and how?

thx

Re: send sunrise/sunset variables to controller

Posted: 15 Jan 2019, 12:05
by TungstenE2