webrepl icon indicating copy to clipboard operation
webrepl copied to clipboard

URL parameters for host and auto_connect

Open askvictor opened this issue 7 years ago • 3 comments

It would be nice to be able to go to something like: http://micropython.org/webrepl?host=192.168.1.66&auto_connect=True and have the webrepl go directly to that host (rather than the default of 192.168.4.1), and optionally auto-connect. This would allow browser bookmarks to be easily set

askvictor avatar Dec 31 '16 04:12 askvictor

There is a PR for this, see #16. It just does the host IP address bit. Does that PR work for you?

dpgeorge avatar Jan 04 '17 06:01 dpgeorge

@askvictor Meanwhile that can be done by editing webrepl.html to point to desired IP address

<input type="text" name="webrepl_url" id="url" value="ws://192.168.4.1:8266/" />

siriuspal avatar Jun 01 '17 16:06 siriuspal

I added a pull req - https://github.com/micropython/webrepl/pull/45

Which adds a few functions: +added ability to auto connect and auto login ( self ) +add logo ( 99a568d ) +add version display on connect ( 8e59ff0 )

Allows the usage of: webrepl.html#{"url":"ws://192.168.1.1:8266","pass":"123456","autoconnect":true

theredkoala21 avatar Apr 04 '19 03:04 theredkoala21