Name: bathroom
Owner: Datadog, Inc.
Description: Bathroom door lock sensors
Created: 2016-02-23 17:38:50.0
Updated: 2018-05-21 19:15:05.0
Pushed: 2017-04-17 18:02:41.0
Homepage: null
Size: 18
Language: Python
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
You can find more details on the project and implementation on Datadog's Engineering blog.
apt-get install daemontools-run git ucspi-tcp
clone git@github.com:DataDog/bathroom.git
st sensor hookup
ROOM_CONFIG="12 men left:14:nc,12 men right:15:nc" bathroom/bin/bathroom_status
ing the djb way mostly because this version of raspbian doesn't have a sane
it system.
mkdir /service
mv bathroom /service/bathroom
s /service/bathroom . # for convenience if you want
r /service/bathroom/envdir/
"12 men left:14:nc,12 men right:15:nc" > /service/bathroom/envdir/BATHROOM_CONFIG # set according to your setup
adduser --system --shell=/usr/sbin/nologin --ingroup=gpio bathroom
ln -s /service/bathroom /etc/service/bathroom
bathroom.example.com 50
room Status:
: Available
t: Available