From 274780d002d698944c85deb2e9baa22fefd028e1 Mon Sep 17 00:00:00 2001 From: fred Date: Sat, 11 Feb 2023 21:48:26 +0100 Subject: [PATCH] API + --- README.md | 4 ++-- tools/make_image_ipfs_index_carousel.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 815cbea5..b60d5519 100644 --- a/README.md +++ b/README.md @@ -157,7 +157,7 @@ Redirections ```/?salt=${SALT}&pepper=${PEPPER}&g1pub=astro``` -## ➤ PLAYER ZONE (fonctionne uniquement sur la Station qui héberge votre PLAYER) +## ➤ PLAYER ZONE (API de la Station qui héberge votre PLAYER) ### ```/?player=${PLAYER}&${APPNAME}=${WHAT}&${OBJ}=${VAL}...``` ### Déclencher un Payement de 99 Ğ1 à Fred @@ -196,7 +196,7 @@ GET /?player=${PLAYER}&youtube=URLENCODED -### PUBLIC (fonctionne par tout, pour tous) +### QRCODE (API SandBox) ```http GET /?qrcode=$G1PUB ``` diff --git a/tools/make_image_ipfs_index_carousel.sh b/tools/make_image_ipfs_index_carousel.sh index 3dac95da..3c98fab4 100755 --- a/tools/make_image_ipfs_index_carousel.sh +++ b/tools/make_image_ipfs_index_carousel.sh @@ -71,8 +71,8 @@ echo " num=1 for i in "$img_dir"/*; do if [[ $i =~ \.(JPG|jpg|PNG|png|JPEG|jpeg|GIF|gif)$ ]]; then - ilink=$(ipfs add -q $i) - img_info=$(identify -format '%w %h %[EXIF:*]' $i) + ilink=$(ipfs add -q "$i") + img_info=$(identify -format '%w %h %[EXIF:*]' "$i") img_width=$(echo $img_info | cut -d ' ' -f1) img_height=$(echo $img_info | cut -d ' ' -f2) img_alt=$(echo $img_info | cut -d ' ' -f3)