diff --git a/RUNTIME/NODE.refresh.sh b/RUNTIME/NODE.refresh.sh index bda5bcec..58e9f6fc 100755 --- a/RUNTIME/NODE.refresh.sh +++ b/RUNTIME/NODE.refresh.sh @@ -52,10 +52,11 @@ if [[ -d ~/.zen/tmp/${IPFSNODEID} ]]; then done ## INFORM GPS LOCATION - cp ~/.zen/GPS ~/.zen/tmp/${IPFSNODEID}/ - - [[ ! -s ~/.zen/tmp/${IPFSNODEID}/GPS ]] \ - && cp ~/.zen/game/players/.current/GPS.json ~/.zen/tmp/${IPFSNODEID}/ + [[ -s ~/.zen/game/players/.current/GPS.json ]] \ + && cp ~/.zen/game/players/.current/GPS.json ~/.zen/tmp/${IPFSNODEID}/ \ + && LAT=$(cat ~/.zen/tmp/${IPFSNODEID}/GPS.json | jq -r .[].lat) \ + && LON=$(cat ~/.zen/tmp/${IPFSNODEID}/GPS.json | jq -r .[].lon) \ + && echo "LAT=${LAT}; LON=${LON}" > ~/.zen/GPS ## REFRESH TIMESTAMPING echo "${MOATS}" > ~/.zen/tmp/${IPFSNODEID}/_MySwarm.moats diff --git a/WWW/FAVICON/favicon.carte.monnaie-libre.png b/WWW/FAVICON/favicon.carte.monnaie-libre.png new file mode 100644 index 00000000..d3375a90 Binary files /dev/null and b/WWW/FAVICON/favicon.carte.monnaie-libre.png differ diff --git a/kubo_v0.16.0_linux.install.sh b/kubo_v0.16.0_linux.install.sh deleted file mode 100755 index f588fb9c..00000000 --- a/kubo_v0.16.0_linux.install.sh +++ /dev/null @@ -1,44 +0,0 @@ -#!/bin/bash -[ $(id -u) -eq 0 ] && echo "LANCEMENT root INTERDIT. Utilisez un simple utilisateur du groupe \"sudo\" SVP" && exit 1 - -mkdir ~/.zen/tmp -cd ~/.zen/tmp - -# Check processor architecture -architecture=$(uname -m) - -# Download appropriate version of kubo -if [ "$architecture" == "x86_64" ]; then - wget -O kubo.tar.gz https://dist.ipfs.tech/kubo/v0.16.0/kubo_v0.16.0_linux-amd64.tar.gz -elif [ "$architecture" == "aarch64" ]; then - wget -O kubo.tar.gz https://dist.ipfs.tech/kubo/v0.16.0/kubo_v0.16.0_linux-arm64.tar.gz -elif [ "$architecture" == "armv7l" ]; then - wget -O kubo.tar.gz https://dist.ipfs.tech/kubo/v0.16.0/kubo_v0.16.0_linux-arm.tar.gz -else - echo "Error: Unknown architecture" - exit 1 -fi - -tar -xvzf kubo.tar.gz - -cd kubo - -# Install -sudo bash install.sh - -# Test & clean -[[ $(ipfs --version) ]] \ -&& rm -Rf ~/.zen/tmp/kubo* - -[[ $XDG_SESSION_TYPE == 'x11' ]] && xdg-open https://www.openstreetmap.org - - echo "OUVREZ https://www.openstreetmap.org" - echo "ET CALIBREZ LA SYNCHRO 20H12 AVEC LE TEMPS NATUREL" - echo "SAISIR LES COORD. GPS DE VOTRE STATION IPFS (ex: 48.87039, 2.31673)" - read GPS - [[ $GPS == "" ]] && GPS="48.87039, 2.31673" - mkdir -p ~/.zen/ - echo "$GPS" > ~/.zen/GPS - - -exit 0