m/cup
1
0
mirror of https://github.com/sergi0g/cup.git synced 2025-11-17 17:43:37 -05:00

2 Commits

Author SHA1 Message Date
Sergio
b0d0a02182 docs: update example homepage widget to conform to latest config spec
Co-authored-by: Valdr687 <106614142+Valdr687@users.noreply.github.com>
2025-08-29 17:42:56 +03:00
Sergio
c351a38642 docs: update homepage widget example
Remove usage of non-default port 9000 and change server ip placeholder to hostname instead
2025-08-25 19:11:59 +03:00

View File

@@ -51,29 +51,24 @@ Credit: [@agrmohit](https://github.com/agrmohit)
```yaml
widget:
type: customapi
url: http://<SERVER_IP>:9000/api/v3/json
url: http://<SERVER_HOSTNAME>/api/v3/json
refreshInterval: 10000
method: GET
mappings:
- field:
metrics: monitored_images
- field: metrics.monitored_images
label: Monitored images
format: number
- field:
metrics: up_to_date
- field: metrics.up_to_date
label: Up to date
format: number
- field:
metrics: updates_available
- field: metrics.updates_available
label: Available updates
format: number
- field:
metrics: unknown
- field: metrics.unknown
label: Unknown
format: number
```
Preview:
<Image src={widget2} />
Credit: [@remussamoila](https://github.com/remussamoila)
Credit: [@remussamoila](https://github.com/remussamoila) and [@Valdr687](https://github.com/Valdr687)