{"id":1631,"date":"2021-02-01T18:20:13","date_gmt":"2021-02-01T17:20:13","guid":{"rendered":"http:\/\/www.gistlabs.net\/weblogs\/?p=1631"},"modified":"2023-02-08T13:42:58","modified_gmt":"2023-02-08T12:42:58","slug":"thymiohttp-control-the-thymio-robot-with-berkeley-snap-or-python","status":"publish","type":"post","link":"https:\/\/www.gistlabs.net\/weblogs\/thymiohttp-control-the-thymio-robot-with-berkeley-snap-or-python\/","title":{"rendered":"thymioHTTP: Control the Thymio Robot with Berkeley Snap! or Python"},"content":{"rendered":"\n<p>There is simplest version of this work without HTTP Support here :   <a href=\"https:\/\/snap.berkeley.edu\/snap\/snap.html#present:Username=gist&amp;ProjectName=ThymioSNAP&amp;editMode&amp;noRun\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/snap.berkeley.edu\/snap\/snap.html#present:Username=gist&amp;ProjectName=ThymioSNAP&amp;editMode&amp;noRun<\/a><\/p>\n\n\n\n<p>The main goal of this project is to provide an access to the Thymio(s) from the <a href=\"https:\/\/snap.berkeley.edu\/\">Berkeley Snap!<\/a>, Scratch+++ like programming langage. This is a javascript node-based application that create an ws:\/\/ access to the thymio-device-manager running under Thymio Suite 2.x and provide an HTTP REST simple API to control the Thymio(s).<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"768\" src=\"https:\/\/www.gistlabs.net\/weblogs\/wp-content\/uploads\/2021\/02\/ThymioHTTP-1024x768.png\" alt=\"\" class=\"wp-image-1638\" srcset=\"https:\/\/www.gistlabs.net\/weblogs\/wp-content\/uploads\/2021\/02\/ThymioHTTP-1024x768.png 1024w, https:\/\/www.gistlabs.net\/weblogs\/wp-content\/uploads\/2021\/02\/ThymioHTTP-300x225.png 300w, https:\/\/www.gistlabs.net\/weblogs\/wp-content\/uploads\/2021\/02\/ThymioHTTP-768x576.png 768w, https:\/\/www.gistlabs.net\/weblogs\/wp-content\/uploads\/2021\/02\/ThymioHTTP-847x635.png 847w, https:\/\/www.gistlabs.net\/weblogs\/wp-content\/uploads\/2021\/02\/ThymioHTTP.png 1102w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Because we want the Thymio to be as ind\u00e9pendant as possible from Wireless or USB, we created SnapToAseba, a codification tool that convert Thymio Snap! code to Aseba code and run it on the Real device :<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"724\" src=\"https:\/\/www.gistlabs.net\/weblogs\/wp-content\/uploads\/2021\/02\/SnapToAseba-1024x724.png\" alt=\"\" class=\"wp-image-1639\" srcset=\"https:\/\/www.gistlabs.net\/weblogs\/wp-content\/uploads\/2021\/02\/SnapToAseba-1024x724.png 1024w, https:\/\/www.gistlabs.net\/weblogs\/wp-content\/uploads\/2021\/02\/SnapToAseba-300x212.png 300w, https:\/\/www.gistlabs.net\/weblogs\/wp-content\/uploads\/2021\/02\/SnapToAseba-768x543.png 768w, https:\/\/www.gistlabs.net\/weblogs\/wp-content\/uploads\/2021\/02\/SnapToAseba-847x599.png 847w, https:\/\/www.gistlabs.net\/weblogs\/wp-content\/uploads\/2021\/02\/SnapToAseba.png 1123w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Get thymioHTTP here :         <a href=\"https:\/\/github.com\/habib256\/thymioHTTP\">https:\/\/github.com\/habib256\/thymioHTTP<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>There is simplest version of this work without HTTP Support here : https:\/\/snap.berkeley.edu\/snap\/snap.html#present:Username=gist&amp;ProjectName=ThymioSNAP&amp;editMode&amp;noRun The main goal of this project is to provide an access to the Thymio(s) from the Berkeley Snap!, Scratch+++ like programming langage. This is a javascript node-based application that create an ws:\/\/ access to the thymio-device-manager running under Thymio Suite 2.x and &hellip; <\/p>\n<p><a class=\"more-link btn\" href=\"https:\/\/www.gistlabs.net\/weblogs\/thymiohttp-control-the-thymio-robot-with-berkeley-snap-or-python\/\">Continue reading<\/a><\/p>\n","protected":false},"author":1,"featured_media":1635,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[245,9,12],"tags":[506,509,502,507,504,503,508,505,501],"class_list":["post-1631","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-electronique","category-dev","category-sciences","tag-berkeley","tag-dev","tag-http","tag-javascript","tag-python","tag-rest","tag-robotique","tag-snap-2","tag-thymio","item-wrap"],"_links":{"self":[{"href":"https:\/\/www.gistlabs.net\/weblogs\/wp-json\/wp\/v2\/posts\/1631","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.gistlabs.net\/weblogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.gistlabs.net\/weblogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.gistlabs.net\/weblogs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.gistlabs.net\/weblogs\/wp-json\/wp\/v2\/comments?post=1631"}],"version-history":[{"count":3,"href":"https:\/\/www.gistlabs.net\/weblogs\/wp-json\/wp\/v2\/posts\/1631\/revisions"}],"predecessor-version":[{"id":1720,"href":"https:\/\/www.gistlabs.net\/weblogs\/wp-json\/wp\/v2\/posts\/1631\/revisions\/1720"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.gistlabs.net\/weblogs\/wp-json\/wp\/v2\/media\/1635"}],"wp:attachment":[{"href":"https:\/\/www.gistlabs.net\/weblogs\/wp-json\/wp\/v2\/media?parent=1631"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.gistlabs.net\/weblogs\/wp-json\/wp\/v2\/categories?post=1631"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.gistlabs.net\/weblogs\/wp-json\/wp\/v2\/tags?post=1631"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}