Document laas API
This commit is contained in:
parent
4c4fae43c3
commit
5fba3dc3cf
1 changed files with 26 additions and 0 deletions
|
@ -3,3 +3,29 @@
|
|||
There is a public announcement speaker mounted to the cable tray in coucharea. It is connected to a
|
||||
Raspberry Pi, `laas.asozial.it-syndikat.org`, running https://git.it-syndikat.org/oha/laas. Can be
|
||||
controlled via a REST API, most easily through the entities already set up in Home Assistant.
|
||||
|
||||
## API Endpoints
|
||||
The REST API implements the following endpoints:
|
||||
|
||||
Get the currently playing song
|
||||
`GET /api/nowplaying`
|
||||
|
||||
Start Playback
|
||||
`POST /api/start`
|
||||
|
||||
Stop the Playback
|
||||
`POST /api/stop`
|
||||
|
||||
Play a local file/remote url
|
||||
`POST /api/play<filename_or_url>`
|
||||
|
||||
Play a Sound effect. This does not interrupt the currently playing song.
|
||||
`POST /api/fx<filename_or_url>`
|
||||
|
||||
Change Volume
|
||||
`PUT /api/volume` with the volume you want to set in percent.
|
||||
|
||||
Get Volume
|
||||
`GET /api/volume`
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue