{{ :informatique:docker:warp10:starter_kit:starterkit_logo.png?nolink&180x202}}
====== 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 =====
[[https://www.warp10.io/content/03_Documentation/02_Installation/02_Docker#getting-tokens|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 ===
[[https://github.com/floriantales/arduino_sketchbook/tree/master/ESP8266/Warp10/Warp10_HTTP_POST_Demo|Warp10_HTTP_POST_Demo]]\\
\\
Documentation [[http://www.warp10.io/content/03_Documentation/03_Interacting_with_Warp_10/03_Ingesting_data/01_Ingress|Warp10 - Ingress]]
==== Over WebSocket ====
=== ESP8266 ===
[[https://github.com/floriantales/arduino_sketchbook/tree/master/ESP8266/Warp10/Warp10_WebSocket_Demo|Warp10_WebSocket_Demo]]\\
\\
Documentation [[https://www.warp10.io/content/03_Documentation/03_Interacting_with_Warp_10/06_Websockets|Warp10 - Plasma]]
===== Read GTS =====
[[https://www.warp10.io/content/03_Documentation/03_Interacting_with_Warp_10/04_Fetching_data/01_Fetching_data#example|Reading Data]] - On lit les GTS - ici via WarpStudio :\\
{{:informatique:docker:warp10:starter_kit:first_fetch_warpstudio.png?direct&750x242}}
===== Delete GTS =====
[[https://www.warp10.io/content/03_Documentation/03_Interacting_with_Warp_10/07_Deleting_data|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'
~~socialite~~