bokub / linky-cli

⛔️ DEPRECATED - A CLI tool to retrieve your Linky power consumption
GNU General Public License v3.0
19 stars 1 forks source link

Credentials configuration file #2

Closed franky47 closed 5 years ago

franky47 commented 5 years ago

At the moment credentials have to be supplied for every call of the program, either interactively (repetition) or through command-line arguments (shows up in bash history).

A nice way to automate queries would be either a configuration file or environment variables for the credentials.

bokub commented 5 years ago

Why don't you use your env variables in the CLI args? No repetition, and no bash history!

linky -u $LINKY_USER -p $LINKY_PSWD
franky47 commented 5 years ago

Fair point, thanks !