Closed peetCreative closed 2 years ago
This seems very reasonable as there is no reason to request sudo if you do not want to use WiFi.
I'll look into adding this, it should hopefully be pretty trivial.
Hi I just merged a change that will:
sudo_password
argument to the GoPro
classenable_wifi
is falseSo you have lots of options now. If you don't need wifi, you can set enable_wifi
to false and you will never be prompted for the password. Or you can send the password via stdin, for example:
cat mypasswordfile.txt | gopro-photo --password
Is your feature request related to a problem or use case? Please describe. I want to write a linux service running in background using the OpenGoPro API using Python. But my programm is asking me for sudo rights on the command line. Disabling Wifi with
GoPro(enable_wifi=False)
won't work, because WifiModule is instantiated in GoPro anyways.Describe the solution you'd like
WifiController
. Then I'm not asked for any password anymore.Describe alternatives you've considered Passing the password into the file starting the service.. That means in some file in
/etc/...
I have to state the plaintext password.