forked from STI/Astroport.ONE
25 lines
894 B
Bash
Executable File
25 lines
894 B
Bash
Executable File
#!/bin/bash
|
|
################################################################################
|
|
# Author: Fred (support@qo-op.com)
|
|
# Version: 0.1
|
|
# License: AGPL-3.0 (https://choosealicense.com/licenses/agpl-3.0/)
|
|
################################################################################
|
|
ts=$(date -u +%s%N | cut -b1-13)
|
|
################################################################################
|
|
# Capture la photographie satellite de la France
|
|
|
|
mkdir -p ~/..zen/game/meteofrance
|
|
rm -f ~/..zen/game/meteofrance/meteo.jpg
|
|
curl -m 20 --output ~/..zen/game/meteofrance/meteo.jpg https://fr.sat24.com/image?type=visual5HDComplete®ion=fr
|
|
|
|
if [[ ! -f ~/..zen/game/meteofrance/meteo.jpg ]]; then
|
|
echo "Impossible de vous connecter à https://fr.sat24.com/"
|
|
exit 1
|
|
else
|
|
echo "MIse à jour blockchain meteo : $ts"
|
|
echo $ts > ~/..zen/game/meteofrance/.ts
|
|
|
|
ipfs add
|
|
fi
|
|
|