salt pepper = lat lon
This commit is contained in:
parent
6aa24b62d4
commit
36aac6bb74
|
@ -6,7 +6,7 @@
|
||||||
################################################################################
|
################################################################################
|
||||||
## API: UPLANET
|
## API: UPLANET
|
||||||
## Dedicated to OSM2IPFS & UPlanet Client App
|
## Dedicated to OSM2IPFS & UPlanet Client App
|
||||||
# ?uplanet=EMAIL&LAT=LON
|
# ?uplanet=EMAIL&salt=LAT&pepper=LON
|
||||||
## https://git.p2p.legal/qo-op/OSM2IPFS
|
## https://git.p2p.legal/qo-op/OSM2IPFS
|
||||||
################################################################################
|
################################################################################
|
||||||
MY_PATH="`dirname \"$0\"`" # relative
|
MY_PATH="`dirname \"$0\"`" # relative
|
||||||
|
@ -44,9 +44,9 @@ mkdir -p ~/.zen/tmp/${MOATS}/
|
||||||
|
|
||||||
## DIRECT VISA.print.sh
|
## DIRECT VISA.print.sh
|
||||||
PLAYER=${THAT}
|
PLAYER=${THAT}
|
||||||
[[ ${PLAYER} == "lat" ]] && PLAYER="@"
|
[[ ${PLAYER} == "salt" ]] && PLAYER="@"
|
||||||
|
|
||||||
[[ ${AND} == "lat" ]] && SALT=${THIS} || SALT=${AND}
|
[[ ${AND} == "salt" ]] && SALT=${THIS} || SALT=${AND}
|
||||||
|
|
||||||
[[ ${SALT} == "0" ]] && SALT="0.00"
|
[[ ${SALT} == "0" ]] && SALT="0.00"
|
||||||
input_number=${SALT}
|
input_number=${SALT}
|
||||||
|
@ -56,7 +56,7 @@ else
|
||||||
LAT=${input_number}
|
LAT=${input_number}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
[[ ${APPNAME} == "lon" ]] && PEPPER=${WHAT} || PEPPER=${APPNAME}
|
[[ ${APPNAME} == "pepper" ]] && PEPPER=${WHAT} || PEPPER=${APPNAME}
|
||||||
|
|
||||||
[[ ${PEPPER} == "0" ]] && PEPPER="0.00"
|
[[ ${PEPPER} == "0" ]] && PEPPER="0.00"
|
||||||
input_number=${PEPPER}
|
input_number=${PEPPER}
|
||||||
|
@ -118,10 +118,11 @@ UMAPGEN="https://ipfs.copylaradio.com/ipfs/QmSaFpSM6ps2pBqYxxLjKJfuigpEo98GNCPdK
|
||||||
echo ${UMAPGEN}
|
echo ${UMAPGEN}
|
||||||
|
|
||||||
## TODO find a better crawling method (pb tiles are not fully loaded before screenshot)
|
## TODO find a better crawling method (pb tiles are not fully loaded before screenshot)
|
||||||
echo "chromium --headless --disable-gpu --screenshot=/tmp/Umap_${SALT}_${PEPPER}.jpg --window-size=1200x1200 ${UMAPGEN}"
|
echo "chromium --headless --disable-gpu --screenshot=/tmp/Umap_${SALT}_${PEPPER}.jpg --window-size=1200x1200 \"${UMAPGEN}\""
|
||||||
chromium --headless --disable-gpu --screenshot=${HOME}/.zen/tmp/${MOATS}/Umap_${SALT}_${PEPPER}.jpg --window-size=1200x1200 ${UMAPGEN}
|
chromium --headless --disable-gpu --screenshot=/tmp/Umap_${SALT}_${PEPPER}.jpg --window-size=1200x1200 ${UMAPGEN}
|
||||||
|
|
||||||
## COPYING FILES FROM ABROAD
|
## COPYING FILES FROM ABROAD
|
||||||
|
cp /tmp/Umap_${SALT}_${PEPPER}.jpg ~/.zen/tmp/${MOATS}/
|
||||||
cp ~/.zen/tmp/${PASS}##/G1*.jpg ~/.zen/tmp/${MOATS}/
|
cp ~/.zen/tmp/${PASS}##/G1*.jpg ~/.zen/tmp/${MOATS}/
|
||||||
cp -f ~/.zen/tmp/${PASS}##/${PASS}.jpg ~/.zen/tmp/${MOATS}/G1Card.${PASS}.jpg
|
cp -f ~/.zen/tmp/${PASS}##/${PASS}.jpg ~/.zen/tmp/${MOATS}/G1Card.${PASS}.jpg
|
||||||
ls ~/.zen/tmp/${MOATS}/
|
ls ~/.zen/tmp/${MOATS}/
|
||||||
|
|
|
@ -73,8 +73,8 @@ header {
|
||||||
<span>Email : </span><input name=uplanet value=''></br></br>
|
<span>Email : </span><input name=uplanet value=''></br></br>
|
||||||
|
|
||||||
<div id="yellow">
|
<div id="yellow">
|
||||||
<input name='lat' value='0.00'>
|
<input name='salt' value='0.00'>
|
||||||
<h3><a title="CHECK BY YOURSELF" href="http://127.0.0.1:12345"> >>> (◕‿‿◕) <<< </a></h3>
|
<h3><a target="info" title="CHECK BY YOURSELF" href="http://127.0.0.1:12345"> >>> (◕‿‿◕) <<< </a></h3>
|
||||||
<input name='lon' value='0.00'>
|
<input name='lon' value='0.00'>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -95,7 +95,7 @@ header {
|
||||||
<option value='@astroport'>G1CARD+@</option>
|
<option value='@astroport'>G1CARD+@</option>
|
||||||
</select>
|
</select>
|
||||||
<input type='hidden' name='dice' value='4' >
|
<input type='hidden' name='dice' value='4' >
|
||||||
<button type='submit'>more crypto wallets...</button>
|
<button type='submit'>get more paper wallets...</button>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
</h2>
|
</h2>
|
||||||
|
@ -107,13 +107,13 @@ header {
|
||||||
// Extract latitude and longitude from URL parameters
|
// Extract latitude and longitude from URL parameters
|
||||||
document.addEventListener('DOMContentLoaded', function() {
|
document.addEventListener('DOMContentLoaded', function() {
|
||||||
const urlParams = new URLSearchParams(window.location.search);
|
const urlParams = new URLSearchParams(window.location.search);
|
||||||
const lat = urlParams.get('lat');
|
const salt = urlParams.get('salt');
|
||||||
const lon = urlParams.get('lon');
|
const pepper = urlParams.get('pepper');
|
||||||
const uplanet = urlParams.get('uplanet');
|
const uplanet = urlParams.get('uplanet');
|
||||||
|
|
||||||
// Set latitude and longitude values to hidden inputs
|
// Set latitude and longitude values to hidden inputs
|
||||||
const latElement = document.querySelector('input[name="lat"]');
|
const latElement = document.querySelector('input[name="salt"]');
|
||||||
const lonElement = document.querySelector('input[name="lon"]');
|
const lonElement = document.querySelector('input[name="pepper"]');
|
||||||
const uplanetElement = document.querySelector('input[name="uplanet"]');
|
const uplanetElement = document.querySelector('input[name="uplanet"]');
|
||||||
|
|
||||||
if (latElement && lonElement) {
|
if (latElement && lonElement) {
|
||||||
|
|
Loading…
Reference in New Issue