Skip to content

Intermediate service to receive Google Home request and interpret to play tunes on Sonos

License

Notifications You must be signed in to change notification settings

nathancashmore/SonosAssistant

Repository files navigation

SonosAssistant

Intermediate service to receive Google Home request and interpret to play tunes on your local Sonos.

Uses the fine work of jishi/node-sonos-http-api to talk to your local services.

Prerequisites

Setup

Sonos Assistant

  • npm install

Api.Ai

  • Goto Api.Ai

  • Create new agent

  • Goto Settings > Export and Import

  • Restore from zip

  • Drop in the file SonosAssistant-ApiAi.zip at base of project.

  • Goto Integrations > Actions on Google (Follow the steps to push out to google cloud)

Running

  • npm start

Fires up:

  • node-sonos-http-api by default on port 5005
  • Sonos-Assistant by default on port 3000

Serving over https

Copy output https url and enter in Api.Ai as the Fulfillment Webhook URL with /sonos/ on the end. e.g. https://7e68c7b6.ngrok.io/sonos

Logging

All output goes to the file output.log, tail that if nothing is working.

Testing

npm test

About

Intermediate service to receive Google Home request and interpret to play tunes on Sonos

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published