Repository navigation
v0.1.1
What's Changed
The code wasn't:
- Reading the base URL from the config file
- Detecting whether we're using HTTP/HTTPS
- Converting it into a usable ws:// URL for the dialer.
💪🏻 Improve user config input
Rather than using fmt.Scanln we can use a lightweight prompt library to hide things like the API key.
I also noticed that the code doesn't validate the URL that the user inputs so if they write some gibberish, it might not even work as a URL.
🔧 Added an insecure flag (-i | --insecure) to the app so that it can be run against Home Assistant instances which use a self-signed certificate