-
-
Notifications
You must be signed in to change notification settings - Fork 228
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
Improved camera stream with additional information #918
Comments
This will be tracked in #828. That issue will enable you to open the control view during print, on which you could assign your camera to a custom action. This wouldn't include the subtitle you're talking about. This is quite an interesting idea on its own, so I'm hijacking your ticket here and will solely focus on the subtitle, while opening the camera during print will be tracked in the other issue. Hopes that makes sense :) |
This looks great allready good job. But is there any way to scale the iframe/screen so it would fit on the screen? |
It should already be fullscreen, isn't it? Or is yours too big to fit on the screen? |
Yes mine is too big to fit on the screen. |
Hmm that certainly is weird. What is your camera resolution compared to your screen resolution? |
I use a Hyperpixel 4 with resolution 800x480 and a stream with 1280x960 and have to use the scrollbars. Unscaled is good to set the camera focus but scaled down would be better for checking the orientation. |
Hi, I would like to test this on the Adafruit 3.5" TFT. Where is the Json file is located, I could not find it? I am a noob here so step by step will be help ful and for others until this is part of the revised build. never mind I found the icon video "fas fa-video" Looking at the code i persume i need to do the following, please let me know if this is correct or not?....Thanks in advance "customActions": |
what am i doing wrong here { I'm trying to understand what i did wrong here? |
The command won't work like that. needs to be:
I wouldn't chmod/chown the file, that most certainly messed OctoDash up. The plugin loading the config is setting the correct permissions while creating, once you tinker with them it won't read the config properly and you'll see the setup assistant again. |
Thank you for the correct code, i missed out the [!Web], the icon should just be "video" for it to work How would I add the above? when I try and use nano to alter the file it says I don't have permissions when I try and save it won't close, so i have to disgard the chenges :-( when I open the config.json file it says in read text this file is unwritable |
You can change any of the custom commands from under the UI But I have a question as well: |
hi iMike78, |
I'm printing at the moment, so I can't make a screenshot as I can't open the settings :) |
Tick out the "Return to home" ;) |
I saw that and changed it back after i posted to you, good observation!! |
Or - which could be the real reason - your video feed URL is no good |
I thought of that and changed it to the other thing is to try te IPv6 address shown in the ssh terminal |
An oberservation on the config.json file when viewing in Terminal. The API key is not correct, when i updated to the latest version 2.1.0 and bootup, you are shown the start up screen and run through some configuration steps, I chose to have the API key approved from my laptop browser and did not manually type this into the Raspberrypi. This picked the application API key and not the current Global API key shown in Octoprint, so im thinking this is a possible reason, however I can control the printer still if i change the API in the config file to either one. this time when i reboot i don't get the "Hey There" welcome screen? |
Ok maybe to clear a few things up:
|
Hi, you beat me to the punch UnchartedBull, I was working on this and I tried the setting in the OctoPrint Webcam settings and it worked great, after that i was about to write this up and saw your post . Thanks for responding. I hope others find it useful. |
@Yordan1976, @RedSquirrell did you somehow resolve the issue of scaling the iframe to fit on the screen? My stream is also bigger res than the LCD. |
It would be useful if this could somehow support selection of a camera from multiple cameras. (https://github.com/mikedmor/OctoPrint_MultiCam) It's nice to have a nozzle camera for upclose inspection and a wider view camera for a timelapse. A nozzle camera is useful on the pi screen to check that the first layer is going down nicely but you might as well preview the wide camera view as well to make sure nothing is out of whack at the start of the print. |
would you like to have them running in parallel? That probably won't be included, but there will be the option to have 2 buttons on the custom actions where each opens a separate camera view. |
Hi all, I wonder if there is a way to rescale the stream directly from the command line. |
My integrated webcam page in the OctoDash Companion plugin can resolve the scaling issue, and the goal is to add multi-cam support to allow you to switch between them with a drop-down list. To use, after installing the plugin use the Custom Actions to add |
Thank you @jneilliii. Using the [!webcam] option does solve indeed the scaling issue. I can see the entire stream from the web cam and I do not need to scroll anymore. Now I wonder how can I access to the second webcam ? This features is not yet available, do I understand correctly ? The command [!WEB]http://localhost/plugin/octodashcompanion/webcam links to the default camera, in my case the USB camera. |
It's a feature that's not yet available. Was going to work on it this weekend. |
I've got multicam support available in my current dev branch if you want to try it out and report back. You can install by copying/pasting the URL below in plugin manager > get more > ...from URL and clicking Install.
|
Hi, I will try to check it out then, I'll keep you posted. |
Just released the multicam support version 0.0.5. |
Ok got it and tested it So far, using the companion webcam option I can access to my main camera (raspberry pi camera). Still I get the video stream that is too big for my screen (configured resolution for the camera) so I still need to scroll left and right up and down to see the center of my webcam. But it is working! I need to test the 2nd camera but cannot do it right now. |
That's just the direct stream url, should be |
scrolling is unexpected for sure. do you have the muticam plugin installed? if so you should see links in the top of the page to switch between them, try adding |
Yes I do have multicam up and running. Sorry but I am not sure to understand how i should implement the " ?webcam=1 " command .[!WEB]http://192.168.1.107:8080/plugin/octodashcompanion/webcam?webcam=1 ? Anyway now with my setup i cannot access to the stream anymore. I am stuck on a "loading website .. " page and on the top left corner a barely readable text saying : "400 : Not found ! No file extension found" |
Yeah, wrong address...those 8080 and 8081 are needed for the stream, but not for the plugin. use this instead...unless you are using a separate pi from OctoPrint for your cameras.
|
And the magic happens ! Thank you very much for your support. Really good work! |
glad we finally got it worked out for you. |
One remark, I noticed that when octodash is connected to the printer, the webcam is not accessible trough the custom action. |
That doesn't seem to be the case here for me. The webcam works no matter what the state. Do you mean while printing you can't get to the custom actions? |
Well if Octoprint/Octodash are on but not connected to the printer (sleep mode) I can access to the web cam. It does not matter if I am printing or not. |
That is odd, I just double-checked and cannot reproduce this issue. |
Is your feature request related to a problem? Please describe.
It's not a problem, just a feature request...
Describe the solution you'd like
That would be a great function if we can check the cam picture or the live video through OctoDash. Some of us keep the printer under tent, or in a cabinet, and sometimes needs to be checked what's happening inside.
Additional context
My idea is for example the live video option with a "subtitle" which is contains the status of the printer (temps and job percentage)
The text was updated successfully, but these errors were encountered: