From 5e5f8e59058ebcea0cc89eadeb66de2c13f8ec10 Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Wed, 19 Jun 2024 21:33:28 -0700 Subject: [PATCH] Update solarconditions.py --- solarconditions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/solarconditions.py b/solarconditions.py index f6bab58..4da83a9 100644 --- a/solarconditions.py +++ b/solarconditions.py @@ -114,8 +114,8 @@ def get_moon(lat=0, lon=0): moon_table['altitude'] = moon.alt moon_table['rise_time'] = ephem.localtime(obs.next_rising(moon)).strftime('%a %d %I:%M') moon_table['set_time'] = ephem.localtime(obs.next_rising(moon)).strftime('%a %d %I:%M') - moon_table['next_full_moon'] = ephem.localtime(obs.next_rising(moon)).strftime('%a %d %I:%M') - moon_table['next_new_moon'] = ephem.localtime(obs.next_rising(moon)).strftime('%a %d %I:%M') + moon_table['next_full_moon'] = ephem.localtime(obs.next_full_moon()).strftime('%a %d %I:%M') + moon_table['next_new_moon'] = ephem.localtime(obs.next_new_moon()).strftime('%a %d %I:%M') moon_data = f"Moon Rise:" + moon_table['rise_time'] + " Set:" + moon_table['set_time'] + "\nMoon Phase:" \ + moon_table['phase'] + " @:" + str('{0:.2f}'.format(moon_table['illumination'])) + "%" \