[Remind-Fans] Sun info & day|night times

Sector11 sector11sr71 at gmail.com
Sun Oct 11 12:18:49 EDT 2020


Been fighting with this for a long time ... 
recent posts have brought it to the forefront yet agaun.

Where an I going wrong here  The moon info is perfect thanks to Diane

But the sun info and daylight and moonlight "times" fail
see image: https://scrot.cloud/image/4HVM

Notice how "Solar Noon" and "Zenith" are out of sync. (wttr.in)
My guess is I have  latitudes and longitudes wrong.

↓↓↓↓↓ code ↓↓↓↓↓
#### Moon Stuff ###
SET newmoon moondate(0)
SET firstquarter moondate(1)
SET fullmoon moondate(2)
SET thirdquarter moondate(3)

MSG Next New Moon    Next 1st Quarter
MSG  at [moontime(0)]         at [moontime(1)]
MSG  on [moondate(0)]    on [moondate(1)]
MSG                 ·
MSG Next Full Moon    Next 3rd Quarter
MSG  at [moontime(2)]         at [moontime(3)]
MSG  on [moondate(2)]    on [moondate(3)]

## Western  #### RANDOM PICK ON GOOGLE MAP
SET LatDeg(58) ## -58.421753 58°25'18.3"W
SET LatMin(25)
SET LatSec(18.3)
## Southern
SET LongDeg(-34)  ## -34.632117 34°37'55.6"S
SET LongMin(-37)
SET LongSec(-55.6)

##  SUN STUFF ##
SET sunrise(date)
SET sunset(date)
SET dusk(date)
SET dawn(date)
SET sunrise(date)
SET sunset(date)
FSET tomins(t) (hour(t) * 60) + minute(t)
FSET frommins(i) time(i / 60, i % 60)
FSET noon_solar(dt) frommins(( \tomins(sunrise(dt)) + tomins(sunset(dt)) \) / 2)
MSG -----
MSG Sun Rise: [sunrise($T)]   Set: [sunset($T)]
MSG    Solar noon: [noon_solar($T)]
###
FSET _light_len(date) MAX(SUNSET(date)-SUNRISE(date), 0)
FSET _dark_len(date) 1440-_light_len(date)
MSG  Daylight: [_light_len($T)] Minutes
MSG Moonlight: [_dark_len($T)] Minutes
↑↑↑↑↑ code ↑↑↑↑↑

Any help appreciated
Stay Safe, Be Well, Survive.



More information about the Remind-fans mailing list