PeaNUT homepage widget 配置
图1 是自定义 API
图2 是直接用 homepage widget
http://10.0.0.2:55518 是你搭建的 PeaNUT
ups 是 你 ups 的名称
PeaNUT:
description: PVE
icon: https://raw.githubusercontent.com/Brandawg93/PeaNUT/main/src/app/icon.svg
href: http://10.0.0.2:55518
server: my-docker
container: peanut
showStats: true
# widget:
# type: peanut
# url: http://10.0.0.2:55518
# key: ups
widget:
type: customapi
url: http://10.0.0.2:55518/api/v1/devices/ups
mappings:
- field: battery.charge
label: Battery Charge
format: percent
- field: battery.runtime
label: Battery Runtime
format: text
- field: ups.load
label: UPS Load
format: percent
- field: ups.status
label: UPS Status
format: text
remap:
- value: OL
to: Online
- value: OB
to: On Battery
- value: LB
to: Low Battery
- any: true
to: Unknown
🥰 PeaNUT: UPS 面板
🥰 gethomepage/homepage
🤭 homepage 合集 🧐 频道资源合集 😄 恰饭推荐 💬 群组
🥰 #PeaNUT #UPS #NUT #面板 #homepage #widget
图1 是自定义 API
图2 是直接用 homepage widget
http://10.0.0.2:55518 是你搭建的 PeaNUT
ups 是 你 ups 的名称
PeaNUT:
description: PVE
icon: https://raw.githubusercontent.com/Brandawg93/PeaNUT/main/src/app/icon.svg
href: http://10.0.0.2:55518
server: my-docker
container: peanut
showStats: true
# widget:
# type: peanut
# url: http://10.0.0.2:55518
# key: ups
widget:
type: customapi
url: http://10.0.0.2:55518/api/v1/devices/ups
mappings:
- field: battery.charge
label: Battery Charge
format: percent
- field: battery.runtime
label: Battery Runtime
format: text
- field: ups.load
label: UPS Load
format: percent
- field: ups.status
label: UPS Status
format: text
remap:
- value: OL
to: Online
- value: OB
to: On Battery
- value: LB
to: Low Battery
- any: true
to: Unknown
🥰 PeaNUT: UPS 面板
🥰 gethomepage/homepage
🤭 homepage 合集 🧐 频道资源合集 😄 恰饭推荐 💬 群组
🥰 #PeaNUT #UPS #NUT #面板 #homepage #widget