Skip to content

Commit

Permalink
Update docs for fetching token using container (#783)
Browse files Browse the repository at this point in the history
- Moved the image to alpine to reduce image size 
- Change CMD to only require a single command

Thanks to @owenvoke
  • Loading branch information
Brephlas authored Nov 5, 2023
1 parent 1cbb444 commit 8e12285
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -221,18 +221,10 @@ See more discussion [here](https://github.com/leikoilja/ha-google-home/issues/12

Due to authentication issues with google credentials alone it may be required to get the master token separately and provide it during the setup process. This can be done using [this script](https://gist.github.com/rithvikvibhu/952f83ea656c6782fbd0f1645059055d) or [glocaltokens](https://github.com/leikoilja/glocaltokens#quickstart) package.

Since there are several issues getting the token reliable on different environments, you can use a docker container which was created solely for this use: <https://hub.docker.com/r/breph/ha-google-home_get-token>. If you choose to use this container, follow the following instructions:
Since there are several issues getting the token reliable on different environments, you can use a docker container which was created solely for this use: <https://hub.docker.com/r/breph/ha-google-home_get-token>. If you choose to use this container, run the following command:

```
$ docker pull breph/ha-google-home_get-token:latest
$ docker run -it -d breph/ha-google-home_get-token
# the previous command will return a container id
# use this id inside the next command which opens a shell inside the container:
$ docker exec -it <id> bash
# execute the pre-installed script:
root@<id>:/# python3 get_tokens.py
$ docker run --rm -it breph/ha-google-home_get-token
```

### HACS Installation
Expand Down

0 comments on commit 8e12285

Please sign in to comment.