dynasticorpheus / gigasetelements-cli

Gigaset Elements - python based command line interface
GNU General Public License v2.0
35 stars 11 forks source link

Script does not find configuration in ~ #24

Closed fbartels closed 6 years ago

fbartels commented 6 years ago

Hi,

I recently found your script and wanted to automate the switching of profiles in the elements base station with it. unfortunately I am running into two problems. I am running it on Ubuntu 16.04 and have installed it via pip install gigasetelements-cli.

The readme specifies that the configuration file can be stored as ~/.gigasetelements-cli, but this location does not seem to get picked up:

$ gigasetelements-cli -z

Gigaset Elements - Command-line Interface

[-] Configuration     | ERROR    | Username and/or password missing

But I can use the file in ~ if I explicitly specify it:

$ gigasetelements-cli -c .gigasetelements-cli --events 5

Gigaset Elements - Command-line Interface

[-] Configuration     | LOADED   | .gigasetelements-cli

If I move the config file over to /etc it works as expected:

$ gigasetelements-cli

Gigaset Elements - Command-line Interface

[-] Configuration     | LOADED   | /etc/gigasetelements-cli.conf
dynasticorpheus commented 6 years ago

Thanks for letting me know and I have (re)added this location through commit 2c6d2d5