Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot get the webgui to run #103

Open
GordonApplepie opened this issue Feb 7, 2024 · 8 comments
Open

Cannot get the webgui to run #103

GordonApplepie opened this issue Feb 7, 2024 · 8 comments

Comments

@GordonApplepie
Copy link

Hi there,
hope u guys can help me. I do have multiple questions.

  1. Can I run the webgui without being connected to the IKEA matrix? (I wanted to do software stuff first before I break open the matrix and soldier out the old controller)
  2. I wasn't aware that the differences on ESP32 controllers are that big when I ordered my one. I got a ESP32 NodeMCU Module USB C ESP32 WROOM 32 Nodemcu Development Board 2.4 GHz WLAN WiFi Bluetooth CH340 Chip from Amazon.

I basically uploaded the standard configuration, connected through Wifi and setup the AP settings. Which worked fine, then fixed the IP in my router. When I try to ping or open the IP in the web browser I am not able to reach it though.

So I tried to setup the IP also in code, for example in frontend/.env (which should only matter when actually making a request I think). Then I tried setting up the static ip config in constants.h. But it will still not work.

I also tried to debug but then I get an error that states that there is not enough flash memory for it.

Also even after uploading an esp32 image again the AP settings seem to be stored. How am I able to delete them?

@jaal2001
Copy link
Contributor

jaal2001 commented Feb 7, 2024

No. 1 yes, you can. The display is "just the output device". Connect your ESP32 to USB Power (after flashing it) and you are good to go.
No. 2 As far as I can see, your ESP should work fine. You are also telling, that you could successfully connect to the ESP after flashing, so it works (which already had solved question No. 1)

What do you mean by "then fixed the IP in my router"?

@GordonApplepie
Copy link
Author

In my router I enabled a fixed IP for the board. That is what I meant.
I got a little further. So I installed Teleplot and found out that there was an mDNS error which I could fix with these lines in main.cpp
image

Now the output in Teleplot looks actually good. But I am not able to open up the gui on the IP in my web browser 🤔
image

@jaal2001
Copy link
Contributor

jaal2001 commented Feb 7, 2024

Okay, that is beyond where I could help. My suggestion would be: Try DHCP first, check if the board then works fine (with the non modified code). If that works and you can access the board, maybe you can proceed from there.

@GordonApplepie
Copy link
Author

ok. it is getting weirder 🤔 so i added a httpclient to actually request the gui from the esp32 within and it is actually working
image
image

this makes no sense to me. i could only image there is some kind of firewall inbetween, but there is none 👀 same wifi ap

@jaal2001
Copy link
Contributor

jaal2001 commented Feb 8, 2024

The only thing I could add here: For almost anyone it worked out of the box. Again, have you tried staying on DHCP first and check if that works?
In include/constants.h is a section, where you can define static ip settings, this would be my 2nd test. Yes, telling your DHCP server "always serve that IP adress to that client" should work, but something is rotten here.

@GordonApplepie
Copy link
Author

yep. so i resetted in the upper example all changes and left it running normally on dhcp

@GordonApplepie
Copy link
Author

so i also tried setting up static ip. but no change 🤔 mh. no idea what can be the issue
image
image

@jaal2001
Copy link
Contributor

jaal2001 commented Feb 8, 2024

Any chance to use that ESP on an another network (i.e. Hotspot of mobile)? This could maybe help to get better into the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants