===============================================================================
  XQ-ORBIT Satellite Tracker for Mystic BBS 1.12  -  Shadowscope update 1.0
===============================================================================

  XQ-ORBIT is by xqtr (Another Droid BBS - andr01d.zapto.org:9999), first
  released 9/2016 (see sysop.txt, included unchanged).  All credit for the
  script, the screen and the idea goes to xqtr.

  This is an update by Captain Obvious of Shadowscope BBS (11/2026) to keep
  it working ten years on.  The menu and screen work exactly as before.

-------------------------------------------------------------------------------
  WHAT WAS UPDATED
-------------------------------------------------------------------------------

  orbit.py (rewritten)
    o Runs on Python 3.  The original needed Python 2.7 plus numpy, ephem and
      matplotlib (pylab) - matplotlib no longer even has 32-bit Windows builds.
      Now it needs only:   ephem   (orbit maths)
                           pillow  (the two diagrams - optional)
    o Fixed a time bug: local time was given to ephem as UTC, so positions and
      passes were off by your UTC offset.  Pass times are shown in UTC.
    o Shows how old the satellite's TLE data is and flags it when stale.
    o Next 3 passes at 1-minute steps, trimmed to fit the 44-column info
      panel.  Grazing passes that never clear the horizon are skipped, and
      satellites that never rise / never set (e.g. GEO) say so.
    o Altitude/azimuth diagram (CTRL-X) now samples every 2 minutes, so
      short low-orbit passes no longer fall between the points.
    o Polar diagram (CTRL-P) now draws the actual upcoming passes.
    o Diagram downloads are only offered when pillow is installed.

  update_tle.py (new)
    o Refreshes every list in xq-orbit\tle from CelesTrak.  The TLEs shipped
      in 2016 were far too old to place anything correctly.
    o Downloads a list at most once every 20 hours, so it is safe to run at
      every login (CelesTrak asks you not to hammer it).  Failed downloads
      keep the old file.  Results go to xq-orbit\update_tle.log.
    o Knows CelesTrak's renamed lists: iridium -> Iridium NEXT, 1999-025 ->
      Fengyun-1C debris, noaa and gorizont -> searched by name.
    o Add your own: create an empty file named after any CelesTrak group
      (starlink.txt, amateur.txt, visual.txt ...) and it fills in.

  xq-orbit.mps / .mpx
    o Each user's coordinates are saved (data\xqorbit<user#>.loc) - they are
      asked once, then go straight to the satellite list.  Their location is
      shown on the list screen with "CTRL-L to change your location".
    o Help screen text updated to match.
    o xq-orbit.mpx is included, compiled with Mystic 1.12 A49 mplc.

  The TLE lists in xq-orbit\tle are current as of 11/07/2026, except noaa,
  gorizont and cosmos-2251-debris, which update_tle.py refreshes.

-------------------------------------------------------------------------------
  INSTALL
-------------------------------------------------------------------------------

  1. Unzip into your theme's scripts folder (the same place as before):
       xq-orbit.mps, xq-orbit.mpx and the xq-orbit folder.
     Upgrading?  Keep your own xq-orbit.ans if you customized it.

  2. Install Python 3 (32 or 64 bit, any) and the two packages:
       Windows:  py -3 -m pip install ephem pillow
       Linux:    pip3 install ephem pillow
     The script calls "python", so that must run Python 3.  If "python" is
     Python 2 on your system, edit the line in xq-orbit.mps that runs
     orbit.py to say python3 (or the full path) and recompile.

  3. Compile if you changed anything:   mplc xq-orbit.mps

  4. Menu command (unchanged):   Type: GX    Data: xq-orbit

  5. Keep the satellite lists fresh - run this from a login batch, a daily
     event or cron:
       python c:\mystic\themes\<theme>\scripts\xq-orbit\update_tle.py

  Note: orbit.py is a plain Python 3 program run by Mystic as a command, so
  Mystic's own Python 2.7 engine (python27.dll) is not involved.

-------------------------------------------------------------------------------
  The original disclaimer in sysop.txt applies to this update too.
  Tested on Mystic BBS 1.12 A49, Windows (32-bit), Python 3.12.
===============================================================================
