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

shaidar/bathroombot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bathroombot

Bathroom door sensor with Slack integration to notify you of bathroom availability.

Problem

I work on a first floor of a building that only has a single bahtroom on that floor to accomodate around 30 people. Over the past few years, I've left my desk and walked to the bathroom, that's located in the middle of the hallway, only to discover that it's occupied. Given that I'm an optimist, most of the time I opted to wait as opposed to go to the second floor or next door to use the bathroom. That led to a lot of wasted time and decreased productivity and I finally decided to do something about it.

Solution

To solve the problem, I needed the following:

  • Door sensor - the door is always left open when the bathroom is available.
  • LED Light to display status - difficulty in identitifying whether the door is open or closed unless you're really close.
  • Digital notification in the form of an app or website - Bathroom is in the hallway and so LED light is not visible until after you've walked out of the room and into the hallway.

Tools/Equipment

I did not list the soldering iron and solder as I was lucky to have a co-worker who has all this and taught me how to solder and test the connections.

I would recommend getting the Particle Maker Kit as it contains a breadboard and some other stuff that you can tinker with.

Wiring Diagram

BathroomBot

Why Slack?

Simple answer is that we are already using it and it felt it would be easiest for everyone since we all have the app and you'd just need to subscribe to the channel.

Slack integration

Particle Photon is web enabled (you will need to make sure it's configured on your network) and can be programmed to post events to Particle's site. Before messing around with the slack integeration, make sure to have the following completed:

  • Photon is on wireless network
  • Photon's firmware is flashed with provided code
  • Photon is connected based on diagram above and LED is acting as expected (red when switch is closed and green when open)
  • Photon is proerly logging events in dashboard

Once you have all the above in place, you can work on the slack integration. I used IFTTT which also integrates with Particle.

Finished Product

This is what it looks like

Mounted Device

Messages in Slack

Slack Screenshot

Helpful Links

About

Bathroom door sensor with Slack integration to notify you of bathroom availability

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Other 100.0%