Closed fieldOfView closed 3 years ago
I found that using a single camera still doesn't work with octo4a. is this only me or is there a config step I have overseen? the tunnel works fine for the main octoprint app, but I can't see the embedded stream, from outside my local network
The plugin works on one configurable port. If you want to see a webcam (or multiple thereof), they will have to be served from the same port. You would need a reverse proxy for that, such as HAProxy that gets installed on OctoPi (the raspberry pi distribution) by default. I don't know if Octo4a includes any reverse proxy.
puh ok that is all way over my head 😅
@jneilliii reported that the camera is not working for him. Originally posted by @jneilliii in https://github.com/fieldOfView/OctoPrint-ngrok/issues/8#issuecomment-667309001
The ngrok plugin looks at what
publicPort
is configured to use in thediscovery
section ofconfig.yaml
. For OctoPi, this is normally set to port 80: https://github.com/guysoft/OctoPi/blob/58ad94db1db2c8eb104f07c5cfab50c57da5916b/src/modules/octopi/filesystem/home/pi/.octoprint/config.yaml#L9 For manual installs, it is normally set to port 5000. Port 5000 skips the reverse proxy, so the webcam "redirect" is also requested from port 5000.This should be solved by making the port configurable in the plugin (with a default to what
publicPort
is configured to)