panoramax count
This commit is contained in:
parent
49c21405fe
commit
5ab6995d4e
@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
# count files recursively in provided folder
|
||||||
|
alias countf='echo "fichiers ici:" $(ls -d * | xargs -n1 ls | wc -l)'
|
@ -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)
|
@ -11,8 +11,8 @@
|
|||||||
#
|
#
|
||||||
# ---------------------------- made by tykayn www.cipherbliss.com -----------------------------
|
# ---------------------------- made by tykayn www.cipherbliss.com -----------------------------
|
||||||
|
|
||||||
containing_mapillary_folders="/home/poule/encrypted/stockage-syncable/photos/imagerie kartaview carto tel/mapillary"
|
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"
|
# 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"
|
panoramax_instance="https://panoramax.openstreetmap.fr"
|
||||||
|
|
||||||
function import_mapillary_folders_and_move_in_imported_folder() {
|
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
|
ls -l |wc -l
|
||||||
echo " "
|
echo " "
|
||||||
# loop in containing folder
|
# loop in containing folder
|
||||||
for f in *; do
|
for f in ./*; do
|
||||||
echo "envoi du dossier" "$containing_mapillary_folders/$f"
|
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"
|
# mv "$containing_mapillary_folders/$f" "$done_mapillary_folders"
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user