monkeymademe / picamera2-WebUI

This is a VERY basic WebUI for the Picamera2 Library for the Raspberry Pi
MIT License
83 stars 11 forks source link

Default values cause black feed #16

Closed monkeymademe closed 4 months ago

monkeymademe commented 4 months ago

So in the settings we have values set for every key: min, max and default

Sometime default is set to none. Not really sure why. Currently when loading default values if the code finds none it will default the min value.

In some cases this is fine but in the case of ExposureTime it is set to 13 which basically turns the feed black. Either I simply change the default to be the max value not the min which might adversely effect other default 'none' settings

Or change the code to select max or min depending on the setting

monkeymademe commented 4 months ago

For now its changing the value to max but thats not going to cut it for every setting. I need to rework how defaults are created. Maybe adjust the wording...

monkeymademe commented 4 months ago

Yeah it looks ok for now...