Skip to content

Instantly share code, notes, and snippets.

@koppi
Last active May 31, 2016 18:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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
# 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 -q Berlin)" +%H%M)
sudo apt -y install git autoconf automake libcurl4-openssl-dev libjson-c-dev libnova-dev
git clone https://github.com/stv0g/calcelestial
cd calcelestial/
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