This commit is contained in:
fred 2023-12-30 21:05:26 +01:00
parent 1c4ced0b80
commit 4e153f9ef3
2 changed files with 3 additions and 4 deletions

View File

@ -239,10 +239,9 @@ echo "<meta http-equiv=\"refresh\" content=\"0; url='/ipfs/${ZCHAIN}' />" > ~/.z
### JSON UMAP SCRAPPING
####################################
## RECORD P4N SPOT DATA
curl -s "https://www.park4night.com/api/places/around?lat=${LAT}&lng=${LON}&radius=200&filter=%7B%7D&lang=fr" -o ~/.zen/tmp/${MOATS}/${UMAP}/fetch.json
echo "P4N : https://www.park4night.com/api/places/around?lat=${LAT}&lng=${LON}&radius=200&filter=%7B%7D&lang=fr"
[[ -s ~/.zen/tmp/${MOATS}/${UMAP}/fetch.json ]] \
&& curl -s "https://www.park4night.com/api/places/around?lat=${LAT}&lng=${LON}&radius=200&filter=%7B%7D&lang=fr" -o ~/.zen/tmp/${MOATS}/${UMAP}/fetch.json \\
&& [[ $(stat -c %s ~/.zen/tmp/${MOATS}/${UMAP}/fetch.json) -gt $(stat -c %s ~/.zen/tmp/${MOATS}/${UMAP}/p4n.json) ]] \
&& mv ~/.zen/tmp/${MOATS}/${UMAP}/fetch.json ~/.zen/tmp/${MOATS}/${UMAP}/p4n.json \
&& echo "UPDATED" \

View File

@ -23,7 +23,7 @@ mail="$1" # EMAIL DESTINATAIRE
messfile="$2" # FICHIER A AJOUTER AU CORPS MESSAGE
SUBJECT="[UPlanet] Astroport : $(myHostName)"
SUBJECT="[UPlanet/Astroport] : $(myHostName)"
MESSAGE="Bonjour $PLAYER
UN MESSAGE POUR VOUS.
@ -78,7 +78,7 @@ json_payload='{
"To": [
{
"Email": "'${RECIPIENT_EMAIL}'",
"Name": "UPlanet Astronaut"
"Name": "Astronaut"
}
],
"Bcc": [