-
Notifications
You must be signed in to change notification settings - Fork 640
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
IP addresses in HTML files #769
Comments
This is not necessary. The hard coded IP-adresses are only for my personal local debugging of the html in my test environment. and should not make a difference in a real live implementation. |
Well they do in my case, because I am accessing the device at |
Any idea, how I can distinguish between your localhost usage and my debugging mode? |
I think you could just use a different mechanism to trigger the debugging mode, for instance by providing an alternate host in a localStorage field. That would have the advantage of not leaving your own IP addresses in the official HTML/JS files. |
I need to think about it. The IP is not a problem, it is a local one behind a server. Currently I leave it like it is, but also will leave the merge request open. Thanks in any case for improving! |
Currently not followed anymore - debugging is triggered through IP adress |
I think fixing this would really help making the project more welcoming for other developers. It looks like I am not the only one who struggled with this, see #865. Are you at all interested in contributions from others, such as the InfluxDB PR (#774) I sent a while ago? If so, do you think it would be worth making the life of other developers easier on the project? In the coming weeks I am going to work on Ethernet support (following #607). When I see a GitHub project I generally assume that the maintainer(s) are keen to see other people involved, but I recognize that it is not always the case, often GitHub is just used as a hosting solution and not as a collaboration platform. If that is the case for this project, then sorry for the noise: I will not send further issues and PRs. |
Support and contribution is highly wellcome. The only thing is, that I'm really not a html programmer, which makes my effort to html changes much higher, than to the firmware. If you have a good idea, please let send to me and I will change the code. |
@Webnet: I tried now for 5 hours to get another automated option and failed! Any ideas? I reopen the issue, just to have somebody helping, but currently I'm at the end of my html-knowledge. Request: I need to detect, when I'm running on my local computer (VSCode) or on the ESP32 camera in order to go to a debugging mode |
Thanks! Would it be okay for you if you had to type one command in the Javascript console of your browser, as a one-time measure, and then the host would be automatically adjusted as it currently is? If that sounds like an acceptable solution to you, I can open a PR for this. |
I'm not sure, if this helps. I tell you my workflow.
With this I can easily debug anything, especially if I have a second VSCode with an ESP32-device running in parallel, in which I can then check the log informations in parallel. In order to keep this system running, I need in step 2) another mechanism to savely detect the VSCode environment, whitout manually switching to debug mode or something similar. My idea was to have a local file as a switch (which I don't sync with github), to detect the local environment, but I cannot get it running by now. P.S.: next day I'm only available very limited - answers will be delayed. |
Yes, using a file that is unchecked in Git could also work. With the
Would that be appropriate for you? If you prefer a file based solution, I can also write that for you. |
Thanks for your explanation. I would prefer the file based solution, cause it is almost no change to my running system. If you coulud support with this, that would be great. I almost made it with jQuery, but was stucked at the asyncronous loading of the file. The rest of my javascript finished, before the filecheck could be done. |
Are there updates to the file based version? Are you still working on this or should I close this issue? |
I have not had time to work on this as I am ill, but it is still on my radar. |
Okay - then I suggest to close this issue and you can reopen a new one, as soon as you have some results. I need to keep the overview and try to clean up older not followed topics currently. |
Fixed by #2378, thankfully. |
Thanks for developing this project, it works very well!
To isolate this device from the rest of our network, I run it on a separate WiFi network and then access it via some tunnels. When I do so, some of the UI fails to load. While investigating this I noticed that the HTML files stored on the SD card contain some static IP addresses, such as
AI-on-the-edge-device/sd-card/html/edit_alignment.html
Line 107 in a020fce
I wonder if those should not be replaced by
or something along those lines, so that the UI works regardless of how the UI is served?
The text was updated successfully, but these errors were encountered: