Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
shamoon committed Mar 2, 2025
1 parent ce84b1b commit 1f65de8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions docs/widgets/services/apcups.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ title: APC UPS Monitoring
description: Lightweight monitoring widget for APC UPSs using apcupsd daemon
---

This widget extracts UPS information from an apcupsd daemon.
This widget extracts UPS information from an apcupsd daemon.
Only works for [APC/Schneider](https://www.se.com/us/en/product-range/61915-smartups/#products) UPS products.

[!NOTE]
By default apcupsd daemon is bound to 127.0.0.1. Edit ```/etc/apcupsd.conf``` and change ```NISIP``` to an IP accessible from your homepage docker (usually your internal LAN interface).
By default apcupsd daemon is bound to 127.0.0.1. Edit `/etc/apcupsd.conf` and change `NISIP` to an IP accessible from your homepage docker (usually your internal LAN interface).

```yaml
widget:
type: apcups
url: tcp://your.acpupsd.host:3551
url: tcp://your.acpupsd.host:3551
```
8 changes: 4 additions & 4 deletions src/widgets/apcups/component.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ export default function Component({ service }) {

return (
<Container service={service}>
<Block label="apcups.status" value={ data.status }/>
<Block label="apcups.load" value={ data.load } />
<Block label="apcups.bcharge" value={ data.bcharge } />
<Block label="apcups.timeleft" value={ data.timeleft } />
<Block label="apcups.status" value={data.status} />
<Block label="apcups.load" value={data.load} />
<Block label="apcups.bcharge" value={data.bcharge} />
<Block label="apcups.timeleft" value={data.timeleft} />
</Container>
);
}

0 comments on commit 1f65de8

Please sign in to comment.