ecraft2learn / uui

This is the Unified User Interface of the eCraft2Learn project.
https://ecraft2learn.github.io/uui/
4 stars 4 forks source link

How serious are we about being able to run offline? #13

Open ToonTalk opened 6 years ago

ToonTalk commented 6 years ago

Currently only the programming tools are available offline (Snap4Arduino, BeetleBlocks, Snap) and we haven't been updating them. I don't know about eCraft Search and eCraft Idea running locally. But even the UUI requires libraries that we don't currently store locally. Trying to run it locally without internet produces errors like the following.

Should we invest any effort into fixing this or is it too much effort to support sites without internet? This issue first came up when our Greek partner was unsure if there would be a good Internet connection but they have one (but it is slow).

GET https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css net::ERR_CONNECTION_CLOSED index.html:22 GET https://cdn.ravenjs.com/3.22.1/raven.min.js net::ERR_CONNECTION_CLOSED index.html:9 GET https://ajax.aspnetcdn.com/ajax/jQuery/jquery-3.2.1.min.js net::ERR_CONNECTION_CLOSED index.html:12 GET https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js net::ERR_CONNECTION_CLOSED

Calkin-eC2L commented 6 years ago

This really has got to be resolved. There were some talks some time ago about having the UUI running locally if not internet is available and then synchronizing whenever connectivity is re-established. Is this something that we can consider? (there is already the electron version - can it be improved?)

afsheenam commented 6 years ago

For bootstrap and jQuery I can store them locally. I think raven is something that Sentry is using and so even if we store it locally, there is no way that it can report the errors if we are working offline. So maybe we can keep that as it is.

ToonTalk commented 6 years ago

One thing we could do on Raspberry Pis is to set up the SD card so it launches a local web server and provides links to the offline UUI. If there is no Internet then a few things will work at least. AND if there is an Internet connection the demand to use it will be reduced significantly since the UUI and Snap4Arduino (and BeetleBlocks) would run locally and only for other tools will there be the load (and delays) of using the net.

Furthermore the local server can support use of the Raspberry Pis pins. Snap with a simple library could be doing physical computing without any Arduinos.