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
180 stars 56 forks source link

Doubt about sun.py timezone #50

Closed ghost closed 3 years ago

ghost commented 3 years ago

Hey Nico, here I am (again) trying to always make better my station - in sun.py I've found wrong timezone "-2" while I'm in "+2": do I have to manually put "2" or "+2"? Maybe this is the reason of the last days bad receptions and cutted images.

reynico commented 3 years ago

Hi! sun.py gets the timezone inverted so if you're in +2, set it to -2. Anyways this pull request https://github.com/reynico/raspberry-noaa/pull/49 fixes that. I'll merge it soon

reynico commented 3 years ago

Hi, I've reverted back those commits to the old state. This is valid:

sun.py gets the timezone inverted so if you're in +2, set it to -2

ghost commented 3 years ago

Hi, I've reverted back those commits to the old state. This is valid:

sun.py gets the timezone inverted so if you're in +2, set it to -2

Ok Nico, currently Italy is in CEST so maybe do I have to put in file -1 (thinking about CEST +1) according to https://www.timeanddate.com/time/zone/italy ?

reynico commented 3 years ago

As far I checked, Italy is now in GMT +2 (as per https://www.google.com/search?q=italy+time+zone)

so in sun.py put

timezone = -2
ghost commented 3 years ago

Everything is OK now Nico - it seems to be an issue with last dipole, but I've passed this night getting fixed every equipment in my radio-mast - the only strange thing at the moment is that the RPi is not posting on Twitter received and processed images, while last days it worked as always: maybe a problem of concurrent Twitter posting, I've only one station account for multiple RPis, and every one is linked to Tw and Telegram, but this is strange. In post.py I've modified in the past the text in in the post and the emoji.

ghost commented 3 years ago

UPDATE: here's the mess, that f** new moji I've inserted in post.py:

File "post.py", line 16 satEmoji = u'\U0001F6F0' + u'\U000FE0F' ^ SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 0-8: truncated \UXXXXXXXX escape

That error didn't let the script post anymore on Twitter.

reynico commented 3 years ago

Glad you found the problem! I'll close this issue for now