830 B
830 B
LoFi as a Service
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
Skip Track
POST /api/skip