diff --git a/g1sms/init.sh b/g1sms/init.sh index 726b32e..989ec79 100755 --- a/g1sms/init.sh +++ b/g1sms/init.sh @@ -38,10 +38,7 @@ fi ################################################################## # Country Node Phone international prefix (TODO Worldwide) export COUNTRY="+33" - ################################################################## - # DU has a G1 value changed every 6 month! - # ./_DU Updated by cron_CODE.backup.sh - if [[ -f "./_DU" ]]; then export DUFACTOR=$(bc <<< "scale=2; $(cat "./_DU") / 100"); else log "__SUB:init.sh: FAILING TO FIND ./_DU EXIT!!!"; exit; fi + ################################################################## # Choose Default Unit: G1, DU, LOVE (DU cents), ZEN (G1 cents) export COIN="G1" @@ -60,18 +57,28 @@ fi ################################################################## # SMS SIM Card Phone Number export MASTERPHONE="+33695196729" - export ADRESSE="G1FabLab" + export ADRESSE="G1Pub" export G1DAB="NO" ################################################################## # ADMIN COMMAND PHONE ORIGIN - export ADMINPHONE="+33695196729" + export ADMINPHONE="+33647683646" export ADMINPSEUDO="Fred" ################################################################## # DUNITER/CESIUM+ DEFAULT SERVERS export DUNITER="https://g1.duniter.org" export CESIUM="https://g1.data.le-sou.org" - + ################################################################## + # DU has a G1 value changed every 6 month! + # "~/.zen/_DU" removed every 6 month for refresh + if [[ -f ~/.zen/_DU ]]; then + export DUFACTOR=$(bc <<< "scale=2; $(cat ~/.zen/_DU) / 100") + else + LASTDU=$(curl -s ${DUNITER}/blockchain/with/ud | jq '.result.blocks[]' | tail -n 1) || exit 1 + [[ $LASTDU != "" ]] && curl -s ${DUNITER}/blockchain/block/${LASTDU} | jq -r '.dividend' > ~/.zen/_DU || exit 1 + export DUFACTOR=$(bc <<< "scale=2; $(cat ~/.zen/_DU) / 100") + fi + # TODO Use latest Silkaj from "sudo fredp3 install silkaj" # export SILKAJ="/usr/local/bin/silkaj" source $MY_PATH/init_keys.sh diff --git a/www/LOVEBank/ajax.php b/www/LOVEBank/ajax.php index 8c561cf..b3821b2 100644 --- a/www/LOVEBank/ajax.php +++ b/www/LOVEBank/ajax.php @@ -1,6 +1,6 @@
-

compte à rebour enclenché

+

compte à rebour...

@@ -58,7 +58,7 @@
-

Activer une nouvelle Station



+

Activer une Station



@@ -77,7 +77,7 @@
-

Recevez votre Clef
Libérez-vous... Soyez vous même

+

LIBRE
vers un Futur plus Humain

@@ -85,14 +85,6 @@

-

Astroport c'est un code 100% Libre^1000, tissé avec Amour !^1000

-

Astroport est un système de Communication dernière génération.^1000 Pair à pair & ANOPTIQUE !!^1000

-

Astroport connecte les Humains...^1000 Sans flicage! Ni contrôle.^1000

-

Astroport accélère vos échanges ! Et^1000 facilite les actions communes...^1000

-

Astroport est un Système de Stockage^1000 partagé et hébergé entre amis^1000

-

Astroport répartit la Responsabilité Numérique^1000 à ses Membres Forgerons^1000

-

Astroport établit des Zones Economiques Naturelles^1000, où l'Humain échange ZEN ;)^1000

-

Astroport est un Atelier Applicatif Distribué^1000 une Forge Logicielle Libre et Collective^1000

Prenez place dans le Metavers Libre!^5000 Inscrivez-vous...^3000

@@ -101,6 +93,32 @@
+ +
+
+
+ +
+
+

Embarquez dans un nouvel Univers Numérique et Réel

+

Impossible à réaliser jusqu'à aujourd'hui! + Nous avons mis au point un système d'information totalement décentralisé. Créé par les Humains qui le compose. + Chacun y est souverain. Forgeron monétaire dans l'Oasis formé par son réseau d'amis. + Ici nul privilège autre que celui consciemment admis.

+

Il suffit de se saisir d'une clef pour y entrer !

+
+
+
+
+
+

Bâtisseurs d'un Monde Libre

+

Astroport compose le Metavers qui connecte nos mini-mondes + Gchange organise nos échanges gratuitement !!
+

Devenons maitre de son Economie! Entre amis et collaborateurs !

+
+
+
+
diff --git a/zen/cron_MINUTE.sh b/zen/cron_MINUTE.sh deleted file mode 100755 index 11b2d73..0000000 --- a/zen/cron_MINUTE.sh +++ /dev/null @@ -1,96 +0,0 @@ -#!/bin/bash -######################################################################## -# Author: Fred (support@qo-op.com) -# Version: 2020.04.19 -# License: AGPL-3.0 (https://choosealicense.com/licenses/agpl-3.0/) -######################################################################## -MY_PATH="`dirname \"$0\"`" # relative -MY_PATH="`( cd \"$MY_PATH\" && pwd )`" # absolutized and normalized -ME="${0##*/}" - -# Change cron_MINUTE.sh cron PATH -$MY_PATH/cron_VRFY.sh - -# CORRECT PATH -[[ ! $(echo $PATH | grep -F "/usr/local/bin") ]] && export PATH="$PATH:/usr/local/bin" -[[ ! $(echo $PATH | grep -F "~/.local/bin") ]] && export PATH="$PATH:~/.local/bin" - -[[ ! $(ps auxf --sort=+utime | grep -w ipfs | grep -v -E 'color=auto|grep' | tail -n 1 | cut -d " " -f 1) ]] && echo "ipfs daemon not running. EXIT" && exit 1 - -ipfsnodeid=$(/usr/local/bin/ipfs id -f='\n') -g1pub=$(cat ~/.ssb/secret.dunikey | grep 'pub:' | cut -d ' ' -f 2) - -# UNIVERSAL TIME (TODO ntpdate, but sudo problem) -minute=$(date -u +%M) -heure=$(date -u +%H) -timebar="$heure:$minute" -jourdelasemaine=$(date +%w) -jourdumois=$(date +%d) -numerosemaine=$(date +%V) -echo $timebar -# TIME NTP SYNC: TODO: Problem being root (stickybit INSTALL?) -# sudo ntpdate ntp.pool.org - -# #SWARM0 DEV MODE -# ACTIVATE 5 MN "git pull" update -[[ $(($minute % 5)) == 0 ]] && sleep $((1 + RANDOM % 12)) && cd $MY_PATH/../ && git pull && cd $MY_PATH - - - -################################################################## -# REFRESH IPFS SWARM DATA EVERY 12 minutes -[[ $(($minute % 12)) == 0 ]] && sleep $((1 + RANDOM % 10)) && $MY_PATH/ssb_IPFS_swarm.sh -################################################################## - -################################################################## -# MONITOR INPUT TX (TODO: DEBUG) -# Activate later for DAB ZenTx Machines -# [[ $(($minute % 5)) == 0 ]] && sleep $((1 + RANDOM % 10)) && $MY_PATH/g1_MONITOR_zen.sh "5 minutes" -################################################################## - -################################################################## -# YOUTUBE-DL -################################################################## -# RANDOMLY RUN SSB GET zenytv (avoid simultaneous run in swarm) -randh=$((1 + RANDOM % 24)) -# [[ $(($heure % $randh)) == 0 ]] && sleep $((1 + RANDOM % 10)) && $MY_PATH/ssb_GET_zenytv.sh -################################################################## -randh=$((1 + RANDOM % 24)) -# [[ $(($heure % $randh)) == 0 ]] && sleep $((1 + RANDOM % 10)) && $MY_PATH/ssb_GET_zenyta.sh -################################################################## - - -################################################################## -# MIDNIGHT:01 : ZENBOT CLEANING & UPDATE -if [[ "$timebar" == "00:01" ]]; then - sleep $((1 + RANDOM % 10)) - - # UPGRADE youtube-dl - youtube-dl --rm-cache-dir - youtube-dl -U - - sleep $((1 + RANDOM % 10)) - # LOG ROTATE EVERY SUNDAY - [[ $jourdelasemaine == 0 ]] && mv -f /tmp/astroport.log ~/.zen/astroport.$numerosemaine.log # LOG BACKUP FOR 1 YEAR !! - - sleep $((1 + RANDOM % 10)) - # GIT PULL - cd $MY_PATH/../ && git pull && cd $MY_PATH # UPDATE CODE git pull - - # Clear 24h ssb_GET markers - rm ~/.zen/zenytv.last.ts - rm ~/.zen/zenyta.last.ts - - # SYNC SSB Friends with IPFS SWARM - $MY_PATH/ssb_IPFS_swarm.sh - -fi -################################################################## - - -# MAXSTORAGE UPDATE -if [[ $jourdumois == 7 ]]; then - availableDiskSize=$(df -P ~/ | awk 'NR>1{sum+=$4}END{print sum}') - diskSize="$((availableDiskSize / 2))" - ipfs config Datastore.StorageMax $diskSize -fi