From 9ef065cb8ee6a54fbc52d4ec6ae7b40f994b8291 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 5 Mar 2014 20:46:41 +0100 Subject: add todos MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- TODO | 2 ++ src/plugins/lunar.py | 15 +++++++++++++++ 2 files changed, 17 insertions(+) diff --git a/TODO b/TODO index 95a760c..768c2f4 100644 --- a/TODO +++ b/TODO @@ -20,6 +20,8 @@ List of plugins to implement: Keyboard lock keys Keyboard layout EWMH + Meteor Showers + Calendars: holidays, birthdays, name days, events /proc/interrupts /proc/net/sockstat /proc/net/sockstat6 diff --git a/src/plugins/lunar.py b/src/plugins/lunar.py index 2df7c0c..c193369 100644 --- a/src/plugins/lunar.py +++ b/src/plugins/lunar.py @@ -43,6 +43,7 @@ ref = julian_day(934329600) # 11 August 1999 00:00:00 UTC now = julian_day(time.time()) synodic_month = 29.530588853 +# TODO how to we calculate the Moon's apparent geocentric celestial longitude fraction = ((now - ref) / synodic_month) % 1 waxing = fraction <= 0.5 # we get an off by one without equality print('fraction: %f' % fraction) @@ -63,3 +64,17 @@ if (not waxing) != inverted: print('illumination: %.2f%%' % (illumination * 100)) +# TODO add libration +# TODO add phase names +# TODO add solar and lunar eclipses +# TODO add position of sunlit area +# TODO add tides +# TODO add blue moon +# TODO add black moon +# TODO add moon colour +# TODO add altitude +# TODO add azimuth +# TODO add zodiac sign +# TODO add distances +# TODO add angular diameters + -- cgit v1.2.3-70-g09d2