This website works better with JavaScript.
Home
Help
Sign In
hms
/
rasoberry-noaa
mirror of
https://github.com/reynico/raspberry-noaa.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
8
Wiki
Activity
Browse Source
Standarize library import
tags/v1.3
Nico Rey
4 years ago
parent
a059e400c1
commit
40e59a1c09
5 changed files
with
9 additions
and
8 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
common.sh
+2
-1
prune.sh
+2
-2
schedule.sh
+2
-2
schedule_meteor.sh
+2
-2
schedule_sat.sh
+ 1
- 1
common.sh
View File
@@ -3,7 +3,7 @@
## debug
# set -x
.
~/.noaa.conf
.
"$HOME/.noaa.conf"
declare -A levels=([DEBUG]=0 [INFO]=1 [WARN]=2 [ERROR]=3)
log_level=${LOG_LEVEL}
+ 2
- 1
prune.sh
View File
@@ -1,7 +1,8 @@
#!/bin/bash
## import common lib
. ~/common.sh
. "$HOME/.noaa.conf"
. "$NOAA_HOME/common.sh"
find "${NOAA_HOME}/map/" -type f -name '*.png' -mtime +1 -exec rm -f {} \;
log "${NOAA_HOME}/map/ folder pruned" "INFO"
+ 2
- 2
schedule.sh
View File
@@ -1,8 +1,8 @@
#!/bin/bash
## import common lib
.
~/.noaa.conf
. "$
{
NOAA_HOME
}"
/common.sh
.
"$HOME/.noaa.conf"
. "$NOAA_HOME/common.sh
"
wget -qr http://www.celestrak.com/NORAD/elements/weather.txt -O "${NOAA_HOME}"/predict/weather.txt
wget -qr http://www.celestrak.com/NORAD/elements/amateur.txt -O "${NOAA_HOME}"/predict/amateur.txt
+ 2
- 2
schedule_meteor.sh
View File
@@ -1,8 +1,8 @@
#!/bin/bash
## import common lib
.
~/.noaa.conf
. "$
{
NOAA_HOME
}"
/common.sh
.
"$HOME/.noaa.conf"
. "$NOAA_HOME/common.sh
"
PREDICTION_START=$(/usr/bin/predict -t "${NOAA_HOME}"/predict/weather.tle -p "${1}" | head -1)
PREDICTION_END=$(/usr/bin/predict -t "${NOAA_HOME}"/predict/weather.tle -p "${1}" | tail -1)
+ 2
- 2
schedule_sat.sh
View File
@@ -1,8 +1,8 @@
#!/bin/bash
## import common lib
.
~/.noaa.conf
. "$
{
NOAA_HOME
}"
/common.sh
.
"$HOME/.noaa.conf"
. "$NOAA_HOME/common.sh
"
# $1 = Satellite Name
# $2 = Frequency
Write
Preview
Loading…
Cancel
Save