Skip to content

We used this code at my previous company to detect if the Ping Pong table room is available or not :)

Notifications You must be signed in to change notification settings

amirkeren/pingpong-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Motion Detector Project

This code runs on Raspberry Pi and is used to check our Ping Pong table room in my company's offices to see if it's available or not :) It uses a PIR motion detection sensor to detect movement and updates the Mysql DB accordingly. In addition, a Slack bot queries the DB to determine if there's an ongoing open session.

Pre-Requisites

  • Raspberry Pi
  • PIR motion detector
  • Raspbian Jessie

Getting Started

  1. Run the setup script setup.sh to install the various dependencies

  2. (Optional) Update the config.properties file if you changed the default mysql db user and password

  3. Run python motion_detector.py to begin monitoring

  4. Edit pingpongbot.py and replace SLACK_BOT_TOKEN and SLACK_BOT_NAME with the relevant Slack information

  5. Run python pingpongbot.py to start the Slack bot

About

We used this code at my previous company to detect if the Ping Pong table room is available or not :)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published