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
183 stars 57 forks source link

[Error] invalid literal for int() with base 10 in sun.py #135

Open lincdeckard opened 3 years ago

lincdeckard commented 3 years ago

Hello,

Having some trouble getting meteor passes decoded. I can't more than a couple black lines. NOAA sats are decoding fine though. When executing receive_meteor.sh I'm getting an error that traces to sun.py as:


> pi@raspberrypi:~/raspberry-noaa $ bash receive_meteor.sh 
> INFO : The system doesn't have enough space to store a Meteor pass on RAM
> INFO : I'll flip this image pass because FLIP_METEOR_IMG is set to true
> expr: non-integer argument
> Traceback (most recent call last):
>   File "/home/pi/raspberry-noaa/sun.py", line 6, in <module>
>     date = time.strftime('%Y-%m-%d %H:%M:%S', time.localtime(int(sys.argv[1])-(timezone*60*60)))
> ValueError: invalid literal for int() with base 10: ''
> INFO : Starting rtl_fm record

GMT timezone in here is Lisbon, +00:00. Could that be the issue? What value should I have in sun.py config for timezone?

thank you,