Skip to content

Instantly share code, notes, and snippets.

@koppi
Last active May 24, 2025 11:52
Show Gist options
  • Save koppi/6d83b9d26bddb7a69475764124782973 to your computer and use it in GitHub Desktop.
Save koppi/6d83b9d26bddb7a69475764124782973 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
#
# Download, build and install https://github.com/stv0g/calcelestial
#
# Basic calcelestial usage examples with the at command:
#
# # make a beep at sunrise in Berlin
#
# sudo apt -y install at
#
# echo "beep" | at $(calcelestial -m rise -p sun -q Berlin)
#
# # make a beep 10 minutes before sunset in Berlin
# echo "beep" | at $(date -d "-10 min $(calcelestial -m set -p sun -a 48.366512 -o 10.894446 -f '%H:%M %C%y-%m-%d' -z "Europe/Berlin")" "+%H:%M")
sudo apt -y install git autoconf automake libcurl4-openssl-dev libjson-c-dev libnova-dev libdb-dev
git clone https://github.com/stv0g/calcelestial
cd calcelestial/
autoreconf -i
sh autogen.sh
./configure
make
sudo make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment