Use of amzqr API
This commit is contained in:
parent
ac25e42e73
commit
182b665010
29
README.md
29
README.md
|
@ -259,7 +259,7 @@ GET /?salt=${SALT}&pepper=${PEPPER}&pay=1&g1pub=DsEx1pS33vzYZg4MroyBV9hCw98j1gtH
|
||||||
| `pay` | `integer` | **Required** G1 AMOUNT |
|
| `pay` | `integer` | **Required** G1 AMOUNT |
|
||||||
| `g1pub` | `G1PUB` | **Required** destination "wallet key" |
|
| `g1pub` | `G1PUB` | **Required** destination "wallet key" |
|
||||||
|
|
||||||
## ➤ PLAYER ZONE (API Station qui héberge ${PLAYER})
|
## ➤ PLAYER ZONE (disponible uniquement sur la Station qui héberge ${PLAYER})
|
||||||
### ```/?player=${PLAYER}&${APPNAME}=${WHAT}&${OBJ}=${VAL}...```
|
### ```/?player=${PLAYER}&${APPNAME}=${WHAT}&${OBJ}=${VAL}...```
|
||||||
|
|
||||||
### Exporter Tiddlers.json depuis son TW selon valeur des "tags" ( ici TAG=G1CopierYoutube)
|
### Exporter Tiddlers.json depuis son TW selon valeur des "tags" ( ici TAG=G1CopierYoutube)
|
||||||
|
@ -285,13 +285,38 @@ GET /?player=${PLAYER}&youtube=URLENCODED
|
||||||
| `youtube or pdf` | `string` | **Required** URL kind = URL |
|
| `youtube or pdf` | `string` | **Required** URL kind = URL |
|
||||||
|
|
||||||
|
|
||||||
|
## ➤ AMZQR : Create a QRCode with "amzqr"
|
||||||
|
### ```/?amzqr=${URLENCODEDSTRING}&logo=${IMAGE}```
|
||||||
|
|
||||||
|
| Parameter | Type | Description |
|
||||||
|
| :-------- | :------- | :-------------------------------- |
|
||||||
|
| `amzqr` | `string` | **Required** the qrcode string |
|
||||||
|
| `logo` | `string` | **Required** ./images/${IMAGE}.png |
|
||||||
|
|
||||||
|
check available "logo.png" in [./images](./images)
|
||||||
|
|
||||||
|
## ➤ UPLANET : Create Umap, G1Card & G1Visa for PLAYER (email)
|
||||||
|
### ```/?uplanet=${PLAYER}&salt=${LAT}&pepper=${LON}&g1pub=${PASS}```
|
||||||
|
|
||||||
|
| Parameter | Type | Description |
|
||||||
|
| :-------- | :------- | :-------------------------------- |
|
||||||
|
| `uplanet` | `email` | **Required** Your EMAIL token |
|
||||||
|
| `salt` | `decimal` | **Required** LATITUDE with 2 decimals digits |
|
||||||
|
| `pepper` | `decimal` | **Required** LONGITUDE with 2 decimals digits |
|
||||||
|
| `g1pub` | `string` | **Facultative** choose Umap G1Card PASS |
|
||||||
|
|
||||||
|
Create à Umap key (LAT/LON), then a PLAYER TW with GPS as Umap IPNS reference
|
||||||
|
This API is used by OSM2IPFS code.
|
||||||
|
|
||||||
|
DEMO : https://ipfs.copylaradio.com/ipns/copylaradio.com
|
||||||
|
|
||||||
### QRCODE (API SandBox)
|
### QRCODE (API SandBox)
|
||||||
```http
|
```http
|
||||||
GET /?qrcode=${G1PUB} | ${ASTRONAUTENS} | ${PGP_G1CARD_STRING}
|
GET /?qrcode=${G1PUB} | ${ASTRONAUTENS} | ${PGP_G1CARD_STRING}
|
||||||
```
|
```
|
||||||
| Parameter | Type | Description |
|
| Parameter | Type | Description |
|
||||||
| :-------- | :------- | :-------------------------------- |
|
| :-------- | :------- | :-------------------------------- |
|
||||||
| `qrcode` | `string` | **Required**. Your G1PUB token |
|
| `qrcode` | `string` | **Required**. Your G1PUB or ASTRONAUTENS or PGP_G1CARD token |
|
||||||
|
|
||||||
> Look for details & extend as you like in [~/.zen/Astroport.ONE/API/QRCODE.sh](API/QRCODE.sh)
|
> Look for details & extend as you like in [~/.zen/Astroport.ONE/API/QRCODE.sh](API/QRCODE.sh)
|
||||||
|
|
||||||
|
|
|
@ -51,12 +51,36 @@ header {
|
||||||
background-color: #e7d9fc;
|
background-color: #e7d9fc;
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
}
|
}
|
||||||
|
#aframe {
|
||||||
|
background: white;
|
||||||
|
color: black;
|
||||||
|
}
|
||||||
|
|
||||||
|
#console {
|
||||||
|
visibility: hidden;
|
||||||
|
background: rgba(0, 0, 0, 0.7); /* Adjust the background color and opacity as needed */
|
||||||
|
color: white;
|
||||||
|
width: 580px;
|
||||||
|
height: 580px;
|
||||||
|
position: absolute;
|
||||||
|
bottom: 0;
|
||||||
|
left: 0;
|
||||||
|
padding: 5px;
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
<!-- Typed text animation -->
|
|
||||||
<script src="http://127.0.0.1:8080/ipfs/QmYyJmAT3cUbjk4vVWQG7LdpY3HkFH9phFD1VzzetHrgpa"></script>
|
|
||||||
<!-- Astro API JS LIB -->
|
<!-- Astro API JS LIB -->
|
||||||
<script src="http://127.0.0.1:8080/ipfs/Qmae5v9zydax9u6C9ceDijURu5PYdd5avmv4NkenCw7RFv/astro.js"></script>
|
<script src="http://127.0.0.1:8080/ipfs/Qmae5v9zydax9u6C9ceDijURu5PYdd5avmv4NkenCw7RFv/astro.js"></script>
|
||||||
|
<script>
|
||||||
|
// Prepare QRCode generator for this same page
|
||||||
|
var currentURL = window.location.href;
|
||||||
|
const amzURL = encodeURIComponent(currentURL);
|
||||||
|
const rooturl = currentURL.split('/?')[0];
|
||||||
|
|
||||||
|
const qrURL = `${rooturl}/?amzqr=${amzURL}&logo=G1WorldMap`;
|
||||||
|
console.log('qrURL = ' + qrURL);
|
||||||
|
</script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<header>
|
<header>
|
||||||
|
@ -69,6 +93,7 @@ header {
|
||||||
</div>
|
</div>
|
||||||
<span><div id="ainfo"></div></span>
|
<span><div id="ainfo"></div></span>
|
||||||
<div id="debug"></div>
|
<div id="debug"></div>
|
||||||
|
<button onclick="document.getElementById('console').style.visibility = 'visible'; homeAstroportStation( qrURL, 'aframe', 3000);">Create UMap QRCode</button>
|
||||||
|
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
|
@ -89,7 +114,7 @@ header {
|
||||||
<input name='salt' value='0.00'>
|
<input name='salt' value='0.00'>
|
||||||
<h3><a target="info" title="CHECK BY YOURSELF" href="http://127.0.0.1:12345"> >>> (◕‿‿◕) <<< </a>
|
<h3><a target="info" title="CHECK BY YOURSELF" href="http://127.0.0.1:12345"> >>> (◕‿‿◕) <<< </a>
|
||||||
</h3>
|
</h3>
|
||||||
<input name='pepper' value='0.00'>
|
<input name='pepper' value='0.00'><br>
|
||||||
</div>
|
</div>
|
||||||
<input type=hidden name=g1pub value=''></br>
|
<input type=hidden name=g1pub value=''></br>
|
||||||
(<span id='LAT'></span>:<span id='LON'></span>) registration<br>
|
(<span id='LAT'></span>:<span id='LON'></span>) registration<br>
|
||||||
|
@ -98,6 +123,10 @@ header {
|
||||||
|
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
|
<div id="console"><a href="_STATION_" target="aframe">CONSOLE____________</a> <button onclick="document.getElementById('console').style.visibility = 'hidden';">close</button>
|
||||||
|
<iframe name="aframe" id="aframe" src="_STATION_" width="100%" height="100%"></iframe>
|
||||||
|
</div>
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
<span><a href="https://pad.p2p.legal/s/Astroport.ONE">Astroport.</a>.<a href="https://github.com/papiche/Astroport.ONE">ONE</a>
|
<span><a href="https://pad.p2p.legal/s/Astroport.ONE">Astroport.</a>.<a href="https://github.com/papiche/Astroport.ONE">ONE</a>
|
||||||
<br> - Crypto Commons Playground -</span>
|
<br> - Crypto Commons Playground -</span>
|
||||||
|
@ -165,8 +194,6 @@ document.addEventListener('DOMContentLoaded', function() {
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
const el = document.getElementById('yellow');
|
const el = document.getElementById('yellow');
|
||||||
//~ const log = document.getElementById('login');
|
|
||||||
//~ log.style.visibility = 'visible';
|
|
||||||
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
el.style.visibility = 'visible';
|
el.style.visibility = 'visible';
|
||||||
|
|
Loading…
Reference in New Issue