Coder Social home page Coder Social logo

Comments (8)

roamingthings avatar roamingthings commented on July 19, 2024

After looking at all available configuration properties I'm not sure if it makes sense to allow the user to customize all available settings. I can understand that it may be tempting but there's a lot that can be done wrong. And at the end spyglass has a certain use-case in mind.

So I would argue to take a look at all available controls and only support controls that make sense to us and/or add more controls later when they are requested by actual users.

from spyglass.

mryel00 avatar mryel00 commented on July 19, 2024

I would still offer all the controls through something like I mentioned in #14, as it gives more advanced users a better control over their camera.
It would make sense to implement easy to use cli arguments for the most used once but artificially limit them until someone requests them doesn't make sense in my opinion.

from spyglass.

roamingthings avatar roamingthings commented on July 19, 2024

I agree. It's just that not all controls make sense. I will post a list later. Then we can see which make sense and which don't.

from spyglass.

mryel00 avatar mryel00 commented on July 19, 2024

@roamingthings You got the list or do we just allow changing all controls? Second option would be easier to implement but could cause some problems, as changing for example exposuretime with http results in a black screen all the time.

from spyglass.

roamingthings avatar roamingthings commented on July 19, 2024

I think that we should limit the options to a meaningful set. Adding options later is easier than taking them away.

Maybe let's start with a few controls first and see how it goes.

from spyglass.

mryel00 avatar mryel00 commented on July 19, 2024

@roamingthings I've added now a HTML page for all controls and what controls get parsed and processed. The list of all controls can be accessed with http://<ip.of.your.pi>:<port>/options and the settings can be live adjusted with http://<ip.of.your.pi>:<port>/options?brightness=0.3&afmode=2. Those adjusted settings don't get saved.
On the pictures you can see the overview and an example of the control parsing. Only controls really available get processed. The controls are case insensitive. Currently all controls are allowed, adding a list of limited controls isn't that hard, but I would need a list for that first. But I still don't like the limit, even if some parameters doesn't make sense to have. If there are newer cams with god knows what new controls, the list would need an update. So a list excluding controls instead of a list defining allowed controls maybe makes more sense? But even such a list would need maintenance in future.

I would appreciate some feedback and suggestions for the HTML page. The table is spread over the whole page.
image
image

from spyglass.

roamingthings avatar roamingthings commented on July 19, 2024

This is a great feature and I like the information that is displayed on the page.
I think that only a bit of CSS is required.

from spyglass.

mryel00 avatar mryel00 commented on July 19, 2024

Merged with #14

from spyglass.

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.