diff --git a/adventure/rooms/meteofrance.sh b/adventure/rooms/meteofrance.sh index b8c7b3b5..ace025cb 100755 --- a/adventure/rooms/meteofrance.sh +++ b/adventure/rooms/meteofrance.sh @@ -8,18 +8,21 @@ ts=$(date -u +%s%N | cut -b1-13) ################################################################################ # Capture la photographie satellite de la France # https://fr.sat24.com/image?type=visual5HDComplete®ion=fr +MY_PATH="`dirname \"$0\"`" # relative +MY_PATH="`( cd \"$MY_PATH\" && pwd )`" # absolutized and normalized +ME="${0##*/}" -mkdir -p ~/..zen/adventure/meteo.anim.eu -rm -f ~/..zen/adventure/meteo.anim.eu/meteo.png -curl -m 20 --output ~/..zen/adventure/meteo.anim.eu/meteo.png https://s.w-x.co/staticmaps/wu/wu/satir1200_cur/europ/animate.png +mkdir -p ~/.zen/adventure/meteo.anim.eu +rm -f ~/.zen/adventure/meteo.anim.eu/meteo.png +curl -m 20 --output ~/.zen/adventure/meteo.anim.eu/meteo.png https://s.w-x.co/staticmaps/wu/wu/satir1200_cur/europ/animate.png -if [[ ! -f ~/..zen/adventure/meteo.anim.eu/meteo.png ]]; then +if [[ ! -f ~/.zen/adventure/meteo.anim.eu/meteo.png ]]; then echo "Impossible de vous connecter au service meteo" exit 1 else echo "NEED HTML TEMPLATING" echo "Mise à jour archive points meteo : $ts" - echo $ts > ~/..zen/adventure/meteo.anim.eu/.ts + echo $ts > ~/.zen/adventure/meteo.anim.eu/.ts PSEUDO=$(cat ~/.zen/adventure/players/.current/.pseudo 2>/dev/null) OLDID=$(cat ~/.zen/adventure/players/.current/.meteo.index 2>/dev/null) @@ -34,8 +37,8 @@ else INDEXID=$(ipfs add -rHq ~/.zen/adventure/players/.current/public | tail -n 1) echo $INDEXID > ~/.zen/adventure/players/.current/.meteo.index echo "LAST VIDEO INDEX http://127.0.0.1:8080/ipfs/$INDEXID" - IPFS=$(ipfs add -Rw ~/..zen/adventure/meteo.anim.eu/) - echo $IPFS > ~/..zen/adventure/meteo.anim.eu/.chain + IPFS=$(ipfs add -Rw ~/.zen/adventure/meteo.anim.eu/) + echo $IPFS > ~/.zen/adventure/meteo.anim.eu/.chain diff --git a/templates/_sandbox/meteo_chain.html b/adventure/template/meteo_chain.html similarity index 100% rename from templates/_sandbox/meteo_chain.html rename to adventure/template/meteo_chain.html diff --git a/templates/_sandbox/styles/bootstrap.min.css b/adventure/template/styles/bootstrap.min.css similarity index 100% rename from templates/_sandbox/styles/bootstrap.min.css rename to adventure/template/styles/bootstrap.min.css diff --git a/templates/_sandbox/styles/bootstrap.min.css.map b/adventure/template/styles/bootstrap.min.css.map similarity index 100% rename from templates/_sandbox/styles/bootstrap.min.css.map rename to adventure/template/styles/bootstrap.min.css.map diff --git a/templates/_sandbox/styles/decoration.css b/adventure/template/styles/decoration.css similarity index 100% rename from templates/_sandbox/styles/decoration.css rename to adventure/template/styles/decoration.css diff --git a/templates/_sandbox/styles/font-awesome.min.css b/adventure/template/styles/font-awesome.min.css similarity index 100% rename from templates/_sandbox/styles/font-awesome.min.css rename to adventure/template/styles/font-awesome.min.css diff --git a/templates/_sandbox/styles/forest.css b/adventure/template/styles/forest.css similarity index 100% rename from templates/_sandbox/styles/forest.css rename to adventure/template/styles/forest.css diff --git a/templates/_sandbox/styles/jqcloud.scss b/adventure/template/styles/jqcloud.scss similarity index 100% rename from templates/_sandbox/styles/jqcloud.scss rename to adventure/template/styles/jqcloud.scss diff --git a/templates/_sandbox/styles/jquery.css b/adventure/template/styles/jquery.css similarity index 100% rename from templates/_sandbox/styles/jquery.css rename to adventure/template/styles/jquery.css diff --git a/templates/_sandbox/styles/layout.css b/adventure/template/styles/layout.css similarity index 100% rename from templates/_sandbox/styles/layout.css rename to adventure/template/styles/layout.css diff --git a/templates/_sandbox/styles/logo.png b/adventure/template/styles/logo.png similarity index 100% rename from templates/_sandbox/styles/logo.png rename to adventure/template/styles/logo.png diff --git a/templates/_sandbox/styles/monokai.css b/adventure/template/styles/monokai.css similarity index 100% rename from templates/_sandbox/styles/monokai.css rename to adventure/template/styles/monokai.css diff --git a/templates/_sandbox/styles/pagination.css b/adventure/template/styles/pagination.css similarity index 100% rename from templates/_sandbox/styles/pagination.css rename to adventure/template/styles/pagination.css diff --git a/templates/_sandbox/styles/slick.css b/adventure/template/styles/slick.css similarity index 100% rename from templates/_sandbox/styles/slick.css rename to adventure/template/styles/slick.css diff --git a/templates/_sandbox/styles/slickstyle.css b/adventure/template/styles/slickstyle.css similarity index 100% rename from templates/_sandbox/styles/slickstyle.css rename to adventure/template/styles/slickstyle.css diff --git a/templates/_sandbox/styles/tagcloud.css b/adventure/template/styles/tagcloud.css similarity index 100% rename from templates/_sandbox/styles/tagcloud.css rename to adventure/template/styles/tagcloud.css diff --git a/templates/_sandbox/styles/video-js.css b/adventure/template/styles/video-js.css similarity index 100% rename from templates/_sandbox/styles/video-js.css rename to adventure/template/styles/video-js.css diff --git a/templates/_sandbox/styles/video-wall.css b/adventure/template/styles/video-wall.css similarity index 100% rename from templates/_sandbox/styles/video-wall.css rename to adventure/template/styles/video-wall.css