send sunrise/sunset variables to controller

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
TungstenE2
Normal user
Posts: 123
Joined: 03 Apr 2018, 21:46

send sunrise/sunset variables to controller

#1 Post by TungstenE2 » 12 Jan 2019, 17:26

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

TungstenE2
Normal user
Posts: 123
Joined: 03 Apr 2018, 21:46

Re: send sunrise/sunset variables to controller

#2 Post by TungstenE2 » 15 Jan 2019, 12:05


Post Reply

Who is online

Users browsing this forum: No registered users and 18 guests