-
Notifications
You must be signed in to change notification settings - Fork 26
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
Broken camera if not an absolute path #363
Comments
that is a nice fix, I will give it a try. Not much bandwith to work on the integration just now, but will eventually take a look |
@Hawk84r have you tried to use the manual camera and set the port in it? |
If you mean something like |
yes this is what I meant
I am not sure I understand this? |
Diffirent URLs for accessing from inside my LAN and from outside (internet, city LAN, work etc.) or accessing by IP address. I personally prefer to have options without the need to change any settings on end devices. |
so if the option page had a port config it would work? |
It already does. If you enter full URL it just uses it with or without a port. My problem is if you use just the relative URL e.g. |
is the port you want to use for the camera the same port you want for accessing the rest of the API? |
That is correct. |
ok that should be doable |
ok so in normal setup, (not K1)
So they don't use the same port, I am thinking about adding a port config option that would be used only for the camera/thumbnail would that work for you Just to validate, what is the URL you use to see the webcam via your web browser. For me it's http://192.168.x.x/webcam/?action=stream if I do this in chrome, I can see the stream What about you? |
Sure can't on :80. |
We
Sure works now with fix in my first post, so I don't see why not. |
Can you try newest version 1.3.0 it allows to configure custom port for the camera and thumbnail (in the configure option) |
☝️ try this and reopen if needed |
Creality K1, rooted (using Fluidd mostly), Helper script, 2 cameras
When cameras are defined as relative path, like "/webcam/?action=stream" integration defaults url to http://{url}/webcam/?action=stream which doesn't make any sense for K1 as it has default UI at :80 and cameras, configured in moonraker would not make a valid path for default web server. You can remove it via helper script, but most don't. I prefer to make only necessary modifications for one.
It is fixed by:
CONF_PORT
tofrom .const import
self.url = f"http://{config_entry.data.get(CONF_URL)}"
toself.url = f"http://{config_entry.data.get(CONF_URL)}:{config_entry.data.get(CONF_PORT)}"
self.url = config_entry.data.get(CONF_URL)
toself.url = config_entry.data.get(CONF_URL) + ":" + config_entry.data.get(CONF_PORT)
home-assistant_2024-07-03T06-39-19.112Z.log
The text was updated successfully, but these errors were encountered: