Hello,
i am using a wemos D1 Mini Pro with a HX711 and a DS18B20. Everey ten minutes data is send to a thingspeak and InfluxDB Server. So far, everything is working fine.
But, i want to connect to the system via webrepl. The daemon is started :
“WebREPL daemon started on ws://192.168.43.186:8266
Started webrepl in normal mode”
But i can not connect, i always get the answer "Disconnected” at the webrepl page.
Why is it not working? Any idea, what could i try?
JFYI: Both, Wemos and Laptop are connected to a wlan hotspot made with my mobile phone? Does this have any influence?
regards
Martin
webrepl is not working?
-
- Posts: 969
- Joined: Sat Feb 03, 2018 7:02 pm
Re: webrepl is not working?
Strange, I have the same problem.. No error/debug output on the esp either.
But if you clone/download the webrepl repository to your desktop and open it from there then it works.
But if you clone/download the webrepl repository to your desktop and open it from there then it works.
Kevin Köck
Micropython Smarthome Firmware (with Home-Assistant integration): https://github.com/kevinkk525/pysmartnode
Micropython Smarthome Firmware (with Home-Assistant integration): https://github.com/kevinkk525/pysmartnode
Re: webrepl is not working?
I downloaded the repository, but my setup is not working
https://github.com/micropython/webrepl
https://github.com/micropython/webrepl
Re: webrepl is not working?
One sleepless night later, i found the problem.
boot.py -> main.py -> import run.mpy
So my program is precompiled and is started with import run.mpy and here is the problem.
Within run,mpy you have to call
I had that code in boot.py
Now everthing is working.
But still the documentation is a bit strange, because there is not written, that you have to start werepl-daemon in your code.. During the setup-dialog it says, the daemon is starting automatically at boot
boot.py -> main.py -> import run.mpy
So my program is precompiled and is started with import run.mpy and here is the problem.
Within run,mpy you have to call
Code: Select all
import webrepl
webrepl.start()
Now everthing is working.
But still the documentation is a bit strange, because there is not written, that you have to start werepl-daemon in your code.. During the setup-dialog it says, the daemon is starting automatically at boot
-
- Posts: 969
- Joined: Sat Feb 03, 2018 7:02 pm
Re: webrepl is not working?
It is started automatically because those lines will get added to the boot.py
If that is not the case for you then you might have changed your boot.py or something similar.
If that is not the case for you then you might have changed your boot.py or something similar.
Kevin Köck
Micropython Smarthome Firmware (with Home-Assistant integration): https://github.com/kevinkk525/pysmartnode
Micropython Smarthome Firmware (with Home-Assistant integration): https://github.com/kevinkk525/pysmartnode