1
0
mirror of https://github.com/pcvolkmer/checkbar.git synced 2025-07-02 14:22:54 +00:00

Provide custom time format config option

This commit is contained in:
2023-10-19 10:47:53 +02:00
parent 01bc8e7ade
commit 4eb609c9b5
4 changed files with 17 additions and 4 deletions

View File

@ -12,6 +12,9 @@ You should create a configuration file `.checkbar.toml` in your home directory,
# Update interval in seconds. Default value if not set is 60 sec.
interval = 60
# Time format (optional), defaults to "%R" (= "%H:%M)"
time_format = "%H:%M:%S" # = "%T"
[[checks]]
name = "Host 1"
url = "https://host1.example.com"
@ -49,6 +52,9 @@ interval = 60
interval = "2m 30s"
----
The value for `time_format` is used to set the time format to be shown. It defaults to `%R`.
For available options, see: https://docs.rs/chrono/latest/chrono/format/strftime/index.html
Each host or application to be checked consists of `name` and `url`.
You can optionally specify `check_type`: