Différences
Cette page vous donne les différences entre la révision choisie et la version actuelle de la page.
calendrier:2019:02:09 [Le 10/02/2019 à 10:47] rzr |
calendrier:2019:02:09 [Le 12/02/2019 à 10:56] (Version actuelle) rzr |
||
---|---|---|---|
Ligne 9: | Ligne 9: | ||
pour interagir en 3D avec des données physiques, le tout avec du 100% libre. | pour interagir en 3D avec des données physiques, le tout avec du 100% libre. | ||
- | <html> | + | ==== DEMO ==== |
- | <iframe width="560" height="315" sandbox="allow-same-origin allow-scripts" src="https://peertube.mastodon.host/videos/embed/13749076-c906-44fb-966b-0a2a010c605f" frameborder="0" allowfullscreen></iframe> | + | |
- | </html> | + | |
+ | * https://peertube.mastodon.host/videos/embed/13749076-c906-44fb-966b-0a2a010c605f | ||
+ | * https://glitch.com/~gulliver-webxr-iot | ||
+ | * https://www.youtube.com/watch?v=5XaD6eS6OUE | ||
+ | * https://glitch.com/edit/#!/gulliver-webxr-iot?path=refreshing.html:21:0 | ||
+ | |||
+ | |||
+ | ==== PRATIQUE ==== | ||
Venez avec vos idees mais aussi ordinateurs (on va coder !) et votre materiel VR/AR/IoT si vous en avez. | Venez avec vos idees mais aussi ordinateurs (on va coder !) et votre materiel VR/AR/IoT si vous en avez. | ||
Ligne 104: | Ligne 109: | ||
* changing the color of a cube based on a value sensor (simulated for now) https://glitch.com/edit/#!/gulliver-webxr-iot?path=refreshing.html:22:0 | * changing the color of a cube based on a value sensor (simulated for now) https://glitch.com/edit/#!/gulliver-webxr-iot?path=refreshing.html:22:0 | ||
* http://gulliver-webxr-iot.glitch.me/leds.html | * http://gulliver-webxr-iot.glitch.me/leds.html | ||
+ | |||
Ligne 123: | Ligne 129: | ||
console.log(things); | console.log(things); | ||
}); | }); | ||
- | |||
- | |||
- | url='http://gateway.local:8080/things/http---localhost-58888-/properties/Color' | ||
- | |||
- | url=http://gateway.local:8080/things/http---localhost-8888-/properties/GreenLED | ||
- | |||
- | |||
- | |||
- | curl -H "Authorization: Bearer eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6IjE1NzJkNjgzLTA5ODQtNDVhYy05NU4NCJ9.eyJjbGllbnRfaWQiOiJsb2NhbC10b2tlbiIsInJvbGUiOiJhY2Nlc3NfdG9rZW4iLCJzY29wZSI6Ii90aGluZ3M6cmVhZHdyaXRlIiwiaWF0IjoxNTQ5NzIyNDI5LCJpc3MiOiJOb3Qgc2V0LiJ9.WxHbYjWfAiK0PTWo47m1oeNZkDIlWi2swvpXq1y_6iM-uMt0fesix057OLg2byKC322dItyV1wxSdEJGMWYkWg" -H "Accept: application/json" -H "Content-type: application/json" --insecure -X PUT -d '{ "GreenLED": true }' $url | ||
- | |||
- | |||
- | curl -H "Authorization: Bearer eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6IjE1NzJkNjgzLTA5ODQtNDVhYy05NU4NCJ9.eyJjbGllbnRfaWQiOiJsb2NhbC10b2tlbiIsInJvbGUiOiJhY2Nlc3NfdG9rZW4iLCJzY29wZSI6Ii90aGluZ3M6cmVhZHdyaXRlIiwiaWF0IjoxNTQ5NzIyNDI5LCJpc3MiOiJOb3Qgc2V0LiJ9.WxHbYjWfAiK0PTWo47m1oeNZkDIlWi2swvpXq1y_6iM-uMt0fesix057OLg2byKC322dItyV1wxSdEJGMWYkWg" -H "Accept: application/json" -H "Content-type: application/json" --insecure -X PUT -d '{ "GreenLED": true }' 'http://gateway.local:8080/things/http---localhost-8888-/properties/RedLED' | ||
- | |||
- | token='Bearer eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6ImI4MzlmMTBlLWY4NWMtNGY5Ni05MWI1LTkwZDZiYmU5ZThiMiJ9.eyJjbGllbnRfaWQiOiJsb2NhbC10b2tlbiIsInJvbGUiOiJhY2Nlc3NfdG9rZW4iLCJzY29wZSI6Ii90aGluZ3M6cmVhZHdyaXRlIiwiaWF0IjoxNTQ5NzI0NTE0LCJpc3MiOiJOb3Qgc2V0LiJ9.sgA06Hys2eXpOJMx-tpZLe5cdbYO-RfwgWkHzbQFMktwyjaTMrekPGJ-d7iXikngAi8_v2-bOWfLlFyA8rZdoQ' | ||
- | |||
- | curl -H "Authorization: $token" -H "Accept: application/json" -H "Content-Type: application/json" --insecure 'http://gateway.local:8080/things/http---localhost-8888-/properties/RedLED' | ||
- | |||
- | |||
- | |||
- | https://annuel.framapad.org/p/lewebaudeladuweb | ||
- | |||
- | |||
- | http://gateway.local:8080/things # login=gulliver@localhost # pass=gulliver | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | curl -X PUT --data '{"RedLED":true}' -H "Authorization: $token" -H "Accept: application/json" -H "Content-Type: application/json" --insecure 'http://gateway.local:8080/things/http---localhost-8888-/properties/RedLED' | ||
- | |||
- | |||
- | curl "http://gateway.local:8080/things/http---localhost-8888-/properties/RedLED" | ||
- | |||
- | -X PUT -H "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:65.0) Gecko/20100101 Firefox/65.0" -H "Accept: */*" -H "Accept-Language: en-US,en;q=0.5" --compressed -H "Referer: http://gulliver-webxr-iot.glitch.me/leds.html" -H "content-type: application/json" -H "authorization: Bearer eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6ImI4MzlmMTBlLWY4NWMtNGY5Ni05MWI1LTkwZDZiYmU5ZThiMiJ9.eyJjbGllbnRfaWQiOiJsb2NhbC10b2tlbiIsInJvbGUiOiJhY2Nlc3NfdG9rZW4iLCJzY29wZSI6Ii90aGluZ3M6cmVhZHdyaXRlIiwiaWF0IjoxNTQ5NzI0NTE0LCJpc3MiOiJOb3Qgc2V0LiJ9.sgA06Hys2eXpOJMx-tpZLe5cdbYO-RfwgWkHzbQFMktwyjaTMrekPGJ-d7iXikngAi8_v2-bOWfLlFyA8rZdoQ" -H "Origin: http://gulliver-webxr-iot.glitch.me" -H "DNT: 1" -H "Connection: keep-alive" -H "Pragma: no-cache" -H "Cache-Control: no-cache" --data "{""RedLED"":true}" | ||
- | |||
- | |||
- | curl "http://gateway.local:8080/things/http---localhost-8888-/properties/RedLED" -X PUT -H "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:65.0) Gecko/20100101 Firefox/65.0" -H "Accept: */*" -H "Accept-Language: en-US,en;q=0.5" --compressed -H "Referer: http://gulliver-webxr-iot.glitch.me/leds.html" -H "content-type: application/json" -H "authorization: Bearer eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6ImI4MzlmMTBlLWY4NWMtNGY5Ni05MWI1LTkwZDZiYmU5ZThiMiJ9.eyJjbGllbnRfaWQiOiJsb2NhbC10b2tlbiIsInJvbGUiOiJhY2Nlc3NfdG9rZW4iLCJzY29wZSI6Ii90aGluZ3M6cmVhZHdyaXRlIiwiaWF0IjoxNTQ5NzI0NTE0LCJpc3MiOiJOb3Qgc2V0LiJ9.sgA06Hys2eXpOJMx-tpZLe5cdbYO-RfwgWkHzbQFMktwyjaTMrekPGJ-d7iXikngAi8_v2-bOWfLlFyA8rZdoQ" -H "Origin: http://gulliver-webxr-iot.glitch.me" -H "DNT: 1" -H "Connection: keep-alive" -H "Pragma: no-cache" -H "Cache-Control: no-cache" --data "{""RedLED"":true}" | ||
- | http://gulliver-webxr-iot.glitch.me/leds.html |