From f002fc3a135340a9b59db488faafedb0c93c26fb Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Wed, 19 Jun 2024 21:41:15 -0700 Subject: [PATCH] Update solarconditions.py --- solarconditions.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/solarconditions.py b/solarconditions.py index 1c53b5a..f227934 100644 --- a/solarconditions.py +++ b/solarconditions.py @@ -112,10 +112,10 @@ def get_moon(lat=0, lon=0): moon_table['illumination'] = moon.phase moon_table['azimuth'] = moon.az moon_table['altitude'] = moon.alt - moon_table['rise_time'] = obs.next_rising(moon) - moon_table['set_time'] = obs.next_setting(moon) - moon_table['next_full_moon'] = ephem.next_full_moon(ephem.localtime(obs.date)) - moon_table['next_new_moon'] = ephem.next_new_moon(ephem.localtime(obs.date)) + moon_table['rise_time'] = obs.next_rising(moon).strftime('%a %d %I:%M') + moon_table['set_time'] = obs.next_setting(moon).strftime('%a %d %I:%M') + moon_table['next_full_moon'] = ephem.next_full_moon(ephem.localtime(obs.date)).strftime('%m %a %d %I:%M') + moon_table['next_new_moon'] = ephem.next_new_moon(ephem.localtime(obs.date)).strftime('%m %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'])) + "%" \