Code Monkey home page Code Monkey logo

Comments (8)

dangreco avatar dangreco commented on September 6, 2024 5

I like the idea for this.
I'm thinking a good functionality would be to be able to switch between animation/camera view with a click/tap on the animation, providing the user with a default-camera or default-animation option in the config.
Another possibility would be a button at the bottom to pop open the video feed in a modal.
Thoughts?

from threedy.

dangreco avatar dangreco commented on September 6, 2024 2

I think the default would be camera if you specify a camera.
Also, since the view is constrained to ~50% of the cards width, the feed may be cropped. A solution to this would be a click opens up a modal with the proper aspect ratio. Instead of clicking to switch between views, I could implement a swiping/scrolling feature between the two.

from threedy.

dangreco avatar dangreco commented on September 6, 2024 2

I'm ordering a webcam for my OctoPrint server so I can rapidly push out this feature as soon as possible while keeping quality a priority. From what I gather, video feeds are accessible by either a stream or MJPEG uri -- these seem relatively easy to implement.

As far as how we would switch between views, I feel that my previous idea of swiping is not the way to go --- this would hinder workflow for mouse users. I'm going to instead refactor some of my code to add a camera button to the "header" of the card -- in the same space as the power and light icons. In this case, the previous idea of a pop-up modal will be sufficient.

Thoughts?

from threedy.

KTheMan avatar KTheMan commented on September 6, 2024 1

@dangreco I actually have my octoprint webcam set up as a camera in HA. I wonder if it would make sense to just have the user just add a camera to their config and be able to pick it from a dropdown during card configuration.

from threedy.

sebasptsch avatar sebasptsch commented on September 6, 2024

Sounds good. Would you set either the camera or the animation as a default then?

from threedy.

Codename-11 avatar Codename-11 commented on September 6, 2024

I agree with @dangreco regarding the behavior. I think the animation itself is a staple feature of the card, but having a live view accessible via the card would be quite nice as well!

from threedy.

MechEng70 avatar MechEng70 commented on September 6, 2024

@dangreco I actually have my octoprint webcam set up as a camera in HA. I wonder if it would make sense to just have the user just add a camera to their config and be able to pick it from a dropdown during card configuration.

completely agree with this approach.

from threedy.

dangreco avatar dangreco commented on September 6, 2024

This has officially been implemented in the latest release. Thanks so much for your input!!

from threedy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.