Skip to content
Snippets Groups Projects
Verified Commit d5f4b596 authored by David Hoese's avatar David Hoese
Browse files

Remove old unused scripts

parent 312c4ddd
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/env bash
echo "Creating database and continous queries for tower and buoy..."
/home/metobs/miniconda/envs/metobs_influxdb/bin/python -m metobscommon.influxdb --host metobs01.ssec.wisc.edu --dbname metobs -vvv create --symbol-list aosstower.l00.influxdb.SYMBOLS mendotabuoy.level0.influxdb.SYMBOLS
echo "Done"
#!/usr/bin/env bash
# Offset TZ by 1 minute to make sure we get data from 23:59 to 00:00
export TZ="UTC-00:01:00"
LOCK=$HOME/tower/$(basename "$0").lock
SRC="/mnt/data/ingest/rig_tower/rig_tower.dat"
(
flock -x -n 200 || exit $?
if [ -e $SRC ]; then
# Also send it to metobs01:
rsync -a $SRC rsync://metobs01.instrument/incoming/aoss-tower/rig_tower.ascii
else
echo "$SRC does not exist"
fi
) 200>$LOCK
#!/usr/bin/env bash
#
# Runs the tower ingest in a screen session named 'tower_db_ingest'.
#
# If a screen session is already running with that name, exit, otherwise start
# a new detached screen session named 'tower_db_ingest'.
#
NAME=tower_db_ingest
PYENV=$HOME/env
SRC=/mnt/data/ingest/rig_tower/rig_tower.dat
#DBURL=postgresql://buoy_ingest:bu0y1ngest@tahiti.ssec.wisc.edu/buoy
DBURL=postgresql://metobs_ingest:m3t0b5@metobs01.instrument/metobs
LOGFN=$HOME/log/tower_db_ingest.log
export PGAPPNAME=tower_db_ingest
SCRN=$(screen -list | grep $NAME | awk '{print $1}')
if [ -n "$SCRN" ]; then
echo Screen already running: $SCRN
else
screen -S $NAME -d -m $PYENV/bin/tower_db_ingest \
--loglvl info \
--logfn $LOGFN \
--tail \
$DBURL \
$SRC
echo Started in screen $(screen -list | grep $NAME | awk '{print $1}')
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment