aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-03-05 20:46:41 +0100
committerMattias Andrée <maandree@operamail.com>2014-03-05 20:46:41 +0100
commit9ef065cb8ee6a54fbc52d4ec6ae7b40f994b8291 (patch)
tree4999b3ecf61626209b3c523bbe7d0a43f12518b6
parentprototype of lunar (diff)
downloadxpybar-9ef065cb8ee6a54fbc52d4ec6ae7b40f994b8291.tar.gz
xpybar-9ef065cb8ee6a54fbc52d4ec6ae7b40f994b8291.tar.bz2
xpybar-9ef065cb8ee6a54fbc52d4ec6ae7b40f994b8291.tar.xz
add todos
Signed-off-by: Mattias Andrée <maandree@operamail.com>
-rw-r--r--TODO2
-rw-r--r--src/plugins/lunar.py15
2 files changed, 17 insertions, 0 deletions
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
+