Outils pour utilisateurs

Outils du site


informatique:docker:warp10:starter_kit

Starter Kit

Start Warp10

Démarrage docker Warp10 Standalone et WarpStudio :

docker run -d --restart=always --name="Warp10" -p 80:8080 -p 81:8081 warp10io/warp10:latest

Create Token

Getting Token - Génération d'un Token de démo valide 1 an :

docker exec -u warp10 -it Warp10 warp10-standalone.sh worf MyGTS 31536000000
{
"read":
{
"token":"_CMyoxjEHWECcDynChiuwHG.rIeaiIY1mrZSWdfS6bz6p1PqNH_gpkppoqgKyGlmdnueFuWUPyamxzKOz2Ss90YFkjDifWZP9yAjCBjrh5PXJuYrL5anJV",
"tokenIdent":"a98f77328f47d3fa","ttl":31536000000,"application":"MyGTS","applications":["MyGTS"],
"owners":["0f573687-508c-4da7-925f-87a224f0b7fe"],
"producer":"0f573687-508c-4da7-925f-87a224f0b7fe","producers":[]
},
"write":
{
"token":"AP_8QdbvhyjFJuuOoohNyHJClJd7ODr.vP5GMt.Y6irthsyFdeaZt_vx2CeCrQfpF465ADT1RKD5e488pteN2MhfVomQbEHAPX8Ra3foeYo",
"tokenIdent":"7af4eff80b201b04","ttl":31536000000,"application":"MyGTS",
"owner":"0f573687-508c-4da7-925f-87a224f0b7fe",
"producer":"0f573687-508c-4da7-925f-87a224f0b7fe"
}
}

Write GTS

Over HTTP - Ingress

Curl

curl -v -H 'X-Warp10-Token: my_write_token' --data-binary "1/48.44484:-4.46653/15000 GTS_demo{lieu=maison} 'Toctoc'" 'http://192.168.0.11:80/api/v0/update'

Un fichier de GTS :

curl -v -H 'X-Warp10-Token: my_write_token' --data-binary @eco2mix.gts 'http://192.168.0.11:80/api/v0/update'

ESP8266

Over WebSocket

ESP8266

Read GTS

Reading Data - On lit les GTS - ici via WarpStudio :

Delete GTS

Delete Data - On efface tout : ~.* url encoded :

 curl -v -H 'X-Warp10-Token: my_write_token' 'http://192.168.0.11:80/api/v0/delete?deleteall&selector=~.%2A%7B%7D'

informatique/docker/warp10/starter_kit.txt · Dernière modification : 2024/10/14 17:51 de 127.0.0.1