Add scripts for Bitlair and DJO
This commit is contained in:
parent
5b96a6be43
commit
239e6cec0e
27 changed files with 105 additions and 1 deletions
3
bitlair_open.d/10_log
Executable file
3
bitlair_open.d/10_log
Executable file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/bash
|
||||
|
||||
echo "Space opened on $(date)" >> /var/log/spacestate.log
|
3
bitlair_open.d/10_mqtt
Executable file
3
bitlair_open.d/10_mqtt
Executable file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/bash
|
||||
|
||||
mqtt-simple -r -h mqtt.bitlair.nl -p 'bitlair/state' -m 'open'
|
6
bitlair_open.d/20_ledboard_poweron
Executable file
6
bitlair_open.d/20_ledboard_poweron
Executable 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
11
bitlair_open.d/20_music_poweron
Executable 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
7
bitlair_open.d/20_phone_on
Executable file
|
@ -0,0 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Switches on the phones.
|
||||
poe-switch 1 1
|
||||
sleep 1
|
||||
poe-switch 2 1
|
||||
sleep 1
|
8
bitlair_open.d/20_statsdisplay_poweron
Executable file
8
bitlair_open.d/20_statsdisplay_poweron
Executable 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
3
bitlair_open.d/80_irc
Executable file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/bash
|
||||
|
||||
irc-say "Bitlair is now open!"
|
3
bitlair_open.d/80_twitter
Normal file
3
bitlair_open.d/80_twitter
Normal file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/bash
|
||||
|
||||
bitlair-tweet "We are OPEN!"
|
Loading…
Add table
Add a link
Reference in a new issue