(◕‿‿◕) YOUR ASTROPORT

This commit is contained in:
fred 2023-04-26 23:21:47 +02:00
parent e316d5f1c4
commit 8339311d19
2 changed files with 7 additions and 6 deletions

View File

@ -83,14 +83,15 @@ Une fois votre Station Astroport démarrée:
⚠ ASTROPORT NETCAT SYSTEM ⚠ ⚠ ASTROPORT NETCAT SYSTEM ⚠
Astroport utilise l'outil réseau le plus simple "netcat". Il s'agit d'un moteur STEP donnant accès à une "API BASH". Astroport utilise l'outil réseau le plus simple "netcat".
Notre programme est conçu pour fonctionner dans des conditions de réseau local. Il s'agit d'un moteur STEP donnant accès à une "API BASH".
Le premier HTTP GET envoie la commande, mais l'APP doit obtenir le PORT de réponse. Les requêtes se font en HTTP GET.
Vous effectuez un regexp sur "url=ADRESSE:PORT" ou (◕‿‿◕) pour y obtenir le résultat.
Voici comment procéder en BASH ou JAVASCRIPT En voici des exemples.
## RECUPERATION DU PORT DE REPONSE API : (◕‿‿◕) ## RECUPERATION DU PORT DE REPONSE API : (◕‿‿◕)
### CLI ### CLI (BASH)
``` ```
# PLAYER COPIER "_URL_" FAVORITE # PLAYER COPIER "_URL_" FAVORITE
curl -so ~/.zen/tmp/${MOATS}/astro.port "http://astroport.localhost:1234/?salt=0&pepper=0&g1pub=_URL_&email=${EMAIL}" curl -so ~/.zen/tmp/${MOATS}/astro.port "http://astroport.localhost:1234/?salt=0&pepper=0&g1pub=_URL_&email=${EMAIL}"

View File

@ -75,7 +75,7 @@ header {
<h1><span>Astroport</span> <a href="http://127.0.0.1:12345">Ŋ1</a></h1> <h1><span>Astroport</span> <a href="http://127.0.0.1:12345">Ŋ1</a></h1>
<div id="yellow"> <div id="yellow">
<input name='salt' value='0'> <input name='salt' value='0'>
<h3><a title="url='http://127.0.0.1:12345'" href="http://127.0.0.1:12345"> >>> (◕‿‿◕) <<< </a></h3> <h3><a title="YOUR ASTRO PORT" href="http://127.0.0.1:12345"> >>> (◕‿‿◕) <<< </a></h3>
<input name='pepper' value='0'> <input name='pepper' value='0'>
</div> </div>
<h2> <h2>