Event before sunrise? Topic is solved

Moderator: leecollings

Post Reply
MatthijsD
Posts: 45
Joined: Sunday 19 March 2017 11:48
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Event before sunrise?

Post by MatthijsD »

Hello,

I'm struggeling with activating a scene 1,5 hour before sunset.
This is what I got so far:
sunset.JPG
sunset.JPG (45.9 KiB) Viewed 2536 times
I think the '90' is not recognized as minutes, but I don't know how to get it right.
Does anyone know how to do this right?
gerard76
Posts: 53
Joined: Wednesday 22 March 2017 9:13
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.8153
Contact:

Re: Event before sunrise?

Post by gerard76 »

You cannot do calculations in Blockly AFAIK. You can use LUA to do what you want OR set your lat-lng to some place where the sun sets 1.5 hours earlier and then just trigger the blocky on sunset.
gerardvs
Posts: 81
Joined: Sunday 04 January 2015 0:01
Target OS: Raspberry Pi / ODroid
Domoticz version: latest-1
Location: /dev/null
Contact:

Re: Event before sunrise?

Post by gerardvs »

Or use a dummy switch. Let that switch go on 1.5 hrs before sunset. From blocky you could read the status of the dummy switch so you "know' when it's time to do something.
Lebo2d9
Posts: 139
Joined: Tuesday 06 September 2016 20:39
Target OS: Raspberry Pi / ODroid
Domoticz version: L stab
Location: Belgium
Contact:

Re: RE: Re: Event before sunrise?

Post by Lebo2d9 »

gerardvs wrote:Or use a dummy switch. Let that switch go on 1.5 hrs before sunset. From blocky you could read the status of the dummy switch so you "know' when it's time to do something.
I use also a dummy switch where i set the timer

Verstuurd vanaf mijn SM-G920F met Tapatalk
Domoicz on RPI3 (wifi) directly connected 3x ds18b20 for CV temp, Evohome (9 zone), 1 remote 220V switch based on ESP-12. RFXtrx433E, 16x AMST-606, 5 Somfy RTS motors
Domoticz on RPI3(wifi) as slave for terraruim control
More to come
MatthijsD
Posts: 45
Joined: Sunday 19 March 2017 11:48
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Event before sunrise?

Post by MatthijsD »

Yes, thanks everyone.
The use of a switch is the way to go!
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest