Comments (8)
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.
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.
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.
@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.
Sounds good. Would you set either the camera or the animation as a default then?
from threedy.
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.
@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.
This has officially been implemented in the latest release. Thanks so much for your input!!
from threedy.
Related Issues (20)
- Some entities have been removed in Home Assistant 2021.11 HOT 18
- Can no longer find time_elapsed entity HOT 1
- Show card when not printing HOT 1
- when clicked "ETA" card in lovelace shows "Cannot read properties of undefined (reading 'state')" HOT 7
- Not able to configure...e is undefined HOT 7
- display permanently HOT 3
- Request for SLA printer HOT 1
- add option to flip camera horizontally and vertically HOT 2
- add option via HACS not working HOT 11
- Add support for Prusalink HOT 1
- Plugin doesn't work HOT 1
- New version available! HOT 3
- Always Idle when printing from SD
- Ability to map custom sensors to card values
- can't find correct sensornames due to different naming scheme HOT 1
- Can't install
- 2.0 as a seperate repo HOT 6
- Ultimaker S5 compatibility
- Request for Bambu Labs support
- I can only get Status to work
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from threedy.