Page 1 of 1

Sunrise/sunset

Posted: 09 Apr 2021, 17:43
by zerocool59
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

Re: Sunrise/sunset

Posted: 10 Apr 2021, 16:15
by enesbcs
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

Re: Sunrise/sunset

Posted: 11 Apr 2021, 12:17
by zerocool59
Thank you for your answer...
GPS are set...
Variables are 6.17 and 20.01 ..
I will keep on trying....

Re: Sunrise/sunset

Posted: 11 Apr 2021, 14:13
by enesbcs
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.

Re: Sunrise/sunset

Posted: 11 Apr 2021, 18:12
by zerocool59
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

Re: Sunrise/sunset

Posted: 11 Apr 2021, 18:43
by enesbcs
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? ":"

Re: Sunrise/sunset

Posted: 12 Apr 2021, 06:39
by zerocool59
I'm so sorry..
It 's of course 6":"17
My fault.. :?
Wer lesen kann ist klar im vorteil ;)

Re: Sunrise/sunset

Posted: 12 Apr 2021, 07:13
by enesbcs
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.

Re: Sunrise/sunset

Posted: 12 Apr 2021, 09:58
by zerocool59
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

Re: Sunrise/sunset

Posted: 12 Apr 2021, 17:52
by enesbcs
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...