This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Setup: | |
# 1. Put ympd in /usr/local/sbin/ | |
# 2. Put the code in /etc/init.d/ympd | |
# 3. chown +x /etc/init.d/ympd | |
# 4. edit: /etc/default/ympd and add your arguments to ympd. | |
# Example: DAEMON_ARGS="--webport 80 --user mpd" | |
# 5. Run: update-rc.d ympd defaults | |
#! /bin/sh | |
### BEGIN INIT INFO |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Formel von Dr. Roland Brodbeck, Calsky | |
# http://lexikon.astronomie.info/zeitgleichung/neu.html | |
# Uebertragung auf Python 3 von Alexander Klupp 2014-01-14 | |
import math | |
pi2 = 2*math.pi | |
pi = math.pi | |
RAD = math.pi/180 |