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

Add port to camera and thumbnail URL #312

Closed
wants to merge 1 commit into from
Closed

Add port to camera and thumbnail URL #312

wants to merge 1 commit into from

Conversation

michael-fritzsch
Copy link

Hi @marcolivierarsenault,

thanks for creating this nice Home Assistant integration! I noticed that I had to add the moonraker port to both camera URLs (camera and thumbnail).

I didn't fully work my way through the tests. Would a change to the tests be required for this change?

@marcolivierarsenault
Copy link
Owner

Hey 1 thanks a lot for the contribution.

Have you tried to put a url that includes a port in the original setup?

exemple:

http://1.2.3.4:123

@michael-fritzsch
Copy link
Author

Hi @marcolivierarsenault,

When adding a new printer to the integration, the setup screen looks like this:
image

I, as a user, don't get the idea to add a URL, because there are two fields asking for host and port, separately.

Or do you refer to the integration's "configure" screen show below? Yes, there I had to add the full URL including port. With this PR's change applied, the camera works without explicit configuration.
image

@michael-fritzsch
Copy link
Author

michael-fritzsch commented Apr 12, 2024

Oh sorry, @marcolivierarsenault. Now, I newly re-added the printer to the integration again to be fully sure. In my case, the camera streams runs on a different port than the moonraker API (see screenshots above). So in my case, I have to set the configuration entry manually.

When I tested this change, I was fooled by Homeassistant as it seems to have properly cached/saved the manual configuration somehow, while I thought I was starting with a clean device integration. Sorry for this!

Reading more through the monnraker documentation, I now understand that camera streams basically always run independent of moonraker on another port, so we shouldn't use the monnraker port as a default here. I didn't get that basic concept earlier. So closing this PR as being incorrect. Thanks for your helpful question 😄

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

Successfully merging this pull request may close these issues.

2 participants