diff --git a/cron_MINUTE.sh b/cron_MINUTE.sh index 2541527..e7f4c5c 100755 --- a/cron_MINUTE.sh +++ b/cron_MINUTE.sh @@ -82,6 +82,8 @@ if [[ "$timebar" == "09:46" ]]; then ipfs p2p listen /x/g1pub-http /ip4/127.0.0.1/tcp/80 echo "G1smsPub FORWARD: ipfs p2p forward /x/g1pub-http /ip4/127.0.0.1/tcp/8021 /p2p/QmVywXoBSz7JZ5vunYYVwi72SdTizvFt7k7qd3ooyYHvHA" >> /tmp/A_p2pFwd_$IPFSNODEID fi + # Start G1sms API push/pull + $MY_PATH/zen/ipfs_OPEN_ports.sh fi #if [[ "$timebar" == "18:01" ]]; then #[[ "$IPFSNODEID" == "QmVywXoBSz7JZ5vunYYVwi72SdTizvFt7k7qd3ooyYHvHA" ]] && ipfs p2p listen /x/g1pub-http /ip4/127.0.0.1/tcp/80 @@ -166,7 +168,7 @@ fi randh=$((1 + RANDOM % 24)) if [[ $(($heure % $randh)) == 0 ]]; then diskMBps=$(dd if=/dev/zero of=~/.zen/test.disk bs=10M count=1 oflag=dsync 2>&1 | tail -n 1 | sed s/\,\ /\ -/g | cut -d '-' -f 4 | cut -d ' ' -f 1 | cut -d '.' -f 1) - diskGiga=$(df -h ~/.ipfs/ | tail -n 1 | awk '{print $4}' | cut -d 'G' -f '1') + diskGiga=$(df -h ~/.ipfs/ | tail -n 1 | awk '{print $4}' | cut -d 'G' -f '1' | cut -d '.' -f 1 ) echo "ssb_GET_zenyta write speed : $diskMBps MB/s" echo "Disk size : $diskGiga GB" # You can modify limit for a station to act ( > 15MB/s && > 5GB ) diff --git a/zen/gchange_MONITOR.sh b/zen/gchange_MONITOR.sh index 852073d..ab76f5d 100755 --- a/zen/gchange_MONITOR.sh +++ b/zen/gchange_MONITOR.sh @@ -52,9 +52,9 @@ TIMEBEFORE=$(date -u --date="-$DELAY" +"%s") TIMESTAMP=$(date -u +"%s") TOTAL=$(cat /tmp/gchange.json | jq .hits.total) echo 'tail -f ~/.zen/cache/gchange.txt' -echo 'Mes_annonces_ghange' > ~/.zen/cache/gchange.txt -echo "Mon_portefeuille_June_[:heart:](https://demo.cesium.app/#/app/wot/$g1pub/)" >> ~/.zen/cache/gchange.txt -echo "Mes_annonces_à_[$RAD](https://www.openstreetmap.org/#map=10/$LAT/$LON) " >> ~/.zen/cache/gchange.txt +echo 'Annonces_Gchange' > ~/.zen/cache/gchange.txt +echo "Portefeuille_[June_:heart:](https://demo.cesium.app/#/app/wot/$g1pub/)" >> ~/.zen/cache/gchange.txt +echo "Carte_[$RAD](https://www.openstreetmap.org/#map=10/$LAT/$LON) " >> ~/.zen/cache/gchange.txt chunk=0 fullcount=0