reynico / raspberry-noaa

Fully automated ISS SSTV, NOAA and Meteor satellite image downloader using Raspberry PI
https://github.com/reynico/raspberry-noaa
GNU General Public License v3.0
179 stars 56 forks source link

[Error] #119

Closed colinluthier closed 3 years ago

colinluthier commented 3 years ago

I am getting this error from sun.py:

Traceback (most recent call last): File "sun.py", line 7, in date = time.strftime('%Y-%m-%d %H:%M:%S', time.localtime(int(sys.argv[1])-(timezone6060))) IndexError: list index out of range

I was running it to see if my time zone was working correctly. I executed it with:

python3 sun.py

My Time zone shows as 8, I am GMT-8. It looks like the code stores the time zone as a positive number and then subtracts it from the time?

colinluthier commented 3 years ago

This is answered in issue #105