http:/ /[url removed, login to view] tracks the International Space Station, and will show? a list of near-future dates when the ISS is visible from your location.
It has a URL allowing parameters to specify the users Latitude, Longitude,
Altitude (elevation above sealevel, optional) and timezone.
http:/ /[url removed, login to view]
( parameter satid=25544 is the ID of the International Space Station.
? ? ? ? ? ? ? ? ? ? ? lat is latitude, lng is longitude. tz is a timezone code.
? ? ? ? ? ? ? ? ? ? ? parameter &4 is something not necessary to understand, and I dont know.)
I want a PHP page created that will accept $_GET parameters for lat, lng and tz, and fetch the page from [url removed, login to view], using cURL.? ? The result will be parsed by the PHP page, to see if the ISS will be visible on the current date,? within 30 minutes of the current time.?
(? Current time, will be calculated by getting GMT time, adding or subtracting the timezone, and to get the correct local time... lets pass both the &tz=MST? in the way that heavens-above needs it,? and &tz2=-7? in a numeric form that you can use easily inside PHP.)
Also, check the "Mag" column of results for magnitude of brightness. Ignore any row were Mag value is > -1.?
If the ISS *is* going to be visible in the next 30 minutes, the PHP webpage will simply output a text sentence saying something like this:
" The International Space station will be viewable in 18 minutes from now.
? Appearing in East South East at 10:42am and disappearing at South East at 10:44am.? Look? upward at a 24 degree angle from horizontal.
? I intend to call this PHP every 30 minutes, and the text output from
? this page will be fed into a spoken alerting system that I use.
Much later, I myself will add code to compare sun position, (its altitude and azimuth) versus the ISS, to avoid trying to look into the sun.