WebREPL Parameters

Discussion about programs, libraries and tools that work with MicroPython. Mostly these are provided by a third party.
Target audience: All users and developers of MicroPython.
Post Reply
flywire
Posts: 22
Joined: Wed Jan 02, 2019 7:08 am

WebREPL Parameters

Post by flywire » Fri Jan 04, 2019 4:15 am

  • The default WebREPL address is not compatible with my network. Can I get it to start up with 10.0.0.129?
  • The 8266 port is ok but it would also be nice to be able to change that.
  • Can I specify the password too?

kevinkk525
Posts: 969
Joined: Sat Feb 03, 2018 7:02 pm

Re: WebREPL Parameters

Post by kevinkk525 » Fri Jan 04, 2019 7:29 am

The webrepl address is the IP of your esp otherwise it would not work.
No Idea about the other questions, password I guess no.
Kevin Köck
Micropython Smarthome Firmware (with Home-Assistant integration): https://github.com/kevinkk525/pysmartnode

User avatar
Roberthh
Posts: 3667
Joined: Sat May 09, 2015 4:13 pm
Location: Rhineland, Europe

Re: WebREPL Parameters

Post by Roberthh » Fri Jan 04, 2019 8:28 am

The default WebREPL address is not compatible with my network. Can I get it to start up with 10.0.0.129?
Look at webrepl,.html, about line 50.
The 8266 port is ok but it would also be nice to be able to change that.
It can be changed in the client webrepl.html at line 50 too, but you aöso have to change the call. When you start webrepl in boot.py, you can specify the port & password.
webrepl.start(port=xxxx, password='yyyy')
Can I specify the password too?
Yes, see above
A clear screen button would be good, I suppose I can define cls. Hmm, checking http://docs.micropython.org/en/latest/l ... module-uos maybe not
Clear screen is something which has to be told by a script to the console. try at REPL:
print("\x1b[2J\x1b[H")

flywire
Posts: 22
Joined: Wed Jan 02, 2019 7:08 am

Re: WebREPL Parameters

Post by flywire » Fri Jan 04, 2019 9:54 am

@Roberthh - excellent! :thumbsup::thumbsup::thumbsup:

Seems all possible but not with the hosted version I've been using. I should have looked through the issues: URL parameters for host and auto_connect already raised and workaround given but seems no active development.

HermannSW
Posts: 197
Joined: Wed Nov 01, 2017 7:46 am
Contact:

Re: WebREPL Parameters

Post by HermannSW » Fri Jan 04, 2019 1:34 pm

You can easily change WebREPL password by "import webrepl_setup" (enable, and say yes to change the password).
Pico-W Access Point static file webserver:
https://github.com/Hermann-SW/pico-w

Tiny MicroPython robots (the PCB IS the robot platform)
viewtopic.php?f=5&t=11454

webrepl_client.py
https://github.com/Hermann-SW/webrepl#webrepl-shell

flywire
Posts: 22
Joined: Wed Jan 02, 2019 7:08 am

Re: WebREPL Parameters

Post by flywire » Sat Jan 05, 2019 6:39 am

Roberthh wrote:
Fri Jan 04, 2019 8:28 am
Clear screen ... try at REPL:

Code: Select all

print("\x1b[2J\x1b[H")
Hmm - http://ascii-table.com/ansi-escape-sequences.php, clear screen and position cursor to 0,0.

Forward to the past - adopted by Windows 10, finally!

Post Reply