CyntechUK / WeatherHAT

10 stars 3 forks source link

ISS demo code #8

Closed kd8bxp closed 2 months ago

kd8bxp commented 4 years ago

Verified that it works on my end, checks https://open-notifiy.org to get the current position of the ISS, calculates a distance (in miles) from a given location. If the ISS is greater then 1350 miles away, nothing is displayed. IF between 1200 & 1350 miles, leds 0 and 6 are RED generally this is still to far to make radio contact, but does say it's coming up over the horizon, be ready. Between 1150 and 1200 miles, leds 1 and 5 light yellow - you may or may not be able to hear it at this point, probably still not able to make contact, between 950 and 1150 miles, leds 2 and 4 will light green, this should be close enough to start to make some contacts. Under 950 miles the top led will light green 3, best chance at making a contact. this is based on the EricISSNotification sketch from https://github.com/kd8bxp/Simple-ISS-Notification-System Checks every 5 seconds, and updates.

Improvements, have a RISING flag that gets set, and have the display move from right to left (IE: led 6, red > 1200 miles, led 5 yellow 1150 to 1200 miles, led 4 green 950 to 1150 miles, led 3 green < 950 miles, flag set and led 2 green between 950 to 1150 miles, led 1 yellow 1150 to 1200 miles, led 0 red 1200 to 1350 miles flag reset for next pass)

I can do the improvement when I get a little more free time.