Skip to content
This repository has been archived by the owner on Apr 26, 2022. It is now read-only.

Latest commit

 

History

History
13 lines (10 loc) · 860 Bytes

README.md

File metadata and controls

13 lines (10 loc) · 860 Bytes

Lost My Doorbell - Server

This is a simple Sinatra app which acts a bridge between Slack and the LMN doorbell.

It listens for POST requests on /, and then triggers a Pusher event which is picked up by the listening Raspberry Pi in the office.

Check out the client library for the Raspberry Pi code.

Getting Started

  • Set up two integrations on your Slack account (here); one for Incoming Webhooks and another for Slash Commands. Make note of your webhook URL and Slack token.
  • Copy .env.sample to .env and fill out the empty config values.
    • You'll need a PUSHER_KEY, SLACK_TOKEN and SLACK_WEBHOOK_URL
  • Deploy this app somewhere - we recommend Heroku - and point your Slack Slash Command integration to it.
  • Connect up the client code, and enjoy!