With recent events, I have been introduced to Cron_Plus
.
Until recently (well When I first wanted to do this Bigtimer
was the goto node as it offered sunrise/set/etc times.
You enter the Lat/Long and all is done.
So, here's the problem:
I have bigtimer
set up for sunrise/set times.
(Code/Node)
[{"id":"78bece90.f1aca8","type":"bigtimer","z":"c636aa5a.cc34","outtopic":"DAYTIME","outpayload1":"SUNRISE","outpayload2":"SUNSET","name":"Day Start/End","lat":"-33.51","lon":"151.12","starttime":"5003","endtime":"5004","startoff":0,"endoff":0,"offs":"0","outtext1":"Sun rise","outtext2":"Sun set","timeout":1440,"sun":true,"mon":true,"tue":true,"wed":true,"thu":true,"fri":true,"sat":true,"jan":true,"feb":true,"mar":true,"apr":true,"may":true,"jun":true,"jul":true,"aug":true,"sep":true,"oct":true,"nov":true,"dec":true,"day1":0,"month1":0,"day2":0,"month2":0,"day3":0,"month3":0,"day4":0,"month4":0,"day5":0,"month5":0,"d1":0,"w1":0,"d2":0,"w2":0,"d3":0,"w3":0,"d4":0,"w4":0,"d5":0,"w5":0,"suspend":false,"random":false,"repeat":true,"atstart":true,"odd":false,"even":false,"x":290,"y":110,"wires":[["bdfd1901.fa4e6","5f3c122b.53cd64"],["5a9aa6df.bc03c8","2fff825f.4c298e","bc2f9e5d.e193c8","419764dc.3b0cac"],["f57f811c.4641d8","d8c5c8aa.893d8"]]}]
The output says Sunset is 19:54 today. Which is pretty close to what other sources say.
And I'm guessing those times are for the timezone, not my exact longitude.
Which is what I am guessing Bigtimer
is giving me.
Anyway, Cron_Plus
has become of interest because it has some features I think are nicer than Bigtimer
's.
So, I set things up for SUNSET. Enter Lat/Long via its map.
Sunset: 18:35
[{"id":"a3f53c75.bc923","type":"cronplus","z":"b25fd092.bcc758","name":"Day Start / End","outputField":"payload","timeZone":"","persistDynamic":true,"commandResponseMsgOutput":"output1","outputs":1,"options":[{"name":"Dawn","topic":"schedule1","payloadType":"str","payload":"Dawn","expressionType":"solar","expression":"0 * * * * * *","location":"33.88094790268725 -208.87731456743495","offset":"0","solarType":"selected","solarEvents":"sunrise"},{"name":"Dusk","topic":"schedule2","payloadType":"str","payload":"Dusk","expressionType":"solar","expression":"0 * * * * * *","location":"33.88094790268725 -208.87731456743495","offset":"0","solarType":"selected","solarEvents":"sunset"}],"x":2010,"y":510,"wires":[["a9dfb0d5.092938"]]}]
That's about 90 minutes difference.
Could someone explain what I am missing?
Thanks.
Update:
This is interesting:
How I scrolled to where I am I went the wrong way and the LONG was -208.... something.
(Which can't exist)
I scrolled the right way and got it to 151.
Now when deployed the sunset time is 19:55 which is more acceptable.
New node/code
[{"id":"a3f53c75.bc923","type":"cronplus","z":"b25fd092.bcc758","name":"Day Start / End","outputField":"payload","timeZone":"","persistDynamic":true,"commandResponseMsgOutput":"output1","outputs":1,"options":[{"name":"Dawn","topic":"schedule1","payloadType":"str","payload":"Dawn","expressionType":"solar","expression":"0 * * * * * *","location":"-33.88050254877312 151.12279272092562","offset":"0","solarType":"selected","solarEvents":"sunrise"},{"name":"Dusk","topic":"schedule2","payloadType":"str","payload":"Dusk","expressionType":"solar","expression":"0 * * * * * *","location":"-33.88050254877312 151.12279272092562","offset":"0","solarType":"selected","solarEvents":"sunset"}],"x":2010,"y":510,"wires":[["a9dfb0d5.092938"]]}]