open-rmf / rmf-web

Apache License 2.0
87 stars 40 forks source link

Allow configurable alert audio when alert occurs #1001

Closed aaronchongth closed 2 months ago

aaronchongth commented 2 months ago

What's new

Configurable audio file URL to be played when alerts occur, no alert audio will be played by default.

Use alertAudioPath in the app config, for example

{
  ....,
  "alertAudioPath": "https://github.com/adafruit/Adafruit-Sound-Samples/raw/7675c60a47c025ab62f77b699d6460d22bb963b1/sonic-pi/elec_ping.wav",
  ....
}

This can also be a relative path, when the audio file is downloaded to dashboard/public/resources/elec_ping.wav

{
  ....,
  "alertAudioPath": "/resources/elec_ping.wav",
  ....
}

Self-checks