|
@@ -26,6 +26,9 @@ LONM=$($CONVERTLL_PATH $LON | grep "m:" | cut -d':' -f2)
|
|
LONS=$($CONVERTLL_PATH $LON | grep "s:" | cut -d':' -f2 | sed 's/\.//')
|
|
LONS=$($CONVERTLL_PATH $LON | grep "s:" | cut -d':' -f2 | sed 's/\.//')
|
|
echo "$LOND $LONM $LONS"
|
|
echo "$LOND $LONM $LONS"
|
|
|
|
|
|
|
|
+ALTITUDE=$(echo $DATA| tr ' ' '\n' | grep 'alt=' | cut -d'=' -f2 | cut -d',' -f1)
|
|
|
|
+echo "$ALTITUDE meters ! Wooo so hiiigh !"
|
|
|
|
+
|
|
# Creation du script pour ajout des données Exif dans le JPG
|
|
# Creation du script pour ajout des données Exif dans le JPG
|
|
cat <<EOF > /ramfs/.conf_exif
|
|
cat <<EOF > /ramfs/.conf_exif
|
|
# Ajouter aux metadatas les informations de geolocalisation
|
|
# Ajouter aux metadatas les informations de geolocalisation
|
|
@@ -38,10 +41,12 @@ cat <<EOF > /ramfs/.conf_exif
|
|
add Exif.GPSInfo.GPSLongitude ${LOND}/1 ${LONM}/1 ${LONS}/10000
|
|
add Exif.GPSInfo.GPSLongitude ${LOND}/1 ${LONM}/1 ${LONS}/10000
|
|
EOF
|
|
EOF
|
|
|
|
|
|
-if [[ "$LAT" -ne "NO_DATA" ]]; then
|
|
|
|
- exiv2 -m /ramfs/.conf_exif /ramfs/$DATE.jpg
|
|
|
|
-else
|
|
|
|
|
|
+echo $LAT
|
|
|
|
+if [ "$LAT" == "NO_DATA" ]; then
|
|
echo "Don't have GPS datas, continue without these datas"
|
|
echo "Don't have GPS datas, continue without these datas"
|
|
|
|
+else
|
|
|
|
+ exiv2 -m /ramfs/.conf_exif /ramfs/$DATE.jpg
|
|
|
|
+ exiftool -GPSAltitude=$ALTITUDE /ramfs/$DATE.jpg
|
|
fi
|
|
fi
|
|
|
|
|
|
echo "Picz $DATE.jpg saved in RAM"
|
|
echo "Picz $DATE.jpg saved in RAM"
|
|
@@ -49,4 +54,5 @@ mv /ramfs/$DATE.jpg ~/_Pictures
|
|
echo "Picz $DATE.jpg saved to SDCARD"
|
|
echo "Picz $DATE.jpg saved to SDCARD"
|
|
|
|
|
|
echo "$DATE.jpg" > /ramfs/.canbeconvert
|
|
echo "$DATE.jpg" > /ramfs/.canbeconvert
|
|
|
|
+echo "Sleeping... zzzZZZzzZZZzzz..."
|
|
sleep 60
|
|
sleep 60
|