Adding moon phase module

This commit is contained in:
Aaron Fordham 2015-09-11 09:13:10 +00:00
parent e939d54eaf
commit 78d9bdda27

View File

@ -54,6 +54,8 @@ class MoonPhase(IntervalModule):
} }
color = "#ffffff"
phase_color = { phase_color = {
"New Moon": "#00BDE5", "New Moon": "#00BDE5",
"Waxing Crescent": "#138DD8", "Waxing Crescent": "#138DD8",
@ -112,6 +114,8 @@ class MoonPhase(IntervalModule):
def run(self): def run(self):
color = self.color
fdict = { fdict = {
"status": self.status[self.current_phase()], "status": self.status[self.current_phase()],
"illum": self.illum(), "illum": self.illum(),