OK, I made the changed in the ".reminders_moonsun" file: SET $LatDeg 58 SET $LatMin 25 SET $LatSec 18
SET $LongDeg -34 SET $LongMin -37 SET $LongSec -55 FSET tomins(t) (hour(t) * 60) + minute(t) FSET frommins(i) time(i / 60, i % 60) FSET noon_solar(dt) sunrise(dt) + (sunset(dt)-sunrise(dt)) / 2 MSG ----- MSG Sun Rise: [sunrise()] Set: [sunset()] 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 What I see from that is: ----- Sun Rise: 01:11 Set: 11.43 Solar noon: 06:27 Daylight: 632 Minutes Moonlight: 808 Minutes Something not right. I got my lat/long info from Google maps. I'm not the brightest bulb in the room. Not even looking at dawn() or dusk() yet. On Mon, 12 Oct 2020 at 11:51, Dianne Skoll via Remind-fans < [email protected]> wrote: > The following statements: > > > ## 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) > > ... have no effect. Or at least, not the *desired* effect. Instead use: > > SET $LatDeg 58 > SET $LatMin 25 > SET $LatSec 18 > > SET $LongDeg -34 > SET $LongMin -37 > SER $LongSec -55 > > Note the "$". Note also that Remind does not support floating point. > Saying SET LongSec(-55.6) should have given a syntax error. > > > ## SUN STUFF ## > > SET sunrise(date) > > SET sunset(date) > > SET dusk(date) > > SET dawn(date) > > SET sunrise(date) > > SET sunset(date) > > The above statements are not only unnecessary, but I'm surprised they > don't throw a whole lot of errors. > > > FSET noon_solar(dt) frommins(( \tomins(sunrise(dt)) + tomins(sunset(dt)) > \) / 2) > > Better to use: > > FSET noon_solar(dt) sunrise(dt) + (sunset(dt)-sunrise(dt)) / 2 > > Regards, > > Dianne. > _______________________________________________ > Remind-fans mailing list > [email protected] > https://dianne.skoll.ca/mailman/listinfo/remind-fans > Remind is at https://dianne.skoll.ca/projects/remind/ >
_______________________________________________ Remind-fans mailing list [email protected] https://dianne.skoll.ca/mailman/listinfo/remind-fans Remind is at https://dianne.skoll.ca/projects/remind/
