forked from axiom-team/astroport
Using CESIUMPLUS=https://g1.data.le-sou.org
This commit is contained in:
parent
3ab51f570d
commit
35b3dbd8fd
|
@ -41,11 +41,11 @@ cat ~/.zen/ipfs/.${IPFSNODEID}/tryme.addr
|
|||
|
||||
################################
|
||||
# ADD Cesium+ informations
|
||||
GCHANGE="https://data.gchange.fr"
|
||||
CESIUMPLUS="https://g1.data.le-sou.org"
|
||||
|
||||
# PREPARE title
|
||||
# Made from Gchange+ profile tittle and city OR user@hostname
|
||||
title=$(curl -s ${GCHANGE}/user/profile/${G1PUB} | jq -r '._source.title')
|
||||
title=$(curl -s ${CESIUMPLUS}/user/profile/${G1PUB} | jq -r '._source.title')
|
||||
[[ -f ~/.zen/ipfs/.$IPFSNODEID/G1SSB/_uidna ]] && uidna=$(cat ~/.zen/ipfs/.$IPFSNODEID/G1SSB/_uidna)
|
||||
|
||||
# Put in .$IPFSNODEID INDEX: _g1.uidna & _g1.cesium_name (used by Minetest flavour and others)
|
||||
|
@ -55,17 +55,17 @@ title=$(curl -s ${GCHANGE}/user/profile/${G1PUB} | jq -r '._source.title')
|
|||
[[ $uidna ]] && [[ "$title" == "null" ]] && title="Station $uidna"
|
||||
[[ "$title" == "null" ]] && title="Station $USER@$(cat /etc/hostname)"
|
||||
|
||||
city=$(curl -s ${GCHANGE}/user/profile/${G1PUB} | jq -r '._source.city')
|
||||
city=$(curl -s ${CESIUMPLUS}/user/profile/${G1PUB} | jq -r '._source.city')
|
||||
[[ "$city" != "null" ]] && title="$title in $city"
|
||||
|
||||
|
||||
# ADD "cesium_geoPoint.lat" AND "cesium_geoPoint.lon" messages in SSB feed
|
||||
# This way any SSB account is connected to its Cesium+ Geolocalisation.
|
||||
geopointlat=$(curl -s ${GCHANGE}/user/profile/${G1PUB} | jq '._source.geoPoint.lat')
|
||||
geopointlon=$(curl -s ${GCHANGE}/user/profile/${G1PUB} | jq '._source.geoPoint.lon')
|
||||
geopointlat=$(curl -s ${CESIUMPLUS}/user/profile/${G1PUB} | jq '._source.geoPoint.lat')
|
||||
geopointlon=$(curl -s ${CESIUMPLUS}/user/profile/${G1PUB} | jq '._source.geoPoint.lon')
|
||||
|
||||
# REFRESH Cesium+ Avatar image
|
||||
curl -s ${GCHANGE}/user/profile/${G1PUB} | jq -r '._source.avatar._content' | base64 -d > "/tmp/_gchange.avatar.png"
|
||||
curl -s ${CESIUMPLUS}/user/profile/${G1PUB} | jq -r '._source.avatar._content' | base64 -d > "/tmp/_gchange.avatar.png"
|
||||
|
||||
# Get nodename
|
||||
[[ -f /home/$YOU/.zen/ipfs/.$IPFSNODEID/G1SSB/_nodename ]] && nodename=$(cat /home/$YOU/.zen/ipfs/.$IPFSNODEID/G1SSB/_nodename)
|
||||
|
@ -100,7 +100,7 @@ IWALLETS=$(ipfs add -rHq ~/.zen/ipfs | tail -n 1)
|
|||
NODEIPNS=$(ipfs name publish --allow-offline --quieter /ipfs/$IWALLETS)
|
||||
|
||||
###
|
||||
# GET ALL MY GCHANGE FRIENDS AND SEND THEM my IPFS Address
|
||||
# GET ALL MY CESIUMPLUS FRIENDS AND SEND THEM my IPFS Address
|
||||
|
||||
cd ~/.zen/astroport/zen/jaklis
|
||||
# GET LIST of issuer(s) who likes me
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
DUNIKEY="/.zen/secret.dunikey" # Chemin du fichier de trousseau Ḡ1 de l'émetteur, au format PubSec
|
||||
#POD="https://data.gchange.fr" # Noeud Gchange utilisé pour l'envoi du message
|
||||
#POD="https://g1.data.duniter.fr" # Noeud Cecium+ utilisé pour l'envoi du message
|
||||
#POD="https://g1.data.le-sou.org" # Adresse du pod Cesium de secours
|
||||
POD="https://data.gchange.fr" # Noeud Gchange utilisé pour l'envoi du message
|
||||
POD="https://g1.data.le-sou.org" # Adresse du pod Cesium de secours
|
||||
|
|
Loading…
Reference in New Issue