Update solarconditions.py

This commit is contained in:
SpudGunMan
2024-06-19 23:25:47 -07:00
parent 46ad313963
commit 5f3fbaa0f9

View File

@@ -118,8 +118,8 @@ def get_moon(lat=0, lon=0):
local_next_full_moon = ephem.localtime(ephem.next_full_moon((obs.date)))
local_next_new_moon = ephem.localtime(ephem.next_new_moon((obs.date)))
moon_table['next_full_moon'] = local_next_full_moon.strftime('%a %M %d %I:%M')
moon_table['next_new_moon'] = local_next_new_moon.strftime('%a %M %d %I:%M')
moon_table['next_full_moon'] = local_next_full_moon.strftime('%a M %d %I:%M')
moon_table['next_new_moon'] = local_next_new_moon.strftime('%a M %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'])) + "%" \