Skip to content

Commit

Permalink
Add cup re-use count object to bar API
Browse files Browse the repository at this point in the history
  • Loading branch information
sde1000 authored and edwinbalani committed May 23, 2024
1 parent 7c7a39e commit 1eb4584
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions content/bar.md
Original file line number Diff line number Diff line change
Expand Up @@ -960,6 +960,30 @@ Example:
}
```

### Cups re-used

Key: `totals/cups-re-used`

This object gives the number of cups that have been brought back to
the bar to be re-filled. (When someone brings a cup to the bar to be
filled with their drink, rather than take a fresh cup from our supply,
we offer a small discount. This event we are paying a small amount to
hire re-usable plastic cups, but a larger amount for each one actually
used and requiring cleaning.)

This object is not updated in real-time. Instead, an update is
published every minute.

Example:

```json
{
"type": "cups re-used",
"key": "totals/cups-re-used",
"count": 1
}
```

## MQTT

All the objects that can be subscribed to over the websocket will also
Expand Down

0 comments on commit 1eb4584

Please sign in to comment.