patrick-ausderau / AurorAlertFinland

Android app that trigger an alert if the conditions to see aurora are met (dark sky, low cloud cover and high magnetic activity)
GNU General Public License v3.0
0 stars 0 forks source link

Darkness #2

Open patrick-ausderau opened 6 years ago

patrick-ausderau commented 6 years ago

Calculate sunrise/set and nautical, (amateur) astronomical twilight for current location.

gnu gcal equivalent in Android?

$w=120 $s=180 $v=%2%4 $p=0*d1#999

;long/lat (around Espoo) $c=+60.22+024.80 $x= A Twilight: %o9$c,$w ~ AA Twilight: %o8$c,$w ~ N Twilight: %o7$c,$w ~ C Twilight: %o6$c,$w ~ Sunrise: %o$c,$w ~ Sunset: %s$c,$w ~ C Twilight: %s6$c,$w ~ N Twilight: %s7$c,$w ~ AA Twilight: %s8$c,$w ~ A Twilight: %s9$c,$w ~ Daylength: %u$c,$w ~ Nightlength: %z$c,$w ~ %Z ~~ Moon phase: %O ~ Moonrise: %($c,$w ~ Moonset: %)$c,$w $y= A Twilight: %o9$c,$s ~ AA Twilight: %o8$c,$s ~ N Twilight: %o7$c,$s ~ C Twilight: %o6$c,$s ~ Sunrise: %o$c,$s ~ Sunset: %s$c,$s ~ C Twilight: %s6$c,$s ~ N Twilight: %s7$c,$s ~ AA Twilight: %s8$c,$s ~ A Twilight: %s9$c,$s ~ Daylength: %u$c,$s ~ Nightlength: %z$c,$s ~ %Z ~~ Moon phase: %O ~ Moonrise: %($c,$s ~ Moonset: %)$c,$s

; Winter time selector $b=%e#1980 %i0@a#0@b-1 b=10sun9

; Summer time selector $a=%e#1980 %e0@a#0@b-1 a=03sun9

; What will be written, through selectors. $p $a $x $p $b $y

patrick-ausderau commented 6 years ago

Found: SuntimesWidget which use what is needed SunriseSunset