Skip to content

armgit / dashy

Public Imported from GitHub
0

πŸš€ A self-hostable personal dashboard built for you. Includes status-checking, widgets, themes, icon packs, a UI editor and tons more!

include glances timezone fix

Tobias1169ccf7faef
diff --git a/docs/widgets.md b/docs/widgets.md
index 6e75f3b4..69bd8f7c 100644
--- a/docs/widgets.md
+++ b/docs/widgets.md
@@ -2289,6 +2289,24 @@ Glances is a cross-platform monitoring tool developed by [@nicolargo](https://gi
If you don't already have it installed, either follow the [Installation Guide](https://github.com/nicolargo/glances/blob/master/README.rst) for your system, or setup [with Docker](https://glances.readthedocs.io/en/latest/docker.html), or use the one-line install script: `curl -L https://bit.ly/glances | /bin/bash`.
+If you are using Docker to run glances make sure to add the enviroment variable `-e TZ = {YourTimeZone}`. You can get a list of valid timezones by running `timedatectl list-timezones` on any linux system. This is needed so the graphs show the currect time.
+
+Here an example for Docker
+```
+ docker run -d \
+ --name glances \
+ --restart unless-stopped \
+ -v /var/run/docker.sock:/var/run/docker.sock:ro \
+ -p 61208:61208 \
+ --pid host \
+ --privileged \
+ -e GLANCES_OPT=-w \
+ -e PUID=1000 \
+ -e PGID=1000 \
+ -e TZ=Europe/Zurich \
+ nicolargo/glances:latest
+```
+
Glances can be launched with the `glances` command. You'll need to run it in web server mode, using the `-w` option for the API to be reachable. If you don't plan on using the Web UI, then you can disable it using `--disable-webui`. See the [command reference docs](https://glances.readthedocs.io/en/latest/cmds.html) for more info.
If Glaces is running on a Windows system it is recommanded to add the following arguments ```--disable-plugin all --enable-plugin cpu,mem,diskio,ip,network,containers,quicklook,load,fs,alert -w``` This is due to Glances not being that stable on windows, so disabling all plugins that aren't used by Dashy widgets can save on ressources.