Go to file
Level2 Pidor b02efa5861 detect if chromecast is idle and shotdown beamer on space close
beamer IP address out of script
2016-11-17 19:27:24 +01:00
433send Initial commit 2014-10-01 16:31:55 +02:00
doc electronic lock needs adaptation 2014-11-14 23:03:24 +01:00
rcswitch-pi :merged production code with code on github 2015-07-19 19:48:02 +02:00
scripts detect if chromecast is idle and shotdown beamer on space close 2016-11-17 19:27:24 +01:00
systemfiles detect if chromecast is idle and shotdown beamer on space close 2016-11-17 19:27:24 +01:00
webserver Removed cruft. Give user feedback. 2014-10-01 16:35:11 +02:00
www added CD (the little white asus laptop) to the amp's inputs 2016-09-05 20:08:40 +02:00
.gitignore :merged production code with code on github 2015-07-19 19:48:02 +02:00
README.txt detect if chromecast is idle and shotdown beamer on space close 2016-11-17 19:27:24 +01:00

README.txt

Pidor is controlling the state of Level2 on the website, spaceapi and twitter

This documentation is work in progress, sorry about that.

Install
put this in /etc/inittab (see example in systemfiles/inittab)
# pidor
P0:2345:respawn:/root/pidor/scripts/lockbutton.sh
P1:2345:respawn:/root/pidor/scripts/beamerdetect.sh
P2:2345:respawn:/root/pidor/scripts/ws4beamer_status.py
P3:2345:respawn:/root/pidor/scripts/peoplecounter-realtime.sh
P4:2345:respawn:/root/pidor/scripts/caststatus.py

put the beamer IP into beamerip.txt
put the peoplecounter ip into peoplecounterip.txt

fill in the crontab
* * * * * /root/pidor/scripts/dhcp2presency.sh
* * * * * /root/pidor/scripts/upd_status.sh > /run/spacestatus.out 2>&1

needs an apache, for some silly historic reason, and for the lights commander
cd ~/pidor/www && ./intallwebsite.sh

If you have a chromecast, script to switch off if chromecast is iddle:
cd ~/pidor
git clone git@github.com:balloob/pychromecast.git
cd pychromecast
sudo apt-get install python-dev python-pip
sudo pip install --upgrade pip
sudo pip install -r requirements.txt