Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Combining Snap extensions #1830

Open
ToonTalk opened this Issue Aug 15, 2017 · 0 comments

Comments

Projects
None yet
2 participants
@ToonTalk
Copy link

ToonTalk commented Aug 15, 2017

Our project eCraft2Learn has a need for extensions from Snap4Arduino and NetsBlox simultaneously, as well as our own JavaScript blocks. Combining the code bases seems to be a big effort and hard to maintain. I began a discussion of this on the NetsBlox forum. I then tried to link that a Snap4Arduino issue. But I'm thinking now this a more general issue for the entire Snap! effort. Why not, for example, link BeetleBlocks or TurtleStich with NetsBlox to create designs that depend upon some open data?

When I discovered the http server built into Snap4Arduino I saw a way in which these Snap extensions could run in their own tab (or browser) and communicate via localserver:42001. In a quick test I enabled Snap! to send messages to Snap4Arduino in this way.

This didn't work for NetsBlox talking to Snap4Arduino since NetsBlox must run with HTTPS while the localserver is HTTP and the browser doesn't allow them to mix. I faced this problem on the Raspberry Pi where I was able to run localhost with SSL and convince the browser to trust a self-signed certificate. For our project this is a reasonable solution since we plan to provide teachers with an SD card image for the Raspberry Pi with our customisations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.