Démarrage docker Warp10 Standalone et WarpStudio :
docker run -d --restart=always --name="Warp10" -p 80:8080 -p 81:8081 warp10io/warp10:latest
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" } }
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'
Warp10_HTTP_POST_Demo
Documentation Warp10 - Ingress
Warp10_WebSocket_Demo
Documentation Warp10 - Plasma
Reading Data - On lit les GTS - ici via WarpStudio :
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'