Re: Did anybody ever use Gphoto2 with Whiptail or Dialog?
Marcus Meissner <[email protected]> Sun, 8 Nov 2020 09:51:59 +0100
| Newsgroups | gmane.comp.multimedia.gphoto.user |
|---|---|
| Message-ID | <[email protected]> |
On Sat, Nov 07, 2020 at 11:48:49AM -0500, Alan Corey wrote: > Oh, I meant to include this link: > https://en.m.wikibooks.org/wiki/Bash_Shell_Scripting/Whiptail > > On 11/7/20, Alan Corey <[email protected]> wrote: > > Dialog has been around for years, Whiptail is a Debian (I think) > > adaptation of it. It's meant for adding GUI-like user interfaces to > > Bash scripts. They work with or without Xorg, you can make menus and > > checkboxes, that sort of stuff. It's usable over an ssh connection > > since it's really curses, there's something similar in DOS I remember > > from my Turbo Pascal days in the 1980s. > > > > On a Raspberry Pi, raspi-config is written using it, it's just a Bash > > script.. > > > > Because Gphoto2 has the ability to list choices for options, if you > > could store those into arrays in Bash and spew them out as choices on > > the screen, you could make it read cameras and possible options on > > startup. A couple years ago I was trying to imagine a program for > > controlling cameras that would work well on a Raspberry Pi with a > > touchscreen (and batteries). Whiptail should be usable on a $10 > > Raspberry Pi ZeroWT which has wifi and bluetooth. There are some > > 640x480 touchscreens for them around. Well, gphoto2 has CDK support if you compile it in, then you can use gphoto2 --config for a curses configuration frontend. But with --list-all-config you can also build your own dialog tree if needed. Ciao, Marcus