Add scripts for Bitlair and DJO

This commit is contained in:
polyfloyd 2016-10-02 20:01:59 +02:00
parent 5b96a6be43
commit 239e6cec0e
27 changed files with 105 additions and 1 deletions

3
bitlair_open.d/10_log Executable file
View file

@ -0,0 +1,3 @@
#!/bin/bash
echo "Space opened on $(date)" >> /var/log/spacestate.log

3
bitlair_open.d/10_mqtt Executable file
View file

@ -0,0 +1,3 @@
#!/bin/bash
mqtt-simple -r -h mqtt.bitlair.nl -p 'bitlair/state' -m 'open'

View file

@ -0,0 +1,6 @@
#!/bin/bash
# Switches on the led-board.
apc-switch 23 on
sleep 1

11
bitlair_open.d/20_music_poweron Executable file
View file

@ -0,0 +1,11 @@
#!/bin/bash
# Switches on the music computer.
apc-switch 13 off
sleep 5
apc-switch 13 on
sleep 1
# Amplifier and KVM switch
apc-switch 20 on
sleep 1

7
bitlair_open.d/20_phone_on Executable file
View file

@ -0,0 +1,7 @@
#!/bin/bash
# Switches on the phones.
poe-switch 1 1
sleep 1
poe-switch 2 1
sleep 1

View file

@ -0,0 +1,8 @@
#!/bin/bash
# Starts the computer displaying pretty graphs.
for i in {0..3}; do
wakeonlan '00:1e:c9:72:21:c4'
sleep 1
done

3
bitlair_open.d/80_irc Executable file
View file

@ -0,0 +1,3 @@
#!/bin/bash
irc-say "Bitlair is now open!"

View file

@ -0,0 +1,3 @@
#!/bin/bash
bitlair-tweet "We are OPEN!"