DataDog/bathroom

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

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Background

You can find more details on the project and implementation on Datadog's Engineering blog.

Setup

 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

Usage

 bathroom.example.com 50
room Status:
: Available
t: Available

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.