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

octoprint interface ,output_http.so plugin #108

Open
benjjyman opened this issue Apr 18, 2021 · 4 comments
Open

octoprint interface ,output_http.so plugin #108

benjjyman opened this issue Apr 18, 2021 · 4 comments
Assignees
Labels
type:question User question

Comments

@benjjyman
Copy link

please disregard my previous issues, it appears I was looking at a different octoprint server on another system.

reading the docs i see ustreamer is capable of interfacing with output_http.so plugin, but for all my inexperience cant figure out how.

the window in the webpage shows a link which will open another tab with the stream, but I cant display the stream in the window, I believe its how octoprint uses the output_http.so plugin, Im only just learning to write plugins for octoprint and dont have the necessary skills yet to change this, so if anyone could help explain how to get ustreamer to interface with output_http.so plugin i would be very greatfull.

@mdevaev
Copy link
Member

mdevaev commented Apr 27, 2021

Ustreamer can't interact with output_http.so, it has own http server. Sorry, I don't understand what you're doing :(

@benjjyman
Copy link
Author

I was trying to setup an instance of octoprint for monitoring a 3d printer using a low powered orangepi zero running armbian (raspberry pi ulternative) which I think is debian based. Any way the original uses mjpeg streamer which is resource hungry on my little 512mb board. So I used ustreamer inplace, I didn't understand what output_http. So was as I have very little real world coding experience, so I got stuck for a couple of days. But I have the system working just fine.

If you like I can list the changes to get the two to interface on armbian?

Thanks for sharing your hard work

@mdevaev
Copy link
Member

mdevaev commented May 27, 2021

OMG I completely forgot to answer you, I'm sorry. Yes, list the necessary things, I'll try to find the time to do something.

@mdevaev mdevaev self-assigned this May 27, 2021
@mdevaev mdevaev added the type:question User question label May 27, 2021
@panic2k
Copy link

panic2k commented Nov 25, 2022

@benjjyman I had nearly no troubles to setup ustreamer for mainsail as ustreamer serves a mjpeg stream with http. I written a systemd service file after trying out a a little bit. I'm sure this works for Octoprint too.

[Unit]
Description=ustream server
After=network-online.target

[Service]
Type=simple
User=myusername
RemainAfterExit=yes
WorkingDirectory=/home/myusername/ustreamer
ExecStart=/home/myusername/ustreamer/ustreamer -d /dev/video1 -f 15 -l -s 127.0.0.1 -p 8123 -q 90 --allow-origin "*"
Restart=always
RestartSec=30

[Install]
WantedBy=multi-user.target

My stream can be accessed at http://127.0.0.1:8123/stream

Maybe you could use the ExecStart command to figure out your needed command line
Find your device by "v4l2-ctl --list-devices"
then run the modified ExecStart command on command line with your device instead and maybe -s changed to 0.0.0.0 so you could test the stream from any other host.

Edit: Looks good - if you figured it out you could finally configure your camera in Octoprint web interface just by configuring MJPEG Stream URL. It should work like a charm ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:question User question
Development

No branches or pull requests

3 participants