mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-07 05:28:46 +00:00
Enhancement: statusStyle improvements (#2119)
This commit is contained in:
parent
861ab32ca3
commit
571f627b3b
8 changed files with 100 additions and 80 deletions
|
@ -123,14 +123,7 @@ Services may have an optional `ping` property that allows you to monitor the ava
|
|||
|
||||
<img width="1038" alt="Ping" src="https://github.com/benphelps/homepage/assets/88257202/7bc13bd3-0d0b-44e3-888c-a20e069a3233">
|
||||
|
||||
You can also apply different styles to the ping indicator by using the `statusStyle` property. The default is no value, and displays the response time in ms, but you can also use `dot` or `basic`. `dot` shows a green dot for a successful ping, and `basic` shows either ONLINE or OFFLINE to match the status style of Docker containers. For example:
|
||||
|
||||
```yaml
|
||||
- Sonarr:
|
||||
...
|
||||
ping: http://sonarr.host/
|
||||
statusStyle: dot
|
||||
```
|
||||
You can also apply different styles to the ping indicator by using the `statusStyle` property, see [settings](settings.md#status-style).
|
||||
|
||||
## Docker Integration
|
||||
|
||||
|
|
|
@ -380,6 +380,30 @@ or per-service (`services.yaml`) with:
|
|||
|
||||
If you have both set the per-service settings take precedence.
|
||||
|
||||
## Status Style
|
||||
|
||||
You can choose from the following styles for docker or k8s status and ping: `dot` or `basic`
|
||||
|
||||
- The default is no value, and displays the ping response time in ms and the docker / k8s container status
|
||||
- `dot` shows a green dot for a successful ping or healthy status.
|
||||
- `basic` shows either UP or DOWN for ping
|
||||
|
||||
For example:
|
||||
|
||||
```yaml
|
||||
statusStyle: 'dot'
|
||||
```
|
||||
|
||||
or per-service (`services.yaml`) with:
|
||||
|
||||
```yaml
|
||||
- Example Service:
|
||||
...
|
||||
statusStyle: 'dot'
|
||||
```
|
||||
|
||||
If you have both set, the per-service settings take precedence.
|
||||
|
||||
## Hide Widget Error Messages
|
||||
|
||||
Hide the visible API error messages either globally in `settings.yaml`:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue