panoramax count

This commit is contained in:
Tykayn 2023-09-20 17:33:48 +02:00 committed by tykayn
parent 49c21405fe
commit 5ab6995d4e
3 changed files with 23 additions and 4 deletions

View File

@ -0,0 +1,3 @@
#!/bin/bash
# count files recursively in provided folder
alias countf='echo "fichiers ici:" $(ls -d * | xargs -n1 ls | wc -l)'

View File

@ -0,0 +1,14 @@
/**
* script à copier dans la console du navigateur pour récupérer les décomptes
*/
let sum = 0;
let counters = document.querySelectorAll('.bi-images + span')
counters.forEach(elem => {
let inner = elem.innerText;
if (parseInt(inner)) {
sum += inner * 1
}
})
document.querySelector('h1.sequences-title').innerHTML = 'Mes séquences: '+sum+' photos'
console.log(sum)

View File

@ -11,8 +11,8 @@
#
# ---------------------------- made by tykayn www.cipherbliss.com -----------------------------
containing_mapillary_folders="/home/poule/encrypted/stockage-syncable/photos/imagerie kartaview carto tel/mapillary"
done_mapillary_folders="/home/poule/encrypted/stockage-syncable/photos/imagerie kartaview carto tel/already_sent_to_panoramax_osm_fr"
containing_mapillary_folders="/home/poule/encrypted/stockage-syncable/photos/imagerie kartaview carto tel/mapillary_download_script"
# done_mapillary_folders="/home/poule/encrypted/stockage-syncable/photos/imagerie kartaview carto tel/already_sent_to_panoramax_osm_fr"
panoramax_instance="https://panoramax.openstreetmap.fr"
function import_mapillary_folders_and_move_in_imported_folder() {
@ -23,9 +23,11 @@ function import_mapillary_folders_and_move_in_imported_folder() {
ls -l |wc -l
echo " "
# loop in containing folder
for f in *; do
for f in ./*; do
echo "envoi du dossier" "$containing_mapillary_folders/$f"
geovisio upload --api-url $panoramax_instance "$containing_mapillary_folders/$f"
echo $f
cd "$containing_mapillary_folders/$f"
geovisio upload --api-url $panoramax_instance .
# mv "$containing_mapillary_folders/$f" "$done_mapillary_folders"
done
}