{"action":"created","issue":{"url":"https://api.github.com/repos/micropython/micropython/issues/2299","repository_url":"https://api.github.com/repos/micropython/micropython","labels_url":"https://api.github.com/repos/micropython/micropython/issues/2299/labels{/name}","comments_url":"https://api.github.com/repos/micropython/micropython/issues/2299/comments","events_url":"https://api.github.com/repos/micropython/micropython/issues/2299/events","html_url":"https://github.com/micropython/micropython/issues/2299","id":169922383,"number":2299,"title":"Hosting webrepl from ESP8266 - feasible?","user":{"login":"cefn","id":159819,"avatar_url":"https://avatars.githubusercontent.com/u/159819?v=3","gravatar_id":"","url":"https://api.github.com/users/cefn","html_url":"https://github.com/cefn","followers_url":"https://api.github.com/users/cefn/followers","following_url":"https://api.github.com/users/cefn/following{/other_user}","gists_url":"https://api.github.com/users/cefn/gists{/gist_id}","starred_url":"https://api.github.com/users/cefn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cefn/subscriptions","organizations_url":"https://api.github.com/users/cefn/orgs","repos_url":"https://api.github.com/users/cefn/repos","events_url":"https://api.github.com/users/cefn/events{/privacy}","received_events_url":"https://api.github.com/users/cefn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-08-08T13:26:20Z","updated_at":"2016-08-08T19:20:18Z","closed_at":null,"body":"Increasingly impressed with all the work on micropython and looking forward to incorporating it into what we do at @ShrimpingIt ! Trying to bottom out a few issues about how we should pre-flash ESP01 (1Meg) and NodeMcu v2 boards for the greatest possible accessibility for our learners.\r\n\r\nBeing able to program them standalone from a laptop, tablet or phone is really powerful. However, currently I have been visiting  http://micropython.org/webrepl/ then switching Wifi network to be able to connect to the  ESP8266 module. This will not be possible for all our learners and ideally having a mobile phone would be enough to be able to program or issue commands to these devices.  \r\n\r\nThis suggests we should attempt to serve the webrepl.html and supporting files direct from the ESP8266. However, I am surprised not to see this configuration documented anywhere. Is there a reason this hasn't been attempted which I can't yet fathom?\r\n\r\n Is it worth putting together a module which serves the browser interface files ( https://github.com/micropython/webrepl ) on some port or is it somehow incompatible to host a webserver on http://192.168.4.1:80 at the same time as the repl socket on ws://192.168.4.1:8266/?"},"comment":{"url":"https://api.github.com/repos/micropython/micropython/issues/comments/238346975","html_url":"https://github.com/micropython/micropython/issues/2299#issuecomment-238346975","issue_url":"https://api.github.com/repos/micropython/micropython/issues/2299","id":238346975,"user":{"login":"hoihu","id":5887072,"avatar_url":"https://avatars.githubusercontent.com/u/5887072?v=3","gravatar_id":"","url":"https://api.github.com/users/hoihu","html_url":"https://github.com/hoihu","followers_url":"https://api.github.com/users/hoihu/followers","following_url":"https://api.github.com/users/hoihu/following{/other_user}","gists_url":"https://api.github.com/users/hoihu/gists{/gist_id}","starred_url":"https://api.github.com/users/hoihu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hoihu/subscriptions","organizations_url":"https://api.github.com/users/hoihu/orgs","repos_url":"https://api.github.com/users/hoihu/repos","events_url":"https://api.github.com/users/hoihu/events{/privacy}","received_events_url":"https://api.github.com/users/hoihu/received_events","type":"User","site_admin":false},"created_at":"2016-08-08T19:20:18Z","updated_at":"2016-08-08T19:20:18Z","body":"> This suggests we should attempt to serve the webrepl.html and supporting files direct from the ESP8266. However, I am surprised not to see this configuration documented anywhere. Is there a reason this hasn't been attempted which I can't yet fathom?\r\n\r\nYou might have a look at a pending pull request:\r\nhttps://github.com/micropython/webrepl/pull/1\r\n\r\nthe approach there is to use a feature in HTML5 which allows you to use webpages offline (using a cached version). This way it's possible that the phone/tablet can connect to the esp8266 by using the cached webrepl.html (It will use the cached version if it thinks it is offline)\r\n\r\nIt's not merged because of concerns that not all browsers are compatible with. I heard you need to explicitly disable all possible Internet connections (3G/4G) because otherwise the phone will try to establish a connection over this connection instead of the wifi and hence will not establish a connection to the esp8266.\r\n\r\nIf you try it out and give feedback, that might convince some of the maintainers to have another look at it."}}
{"actor":{"display_login":"hoihu"}}