Sunrise/sunset

Moderators: grovkillen, Stuntteam, TD-er, enesbcs

Post Reply
Message
Author
zerocool59
New user
Posts: 6
Joined: 07 Apr 2021, 20:24

Sunrise/sunset

#1 Post by zerocool59 » 09 Apr 2021, 17:43

Hallo @ all..
First ....rpieasy is exactly what I was looking for. Respect :!: :!: :!:
My problem is that sunrise and sunset command doesn't work .
Suntime is installed and systemvariables are okay.
I'm running the same rules on esp32 and it works.
So i don't know what i am doing wrong.maybe someone had the same problem and can point me
In the right direction.
Thx in advance

User avatar
enesbcs
Normal user
Posts: 587
Joined: 18 Jun 2017, 11:02
Location: Békéscsaba, Hungary
Contact:

Re: Sunrise/sunset

#2 Post by enesbcs » 10 Apr 2021, 16:15

zerocool59 wrote: 09 Apr 2021, 17:43 Hallo @ all..
My problem is that sunrise and sunset command doesn't work .
Suntime is installed and systemvariables are okay.
I have no knowledge about these commands. suntime and sunrise are variables.
If GPS coordinates are saved, they have to work, this is mine:

Code: Select all

%sunrise%	05:59
%sunset%	19:16

zerocool59
New user
Posts: 6
Joined: 07 Apr 2021, 20:24

Re: Sunrise/sunset

#3 Post by zerocool59 » 11 Apr 2021, 12:17

Thank you for your answer...
GPS are set...
Variables are 6.17 and 20.01 ..
I will keep on trying....

User avatar
enesbcs
Normal user
Posts: 587
Joined: 18 Jun 2017, 11:02
Location: Békéscsaba, Hungary
Contact:

Re: Sunrise/sunset

#4 Post by enesbcs » 11 Apr 2021, 14:13

zerocool59 wrote: 11 Apr 2021, 12:17 Thank you for your answer...
GPS are set...
Variables are 6.17 and 20.01 ..
I will keep on trying....
Please include the code that is not working for you.

zerocool59
New user
Posts: 6
Joined: 07 Apr 2021, 20:24

Re: Sunrise/sunset

#5 Post by zerocool59 » 11 Apr 2021, 18:12

Hello,
so this is the testcode that works:

On Clock#Time=All,18:02 do
sendTo,9,gpio,12,1//sonoff S20
endon

and this one not :(

On Clock#Time=All,%sunset% do
sendTo,9,gpio,12,1
endon

thank you for helping me

User avatar
enesbcs
Normal user
Posts: 587
Joined: 18 Jun 2017, 11:02
Location: Békéscsaba, Hungary
Contact:

Re: Sunrise/sunset

#6 Post by enesbcs » 11 Apr 2021, 18:43

zerocool59 wrote: 11 Apr 2021, 12:17 Variables are 6.17 and 20.01 ..
"." instead of ":" may be a huge issue, for some reason your locale has override requested %H:%M setting. Other time string on variables pages showed with colon? ":"

zerocool59
New user
Posts: 6
Joined: 07 Apr 2021, 20:24

Re: Sunrise/sunset

#7 Post by zerocool59 » 12 Apr 2021, 06:39

I'm so sorry..
It 's of course 6":"17
My fault.. :?
Wer lesen kann ist klar im vorteil ;)

User avatar
enesbcs
Normal user
Posts: 587
Joined: 18 Jun 2017, 11:02
Location: Békéscsaba, Hungary
Contact:

Re: Sunrise/sunset

#8 Post by enesbcs » 12 Apr 2021, 07:13

zerocool59 wrote: 12 Apr 2021, 06:39 I'm so sorry..
It 's of course 6":"17
My fault.. :?
Wer lesen kann ist klar im vorteil ;)
I see, and does it have a leading zero? 06:17 ?
if not, try to update to latest RPIEasy version.

zerocool59
New user
Posts: 6
Joined: 07 Apr 2021, 20:24

Re: Sunrise/sunset

#9 Post by zerocool59 » 12 Apr 2021, 09:58

Yes it has a leading zero..
I think I should write a little bit more precise :?
It's for me the first time writing in a forum..but i will get better :roll:
I updated to newest version
I tried %sunrise+3h% ..so it should start at 09:31..but no success...
Then again with
On Clock#Time=All,09:54 do
..worked
thanks for your patience with me

User avatar
enesbcs
Normal user
Posts: 587
Joined: 18 Jun 2017, 11:02
Location: Békéscsaba, Hungary
Contact:

Re: Sunrise/sunset

#10 Post by enesbcs » 12 Apr 2021, 17:52

zerocool59 wrote: 12 Apr 2021, 09:58 I tried %sunrise+3h% ..so it should start at 09:31..but no success...
You write %sunset% for the first time:
zerocool59 wrote: 11 Apr 2021, 18:12 On Clock#Time=All,%sunset% do
sendTo,9,gpio,12,1
endon
which should work, please stick to the original problem.

"+3h" and so on is not programmed into RPIEasy so they are not work, until someone has a lot of time to code it...

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest