Skip to content

mustafazc/play-sound-webhook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

play-sound-webhook

Maintainability

A nodejs server and app that listens on an endpoint and plays sounds.

This is a project that is running on a local device and has a webhook exposed (using ngrok) to AWS Lambda that is triggered via an AWS IOT button. The button is used as a doorbell and plays a sound when it is pressed (POST to /play).
The slack channel can calso call the webhook (using slash commands) with a url that just plays a youtube url. The lambda function also shoots a message to a slack channel when the doorbell is pressed.

Lambda function - https://gist.github.com/mustafazc/03f6bed18823595598c7206f2cb6032d

Requirements

  • NodeJS

Installation

  • Install Dependencies
npm install
  • For development
npm run dev
  • For production
npm start

Current Functionality

  • play sound
  • play file [TODO]
  • play youtube url

Roadmap

  • Have endpoints for each different functionality
  • Handle slack or json responses better

About

A nodejs server and app that listens on an endpoint and plays sounds

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published