diff --git a/zen/gchange_MONITOR.sh b/zen/gchange_MONITOR.sh index 04bc417..26cd8d8 100755 --- a/zen/gchange_MONITOR.sh +++ b/zen/gchange_MONITOR.sh @@ -17,11 +17,16 @@ ipfsnodeid=$(ipfs id -f='\n') g1pub=$(cat ~/.ssb/secret.dunikey | grep 'pub:' | cut -d ' ' -f 2) CESIUM="https://g1.data.le-sou.org" +GCHANGE="https://data.gchange.fr" # /user/profile/2L8vaYixCf97DMT8SistvQFeBj7vb6RQL7tvwyiv1XVH?&_source_exclude=avatar._content -curl -sk ${CESIUM}/user/profile/${g1pub} -o ~/.zen/cache/cesium_profile.json +#curl -sk ${CESIUM}/user/profile/${g1pub} -o ~/.zen/cache/cesium_profile.json LON=$(cat ~/.zen/cache/cesium_profile.json | jq '._source.geoPoint.lon') LAT=$(cat ~/.zen/cache/cesium_profile.json | jq '._source.geoPoint.lat') +curl -sk ${GCHANGE}/user/profile/${g1pub} -o ~/.zen/cache/GCHANGE_profile.json +LON=$(cat ~/.zen/cache/GCHANGE_profile.json | jq '._source.geoPoint.lon') +LAT=$(cat ~/.zen/cache/GCHANGE_profile.json | jq '._source.geoPoint.lat') + RAD="$1" [[ ! $RAD ]] && RAD="50km"