47 lines
1.7 KiB
Bash
47 lines
1.7 KiB
Bash
/usr/bin/python3 /mnt/daten1tb/1_USER/andre/garmin/bpt/git/garmin-connect-export/gcexport.py \
|
|
--username andregeissler@posteo.de \
|
|
--password f7m8g36Ph4gDCy4 \
|
|
-c 10 \
|
|
-f json \
|
|
-d /mnt/daten1tb/1_USER/andre/garmin/bpt/input
|
|
|
|
/usr/bin/python3 /mnt/daten1tb/1_USER/andre/garmin/bpt/git/garmin-connect-export/gcexport.py \
|
|
--username andregeissler@posteo.de \
|
|
--password f7m8g36Ph4gDCy4 \
|
|
-c 10 \
|
|
-f original \
|
|
-d /mnt/daten1tb/1_USER/andre/garmin/bpt/input
|
|
|
|
/usr/bin/python3 /mnt/daten1tb/1_USER/andre/garmin/bpt/git/garmin-connect-export/gcexport.py \
|
|
--username andregeissler@posteo.de \
|
|
--password f7m8g36Ph4gDCy4 \
|
|
-c 10 \
|
|
-f tcx \
|
|
-d /mnt/daten1tb/1_USER/andre/garmin/bpt/input
|
|
|
|
/usr/bin/python3 /mnt/daten1tb/1_USER/andre/garmin/bpt/git/garmin-connect-export/gcexport.py \
|
|
--username andregeissler@posteo.de \
|
|
--password f7m8g36Ph4gDCy4 \
|
|
-c 10 \
|
|
-f gpx \
|
|
-d /mnt/daten1tb/1_USER/andre/garmin/bpt/input
|
|
|
|
cd /mnt/daten1tb/1_USER/andre/garmin/bpt/input
|
|
|
|
#for I in `ls activity_*_summary.json`
|
|
#do
|
|
# echo $I
|
|
# zip $I.zip $I
|
|
#done
|
|
|
|
for I in `ls -1 act* | grep -v zip | awk -F'_' '{print $2}' | awk -F'.' '{print $1}' | uniq`
|
|
do
|
|
echo $I
|
|
DAT=`ls -1 *$I* | head -n1 | awk -F'+' '{print $1}'`
|
|
zip -u $DAT-$I.zip *$I*
|
|
done
|
|
|
|
#shopt -s extglob
|
|
#$(rm -v !(*.zip))
|
|
#find /mnt/daten1tb/1_USER/andre/garmin/bpt/input -type f -not -name '*.zip' -delete
|