Plugin for playing sounds with pimatic
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
LICENSE
README.md
package.json
play-config-schema.coffee
play.coffee

README.md

pimatic-play

A plugin for playing sounds in pimatic. Requires a suitable player installed on your machine:

afplay (osx available by default) mplayer (best for raspberry) mpg123 mpg321 play

Configuration

You can load the backend by editing your config.json to include:

{
  "plugin": "play",
}

in the plugins section. For all configuration options see play-config-schema

Currently you can play sounds via action handler within rules.

Example:

if it is 08:00 play "./alarm.wav"

in general: if X then play "path/to/file.wav"

currently the option for setting a player is not implemented!