Open geerlingguy opened 3 weeks ago
Ah... just found this on the main screen:
When I click save, it overwrites camera-config.json
with the new values:
pi@pistream:~/picamera2-WebUI-Lite $ git status
On branch main
Your branch is up to date with 'origin/main'.
Changes not staged for commit:
(use "git add/rm <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
modified: camera-config.json
It may be good to have a set of repository defaults ('camera-defaults.json', maybe?), and the application could merge in any defaults from a camera-config.json
file if it exists—and add camera-config.json
to .gitignore
so a user could save their own config without overriding the git tracked file.
This is considered for the next release
Is your feature request related to a problem? Please describe.
I use this UI for checking up on 3D prints when I'm away, but I shut down the Pi when I'm not using the 3D Printer. I would like to make it so when I boot up the Pi and launch the app, it uses my default settings for things like manual focus, auto exposure, and resolution.
Right now using a Camera Module v3 it always defaults to 4K resolution, which is choppy, and autofocus, which gets a bit confused depending on how my print is going.
Describe the solution you'd like
I'd love to be able to set a few things in a YAML or JSON config file like
defaults.json
(which is not tracked in this repo, so I could write my own file within... or maybe a file path I could pass in when runningpython app.py
?).Describe alternatives you've considered
Manually clicking through settings every time I restart my Pi.
Additional context
N/A