[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-116247":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":13,"openIssues":14,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":13,"stars7d":16,"stars30d":16,"stars90d":15,"forks30d":15,"starsTrendScore":17,"compositeScore":18,"rankGlobal":10,"rankLanguage":10,"license":19,"archived":20,"fork":20,"defaultBranch":21,"hasWiki":22,"hasPages":20,"topics":23,"createdAt":10,"pushedAt":24,"updatedAt":25,"readmeContent":26,"aiSummary":27,"trendingCount":15,"starSnapshotCount":15,"syncStatus":13,"lastSyncTime":28,"discoverSource":29},116247,"orrery-tui","tjyank\u002Forrery-tui","tjyank","Terminal Solar System","",null,"Python",58,2,1,0,3,7,47.23,"MIT License",false,"main",true,[],"2026-11-16 14:52:32","2026-11-22 20:04:54","# orrery-tui\n\n\u003Cimg width=\"800\" height=\"448\" alt=\"m2-res_1076p-ezgif com-video-to-gif-converter (1)\" src=\"https:\u002F\u002Fgithub.com\u002Fuser-attachments\u002Fassets\u002F1491e6bc-bd6e-4d74-905f-ad5deca71704\" \u002F>\n\nA live, isometric, rotatable model of the solar system in your terminal.\n\nPlanet positions come from **NASA\u002FJPL Horizons**. Each state vector is turned into an osculating Keplerian orbit. When the simulated time drifts more than 20 days from the data epoch, the app fetches fresh data in the background.\n\n## Install\n\n```\npip install orrery-tui\norrery\n```\n\nOr with [pipx](https:\u002F\u002Fpipx.pypa.io\u002F), which keeps command-line apps in their own environments: `pipx install orrery-tui`. If `orrery` isn't found after a plain `pip install`, run `python -m orrery` instead.\n\nIt needs Python 3.10+ and a truecolor terminal. Windows Terminal, iTerm2, kitty, WezTerm and most modern Linux terminals all work.\n\nTo work on the code instead, clone the repo and install it in editable mode with the test tools: `pip install -e \".[dev]\"`, then run `python -m pytest`.\n\n| Option | |\n|---|---|\n| `--scale log\\|sqrt\\|linear` | radial distance compression |\n| `--date 1977-09-05` | start at a UTC date\u002Ftime instead of now |\n| `--offline` | never contact Horizons: use the last cached fetch, or the built-in orbits |\n| `--ascii` | ASCII glyphs for bodies, for terminals with poor Unicode fonts |\n| `--once --size 140x40` | print a single frame and exit |\n| `--system jupiter` | start in a planet's moon system view |\n| `--stars` | start in the map of the nearest stars |\n| `--fresh` | ignore remembered view settings, and don't save them |\n| `--no-mouse` | don't capture the mouse |\n\n## Keys\n\n| Key | Action |\n|---|---|\n| `←` `→` \u002F `h` `l` | rotate around the ecliptic pole |\n| `↑` `↓` \u002F `k` `j` | tilt the camera, from edge-on to top-down |\n| `+` `-` | zoom |\n| `i` | snap back to the true isometric view |\n| `Tab` \u002F `Shift-Tab` | select the next or previous body |\n| `f` | follow the selected body |\n| `,` `.` | slower or faster time, including reverse: real time → 1 min\u002Fs → 1 hr\u002Fs → 1 day\u002Fs → 1 wk\u002Fs → 30 days\u002Fs → 1 yr\u002Fs |\n| `space` | pause or resume time |\n| `t` | jump back to present, at real time |\n| `m` | cycle the distance scale: log → sqrt → linear |\n| `o` | cycle the orbits: all → only the selected body's → none |\n| `d` `n` | toggle drop lines to the ecliptic, and names |\n| `T` | trails: where each body has recently been |\n| `a` | auto-spin the camera |\n| `p` | toggle the info panel |\n| `?` | show or hide the key legend |\n| `r` | refetch from JPL Horizons |\n| `Enter` \u002F `v` | open the selected planet's moon system view |\n| `J` | jump menu: a typed date or offset, or a preset moment |\n| `b` | show or hide dwarf planets, asteroids and comets |\n| `\u002F` | add any asteroid or comet, by name or designation |\n| `X` | remove the selected object you added |\n| `S` | the star map: the nearest stars around the Sun |\n| `q` \u002F `Esc` | quit |\n\n### Mouse\n\nDrag to rotate and tilt, scroll to zoom, and click a body or its name to select it. Double-click a planet to open its moons, or any other body to follow it. In the moon view, click anywhere on the planet to show its details again, and double-click a moon or the planet to follow it. Right-click backs out of the moon view or the jump menu. Pass `--no-mouse` to keep your terminal's text selection instead.\n\n### Jumping in time\n\n`J` opens a menu: jump to now, type a UTC date or an offset from the time shown (`+30d`, `-2y`; units `h d w m y`). The presets are the next total solar eclipse, next lunar eclipse, next Mars and Jupiter oppositions, Halley's next perihelion, and moments like Apollo 11's landing and Voyager 2 at Neptune. After a long jump the app switches straight to the offline model, while Horizons loads data for the new date. That model is accurate for 1800–2050; outside that range, positions are only rough until the live data arrives.\n\n### Small bodies\n\nCeres, Haumea, Makemake and Eris, Pallas and Vesta, and the comets Halley, Encke and 67P\u002FChuryumov–Gerasimenko. They're drawn smaller, with fainter orbits, and comets grow a tail pointing away from the Sun inside about 4 au. For eccentric orbits the panel adds perihelion distance and date. `b` hides them all. Their orbits change slowly, so routine refreshes skip them: they're re-fetched once simulated time is 10 days from their data.\n\n### Trails\n\n`T` draws a fading trail behind each body: where it has been over the last 15 seconds of real time, at the current speed. At real time that's too short to see, so speed time up with `.`. Without a followed body, a trail stops short of a full orbit.\n\n### Adding any asteroid or comet\n\nPress `\u002F` and type a name, number or designation as JPL Horizons knows it: `Apophis`, `Bennu`, `433`, `Hale-Bopp`, `2P`, `C\u002F2021 S4`. The lookup runs in the background, and the object is added, selected and drawn like the built-in small bodies.\n\n### Remembered settings\n\nThe camera, zoom, scale, toggles and selection for both views are saved on quit and restored next time, in `%APPDATA%\\orrery\\settings.json` on Windows or `~\u002F.config\u002Forrery\u002Fsettings.json` elsewhere. `--scale` still overrides the saved scale, and `--fresh` starts from the defaults.\n\n### Planetary system view\n\nOpening a planet with `Enter` shows it at the centre with its moons on their real orbits. The `N` axis is its north pole, showing its tilt, and the ☼ marker at the edge points to the Sun. Moons in the planet's shadow are drawn dimmed. Rotate, tilt, zoom, time and the `o d n a i p` toggles work as in the main view; the camera is kept separate from the main one.\n\n| Key | Action |\n|---|---|\n| `Tab` \u002F `Shift-Tab` | cycle the planet and its moons |\n| `[` `]` | previous or next planet's system |\n| `f` | follow the selected moon |\n| `m` | cycle the distance scale: log  → sqrt → linear |\n| `Esc` \u002F `Enter` \u002F `v` | back to the solar system |\n\n## The star map\n\n`S` zooms out from the planets to the stars around the Sun: about 50 star systems within 20 light years at their real 3D positions in galactic coordinates, plus bright landmarks further out such as Vega, Arcturus and Aldebaran. `Esc` or `S` goes back to the planets, which wait where you left them. The map opens in the year the orrery shows.\n\nThe grid is the galactic plane. Drop lines show how far above or below it each star sits, and the spokes point toward the galactic centre (Sagittarius), the direction of the Sun's orbit (Cygnus), the anticentre (Auriga) and l 270° (Vela).\n\nPick a star and press `Enter` to **view from it**: the camera glides over, the grid recentres, and the panel shows how bright every other star, the Sun included, would look from there.\n\n**Time runs in years here**, up to 100,000 either way, with the slider at the bottom. Stars drift along their real space motions, leaving faint tracks back to where they are today. Watch Barnard's Star pass within 3.8 ly around 11,700 CE, or Ross 248 become our nearest neighbour around 38,000 CE.\n\n| Key | Action |\n|---|---|\n| `←` `→` \u002F `h` `l` | rotate around the galactic pole |\n| `↑` `↓` \u002F `k` `j` | tilt |\n| `+` `-` | zoom |\n| `i` | back to the true isometric view |\n| `a` | auto-spin |\n| `Tab` \u002F `Shift-Tab` | next or previous star, nearest first |\n| `\u002F` | find a star by name (`proxima`, `tau ceti`, `Gliese 876`, `Dog Star`) |\n| `Enter` \u002F `v` | view from the selected star |\n| `s` \u002F `Backspace` | back to the Sun |\n| `[` `]` | range: 10 → 15 → 20 → 30 → 50 → 70 ly |\n| `,` `.` | time slower or faster, through reverse: 10k ← 1k ← 100 ← 10 yr\u002Fs → 10 → 100 → 1k → 10k yr\u002Fs |\n| `space` | play or pause time |\n| `t` | back to the present, paused |\n| `y` | go to a year: `38000`, `10000 BCE`, `+5000`, `-20000` |\n| `T` | motion tracks on or off |\n| `m` \u002F `M` | mark the selected star, to measure the distance to another \u002F clear the mark |\n| `g` `d` | grid, drop lines |\n| `n` | names: all → bright → none |\n| `p` | info panel |\n| `?` | key list |\n| `Esc` \u002F `S` | back to the planets |\n| `q` | quit |\n\nMouse: drag to rotate and tilt, scroll to zoom, click to select, double-click to view from a star, right-click to return to the Sun. Click or drag on the time slider to scrub through time.\n\n**On the map**, glyphs show intrinsic brightness: `●` for stars about as luminous as the Sun or more, `•` for K and early M dwarfs, `∙` for faint red dwarfs and white dwarfs, `·` for brown dwarfs. The most luminous stars get a halo. Colour follows spectral class, from blue-white A stars through yellow G and orange K to red M dwarfs, with pale blue for white dwarfs and magenta for brown dwarfs. Multiple systems such as α Centauri AB are drawn as one point, with their members listed in the panel.\n\n**The motion model** is heliocentric and straight-line: each star moves at constant velocity relative to the Sun, from its proper motion and radial velocity. Over tens of thousands of years that matches published close-approach predictions well; beyond that the stars' curved paths around the Galaxy matter, so the slider stops at ±100,000 years. Gravity between stars isn't modelled. A few objects have no measured radial velocity, so they move only across the sky and their panel speed is a lower bound.\n","orrery-tui 是一个在终端中实时渲染太阳系三维模型的交互式天文可视化工具。它基于 NASA\u002FJPL Horizons 系统提供的高精度星历数据，通过开普勒轨道拟合计算行星位置，支持等轴测视角、自由旋转\u002F缩放\u002F倾斜、时间流速调节、轨道切换、天体追踪及小行星\u002F彗星自定义添加等功能；所有计算与渲染均在终端内完成，依赖 Python 3.10+ 和真彩色终端。适用于天文教育演示、编程爱好者探索太阳系动力学、以及轻量级命令行环境下的科学可视化场景。","2026-11-24 04:53:18","CREATED_QUERY"]