klattimer / LGWebOSRemote

Command line webOS remote for LGTVs
MIT License
523 stars 101 forks source link

Add default options #135

Closed xf- closed 1 year ago

xf- commented 1 year ago

Would love to see a default option to avoid -n tv, --name TV and --ssl.

Ideas If I auth with SSL it will be set on every command to that device.

Can be changed via config and a default option

# somthing like this
lgtv config -n tv set ssl on
lgtv config -n tv set ssl off
lgtv config set default tv # will be used in case `-n` is not supplied

Most people properly have a single TV or at least a main TV. If you want to avoid options, a standard name like default could be also be a fallback. I prefer a setting.

klattimer commented 1 year ago

@Tenzer I think this is done?

Tenzer commented 1 year ago

The --ssl flag is still to be handled. I think it makes sense to store it in config.json on a per-device basis.

The -n/--name part can however now be skipped by using lgtv setDefault <name>.

klattimer commented 1 year ago

I think that we need to have a try SSL first, and fail over to plain. The security conscious would thank us for it.