Skip to content

Commit bb8b1bf

Browse files
Added Kepler TLE updater script
1 parent a5f3695 commit bb8b1bf

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

update-keps.sh

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!/bin/bash
2+
# This script is run nightly by the following cron job:
3+
# m h dom mon dow command
4+
# 0 1 * * * trash-empty > /dev/null 2>&1
5+
# 0 1 * * * /home/pi/wx/update-keps.sh > /dev/null 2>&1
6+
7+
rm /tmp/weather.txt
8+
wget -qr www.celestrak.org/NORAD/elements/weather.txt -O /tmp/weather.txt
9+
10+
#rm /tmp/noaa.txt
11+
#wget -qr https://www.celestrak.org/NORAD/elements/noaa.txt -O /tmp/noaa.txt
12+
13+
#-rm /tmp/amateur.txt
14+
#wget -qr https://www.celestrak.org/NORAD/elements/amateur.txt -O /tmp/amateur.txt
15+
16+
cp /tmp/weather.txt /home/pi/.predict/weather.tle
17+
cp /tmp/weather.txt /home/pi/.wxtoimg/weather.txt
18+

0 commit comments

Comments
 (0)