Compare commits

..

2 commits

Author SHA1 Message Date
Benjamin Renard
6b0cdef74f
Switch from Woodpecker CI to Forgejo Actions
All checks were successful
Run tests / test-precommit (push) Successful in 1m29s
2024-03-13 18:41:38 +01:00
Benjamin Renard
29970c5f2e
Add -t/--timeout parameter and introduce some new pre-commit hooks 2024-03-13 18:36:27 +01:00

View file

@ -19,22 +19,18 @@ service nagios-nrpe-server reload
## Usage ## Usage
``` ```
usage: check_esphome_devices [-h] [-d] [-H HOST] [-r RETRY_COUNT] [-D RETRY_DELAY] usage: check_esphome_devices [-h] [-d] [-H HOST] [-r RETRY_COUNT] [-D RETRY_DELAY] [-x EXCLUDE]
[-t TIMEOUT] [-x EXCLUDE]
options: optional arguments:
-h, --help show this help message and exit -h, --help show this help message and exit
-d, --debug -d, --debug
-H HOST, --host HOST ESPHome dashboard URL (default: http://127.0.0.1:6052) -H HOST, --host HOST ESPHome dashboard URL (default: http://127.0.0.1:6052)
-r RETRY_COUNT, --retry RETRY_COUNT -r RETRY_COUNT, --retry RETRY_COUNT
Number of retry to retrieve device status (default: 4) Number of retry to retrieve device status (default: 4)
-D RETRY_DELAY, --delay RETRY_DELAY -D RETRY_DELAY, --delay RETRY_DELAY
Delay in second between two retry to retrieve device status Delay in second between two retry to retrieve device status (default: 1s)
(default: 1s)
-t TIMEOUT, --timeout TIMEOUT
Timeout in second on API requests (default: 10s)
-x EXCLUDE, --exclude EXCLUDE -x EXCLUDE, --exclude EXCLUDE
Regex exclude pattern(s) Regex exclude pattern(
``` ```
## Copyright ## Copyright