A UI for navigating between cameras, toggling options, etc #479
Replies: 6 comments 11 replies
-
Posted this up without much context. In short, I'm actually looking for a project to keep me busy for this month, but wouldn't want to start without ensuring there's a direct want/need and making a plan about technology/framework used, etc. |
Beta Was this translation helpful? Give feedback.
-
It would be nice to have the landing page show a list of cameras and allow you to pick a camera and choose the overlay options. Maybe even show some stats for the camera. I do want to make sure it is compatible with the Ingress functionality in homeassistant so it can be the UI presented in the panel. |
Beta Was this translation helpful? Give feedback.
-
Also something builtin to help with generating masks would be nice. |
Beta Was this translation helpful? Give feedback.
-
Some people have asked for the ability to change settings via the UI link. I'm not sure what the feasibility of that is, as I haven't read any of the code yet – my guess is that we'd need to completely change the config, so at this time, maybe that's at least a full major release away |
Beta Was this translation helpful? Give feedback.
-
@blakeblackshear Wanted to get something written out and have you and anyone else around comment and make a decision together. I don't think this has to be super complicated and like all software, anything can be reverted. However, I do want to make sure we're making a choice together and don't end up wasting a bunch of time up front if it doesn't even seem like a maintainable approach. ProposalCreate a Single Page App (SPA) using Preact, available at For consideration: move all current HTTP endpoints under a path namespace, like The SPA can use an open source CSS framework like tailwindcss, which is well documented, to build a responsible, usable, and good lookingUI. For compiling the JavaScript, we can use a tool like Snowpack to enable fast and efficient compilation. A For building the docker image, we will have the AlternativesHome Assistant uses Web Components (mostly LitElement). While these are a web standard and readily usable without any extra frameworks, they tend to have a steeper learning and building curve. Compared to preact, react, vue, and others – you need to write your own state management, context sharing, and much more. React is a much heavier JavaScript byte cost with a very similar (nearly identical) API to Preact. It would be possible to migrate and switch to React from Preact, and vice-versa, with varying amounts of work, but not too much early on. Vue is interesting and I'll admit that I don't have a lot of experience with it. What I do know, though, is that it's very AngularJS like. It uses attribute bindings for logic operators instead of pure JavaScript. This means that contributors will need to know more about Vue than JavaScript to make changes. Open questions
|
Beta Was this translation helpful? Give feedback.
-
Got a start today. It's really not much, but the basic foundation is in place. I'd like to get it a bit more fleshed out before posting a PR to collaborate on next week. |
Beta Was this translation helpful? Give feedback.
-
There are increasingly more options in the HTTP endpoints and they're tough to remember.
Has any thought been put into making a UI for this? What are the needs and wants?
Beta Was this translation helpful? Give feedback.
All reactions