Write out sunset time

pull/1/head
Cees Bassa 2018-03-20 13:41:17 +01:00
parent e13e3cc51b
commit e03e64fdfe
1 changed files with 1 additions and 1 deletions

View File

@ -163,7 +163,7 @@ if __name__ == '__main__':
tend=trise
elif (trise>=tset):
dt=np.floor((tset-tnow).to(u.s).value)
print("The sun is above the horizon. Waiting %.0f seconds."%dt)
print("The sun is above the horizon. Sunset at %s.\nWaiting %.0f seconds."%(tset.isot,dt))
tend=trise
try:
time.sleep(dt)