A planetarium for your terminal! Explore stars, planets, constellations, and more, all rendered right in the command line—no telescope required. ✨
A planetarium for your terminal! Explore stars, planets, constellations, and more, all rendered right in the command line—no telescope required. ✨
astroterm is a terminal-based star map written in C. It displays the real-time positions of stars, planets, constellations, and more, all within your terminal—no telescope required! Configure sky views by date, time, and location with precise ASCII-rendered visuals. See usage for all supported options!
astroterm is constantly improving, and we'd love to hear your ideas! If you have a suggestion or find a bug, please open an issue and share your feedback. See CONTRIBUTING.md for guidelines on building, testing, and contributing to astroterm.
The night sky above Singapore on January 2, 2025
See usage on how to obtain this view
Stars over Sydney, Australia on January 6, 2025
Several installation methods are provided based on your platform. If none of these fit your needs, you can always build from source. Refer to troubleshooting for help resolving any issues.
You can install astroterm from the extra repository using pacman:
pacman -S astrotermYou can install astroterm directly from the Fedora package repository on Fedora 40+.
sudo dnf install astrotermYou can install astroterm from Homebrew via:
brew install astrotermYou can try the package in a temporary environment with the following command:
nix-shell -I nixpkgs=channel:nixpkgs-unstable -p astroterm --command astrotermArgument flags are added by wrapping the command in quotes. For example:
nix-shell -I nixpkgs=channel:nixpkgs-unstable -p astroterm --command "astroterm -u -c"To make astroterm available from your $PATH, add it to your configuration.nix:
environment.systemPackages = with pkgs; [
...
astroterm
]You can install astroterm directly from the Guix main
channel starting from
this commit.
guix time-machine --commit=4b5f0408e66392ab745dc0f7830732217d88f17d -- shell astrotermOr after guix pull:
guix shell astroterm -- astroterm --help # to try
guix package --install astroterm # add to current profileDownload the latest executable using wget
wget -O astroterm "https://github.com/da-luce/astroterm/releases/latest/download/astroterm-<os>-<arch>"<os> with the appropriate platform:linuxdarwin<arch> with the appropriate architecture:x86_64 (arm64 support to come after Ubuntu arm64 runners are available)aarch64x86_64Run the executable
chmod +x ./astroterm
./astrotermDownload the latest .exe file using PowerShell's Invoke-WebRequest:
Invoke-WebRequest -Uri "https://github.com/da-luce/astroterm/releases/latest/download/astroterm-win-x86_64.exe" -OutFile "astroterm.exe"Run the .exe
.\astroterm.exeThe --help flag displays all supported options:
…To enable Tab completions in Bash, add the following line to your ~/.bashrc:
source <(astroterm --bash-completions)To achieve the "spinning globe" effect as shown in the README GIF, use the following flags:
astroterm --color --constellations --speed 10000 --fps 64 --city Singaporeor
astroterm -cC -s 10000 -f 64 -i Singaporefor short. In fact, any city around the equator will work. Locations closer to the poles will look different because the apparent motion of the stars is more circular around the celestial pole rather than sweeping across the sky.
Say we wanted to view the sky at 5:00 AM (Eastern) on July 16, 1969—the morning of the Apollo 11 launch at the Kennedy Space Center in Florida. We would run:
astroterm --latitude 28.573469 --longitude -80.651070 --datetime 1969-7-16T8:00:00Finding the precise coordinates can be cumbersome, so we could also use the nearest major city to achieve a similar result:
astroterm --city Orlando --datetime 1969-7-16T8:00:00 -mWhile we're still waiting for someone to invent time travel, we can cheat a little by using Stellarium to confirm that this aligns with reality.
If we then wanted to display constellations and add color, we would add --constellations --color as options.
If you simply want the current time, don't specify the --datetime option and
astroterm will use the system time. For your current location, you will still
have to specify the --lat and --long options, or provide the nearest city with the --city option.
For more options and help, run astroterm -h or astroterm --help.
[!TIP] Use a tool like LatLong to get your latitude and longitude.
[!TIP] Star magnitudes decrease as apparent brightness increases, i.e., to show more stars, increase the threshold.
For some reason, curl does not follow the latest release redirect. Use wget
to download the latest release or hardcode the tag in the link using curl. Or,
just download via the releases page.
If Unicode characters do not display correctly in the terminal, you may need to configure your system's locale to support Unicode.
~/.bashrc or equivalent to permanently enforce)export LC_ALL="en_US.UTF-8"
export LC_CTYPE="en_US.UTF-8"sudo apt update
sudo apt install -y locales
sudo dpkg-reconfigure locales During configuration, select en_US.UTF-8 as the default locale.
Many thanks to the following resources, which were invaluable to the development of this project.
No open issues yet, or sync has not completed.