Skip to content

Commit 8a9abd3

Browse files
KapJIBrephlas
andauthored
Add docs for fetching token using container (#780)
Add instructions for docker container for token retrieval Co-authored-by: Brephlas <45274910+Brephlas@users.noreply.github.com>
1 parent bd97db4 commit 8a9abd3

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,20 @@ See more discussion [here](https://github.com/leikoilja/ha-google-home/issues/12
221221

222222
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.
223223

224+
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:
225+
226+
```
227+
$ docker pull breph/ha-google-home_get-token:latest
228+
$ docker run -it -d breph/ha-google-home_get-token
229+
230+
# the previous command will return a container id
231+
# use this id inside the next command which opens a shell inside the container:
232+
$ docker exec -it <id> bash
233+
234+
# execute the pre-installed script:
235+
root@<id>:/# python3 get_tokens.py
236+
```
237+
224238
### HACS Installation
225239

226240
You can find it in the default HACS repo. Just search `Google Home`.

0 commit comments

Comments
 (0)