Skip to content

Commit

Permalink
Add TZ env variable in documentation (#55)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bigsmooth68 authored Jul 23, 2024
1 parent 4628151 commit 0c374c5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -177,10 +177,11 @@ Dans les deux cas, remplacez :
- `<options-folder>` par le **dossier** contenant le fichier `options.json`
- `<jeton>` par le jeton d'accès longue durée que vous avez créé juste avant **dans Home Assistant**
- `<ha-ip>` par l'**IP** de votre instance Home assistant (avec le port si nécessaire)
- `<timezone>` par votre timezone (ex. Europe/Paris), si votre système est configuré différement

```sh
# docker run
docker run -e SUPERVISOR_TOKEN='<jeton>' -e WS_URL='ws://<ha-ip>/api/websocket' -v <options-folder>:/data ha-linky
docker run -e SUPERVISOR_TOKEN='<jeton>' -e WS_URL='ws://<ha-ip>/api/websocket' -e TZ='<timezone>' -v <options-folder>:/data ha-linky
```

```yml
Expand All @@ -191,6 +192,7 @@ services:
environment:
- SUPERVISOR_TOKEN=<jeton>
- WS_URL=ws://<ha-ip>/api/websocket
- TZ=<timezone>
volumes:
- <options-folder>:/data
```
Expand Down

0 comments on commit 0c374c5

Please sign in to comment.