Skip to content

Commit

Permalink
📚Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
sinclairpaul committed Feb 20, 2020
1 parent 42bd138 commit 8c0de1a
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,8 @@ only exposed to your internal network. USE AT YOUR OWN RISK!_

## Event Notifications

Whenever your UPS changes state, an event named `nut.ups_event` will be fired. It's payload looks like this:
Whenever your UPS changes state, an event named `nut.ups_event` will be fired.
It's payload looks like this:

| Key | Value |
|---------------|----------------------------------------------|
Expand All @@ -281,8 +282,8 @@ Whenever your UPS changes state, an event named `nut.ups_event` will be fired. I
| `notify_msg` | The NUT default message for the notification |

`notify_type` signifies what kind of notification it is.
See the below table for more information as well as the message that will be in `notify_msg`.
`%s` is automatically replaced by NUT with your UPS name.
See the below table for more information as well as the message that will be in
`notify_msg`. `%s` is automatically replaced by NUT with your UPS name.

| Type | Cause | Default Message |
|------------|-----------------------------------------------------------------------|----------------------------------------------------|
Expand All @@ -297,7 +298,8 @@ See the below table for more information as well as the message that will be in
| `NOCOMM` | A UPS is unavailable (can't be contacted for monitoring) | "UPS %s is unavailable" |
| `NOPARENT` | The process that shuts down the system has died (shutdown impossible) | "upsmon parent process died - shutdown impossible" |

This event allows you to create automations to do things like send a [critical notification](critical-notif) to your phone:
This event allows you to create automations to do things like send a
[critical notification](critical-notif) to your phone:

```yaml
automations:
Expand All @@ -318,7 +320,8 @@ automations:
volume: 1.0
```

For more information, see the NUT docs [here](nut-notif-doc-1) and [here](nut-notif-doc-2).
For more information, see the NUT docs [here](nut-notif-doc-1) and
[here](nut-notif-doc-2).

## Changelog & Releases

Expand Down

0 comments on commit 8c0de1a

Please sign in to comment.