Commit changes from the last 4 years
This commit is contained in:
parent
ed042cbfce
commit
bcd171723c
43 changed files with 74 additions and 37 deletions
4
bitlair_closed.d/20_amplifier_poweroff
Executable file
4
bitlair_closed.d/20_amplifier_poweroff
Executable file
|
@ -0,0 +1,4 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Amplifier and KVM switch
|
||||
apc-switch 22 off
|
|
@ -3,9 +3,6 @@
|
|||
ssh -o ConnectTimeout=1 root@music.bitlair.nl /opt/shutdown.sh
|
||||
ssh -o ConnectTimeout=1 root@music.bitlair.nl shutdown -h now
|
||||
sleep 10
|
||||
apc-switch 18 off
|
||||
|
||||
# Amplifier and KVM switch
|
||||
apc-switch 19 off
|
||||
apc-switch 20 off
|
||||
|
||||
mqtt-simple -r -h mqtt.bitlair.nl -p 'bitlair/music/space/state' -m 'stopped'
|
||||
|
|
|
@ -3,7 +3,4 @@
|
|||
ssh root@bitpanel.bitlair.nl shutdown -h now
|
||||
sleep 10
|
||||
|
||||
# 1 = Board (upper half)
|
||||
# 2 = Controller
|
||||
# 3 = Board (lower half)
|
||||
powerbar-switch 1-3 off
|
||||
apc-switch 18 off
|
||||
|
|
|
@ -1,3 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
powerbar-switch 20 off
|
3
bitlair_closed.d/21_lounge_leds_poweroff
Executable file
3
bitlair_closed.d/21_lounge_leds_poweroff
Executable file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/bash
|
||||
|
||||
apc-switch 17 off
|
|
@ -1,3 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
powerbar-switch 4 off
|
2
bitlair_closed.d/22_phone_off
Executable file
2
bitlair_closed.d/22_phone_off
Executable file
|
@ -0,0 +1,2 @@
|
|||
#!/bin/bash
|
||||
poe-switch 10 off
|
4
bitlair_closed.d/23_bank_leds_off
Executable file
4
bitlair_closed.d/23_bank_leds_off
Executable file
|
@ -0,0 +1,4 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Turn off the port for the bank leds
|
||||
powerbar-switch 3 off
|
4
bitlair_closed.d/23_beamer_off
Executable file
4
bitlair_closed.d/23_beamer_off
Executable file
|
@ -0,0 +1,4 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Turn off the port for the Beamer
|
||||
powerbar-switch 2 off
|
5
bitlair_closed.d/23_ledbanner_off
Executable file
5
bitlair_closed.d/23_ledbanner_off
Executable file
|
@ -0,0 +1,5 @@
|
|||
#!/bin/bash
|
||||
|
||||
ssh -o ConnectTimeout=1 root@ledbanner.bitlair.nl shutdown -h now
|
||||
sleep 10
|
||||
powerbar-switch 20 off
|
6
bitlair_closed.d/24_statsbank_off
Executable file
6
bitlair_closed.d/24_statsbank_off
Executable file
|
@ -0,0 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
ssh -o ConnectTimeout=1 root@statsbak.bitlair.nl shutdown -h now
|
||||
sleep 20
|
||||
powerbar-switch 19 off
|
||||
|
|
@ -1,3 +1,3 @@
|
|||
#!/bin/bash
|
||||
|
||||
bitlair-tweet "We closed at $(date +%s)"
|
||||
bitlair-state-tweet "No, we're closed. Closed at: $(date --rfc-3339=seconds)"
|
||||
|
|
4
bitlair_open.d/20_amplifier_poweron
Executable file
4
bitlair_open.d/20_amplifier_poweron
Executable file
|
@ -0,0 +1,4 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Amplifier and KVM switch
|
||||
apc-switch 22 on
|
|
@ -1,9 +1,4 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Ensure the controller is power cycled.
|
||||
powerbar-switch 2 off
|
||||
|
||||
# 1 = Board (upper half)
|
||||
# 2 = Controller
|
||||
# 3 = Board (lower half)
|
||||
powerbar-switch 1-3 on
|
||||
# Turn on bitpanel
|
||||
apc-switch 18 on
|
||||
|
|
4
bitlair_open.d/20_lounge_leds_poweron
Executable file
4
bitlair_open.d/20_lounge_leds_poweron
Executable file
|
@ -0,0 +1,4 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Turn on LEDs in the lounge
|
||||
apc-switch 17 on
|
|
@ -1,8 +1,5 @@
|
|||
#!/bin/bash
|
||||
|
||||
apc-switch 18 off
|
||||
apc-switch 20 off
|
||||
# Switches on the music computer.
|
||||
apc-switch 18 on
|
||||
|
||||
# Amplifier and KVM switch
|
||||
apc-switch 19 on
|
||||
apc-switch 20 on
|
||||
|
|
|
@ -1,3 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
powerbar-switch 4 on
|
|
@ -1,3 +1,4 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Turn on ledbanner
|
||||
powerbar-switch 20 on
|
3
bitlair_open.d/22_phone_on
Executable file
3
bitlair_open.d/22_phone_on
Executable file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/bash
|
||||
poe-switch 10 on
|
||||
|
4
bitlair_open.d/22_statsbak_on
Executable file
4
bitlair_open.d/22_statsbak_on
Executable file
|
@ -0,0 +1,4 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Turn on statsbak
|
||||
powerbar-switch 19 on
|
4
bitlair_open.d/23_beamer_on
Executable file
4
bitlair_open.d/23_beamer_on
Executable file
|
@ -0,0 +1,4 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Turn on the port for the Beamer
|
||||
powerbar-switch 2 on
|
4
bitlair_open.d/24_bank_leds_on
Executable file
4
bitlair_open.d/24_bank_leds_on
Executable file
|
@ -0,0 +1,4 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Turn on the port for the bank leds
|
||||
powerbar-switch 3 on
|
|
@ -1,3 +1,3 @@
|
|||
#!/bin/bash
|
||||
|
||||
bitlair-tweet "We OPENED at $(date +%s)"
|
||||
bitlair-state-tweet "Yes, we're OPEN! Open since: $(date --rfc-3339=seconds)"
|
||||
|
|
1
djo_closed.d/20_amplifier_poweroff
Symbolic link
1
djo_closed.d/20_amplifier_poweroff
Symbolic link
|
@ -0,0 +1 @@
|
|||
../bitlair_closed.d/20_amplifier_poweroff
|
|
@ -1 +0,0 @@
|
|||
../bitlair_closed.d/20_music_poweroff
|
|
@ -1 +0,0 @@
|
|||
../bitlair_closed.d/21_crossleds_poweroff
|
1
djo_closed.d/21_lounge_leds_poweroff
Symbolic link
1
djo_closed.d/21_lounge_leds_poweroff
Symbolic link
|
@ -0,0 +1 @@
|
|||
/opt/spacestate/bitlair_closed.d/21_lounge_leds_poweroff
|
|
@ -1 +0,0 @@
|
|||
../bitlair_closed.d/21_roofleds_poweroff
|
1
djo_closed.d/22_phone_off
Symbolic link
1
djo_closed.d/22_phone_off
Symbolic link
|
@ -0,0 +1 @@
|
|||
/opt/spacestate/bitlair_closed.d/22_phone_off
|
1
djo_closed.d/23_bank_leds_off
Symbolic link
1
djo_closed.d/23_bank_leds_off
Symbolic link
|
@ -0,0 +1 @@
|
|||
../bitlair_closed.d/23_bank_leds_off
|
1
djo_closed.d/23_beamer_off
Symbolic link
1
djo_closed.d/23_beamer_off
Symbolic link
|
@ -0,0 +1 @@
|
|||
../bitlair_closed.d/23_beamer_off
|
1
djo_closed.d/23_ledbanner_off
Symbolic link
1
djo_closed.d/23_ledbanner_off
Symbolic link
|
@ -0,0 +1 @@
|
|||
/opt/spacestate/bitlair_closed.d/23_ledbanner_off
|
1
djo_closed.d/24_statsbak_off
Symbolic link
1
djo_closed.d/24_statsbak_off
Symbolic link
|
@ -0,0 +1 @@
|
|||
/opt/spacestate/bitlair_closed.d/24_statsbank_off
|
1
djo_open.d/20_amplifier_poweron
Symbolic link
1
djo_open.d/20_amplifier_poweron
Symbolic link
|
@ -0,0 +1 @@
|
|||
../bitlair_open.d/20_amplifier_poweron
|
|
@ -1 +0,0 @@
|
|||
../bitlair_open.d/20_crossleds_poweron
|
1
djo_open.d/20_lounge_leds_poweron
Symbolic link
1
djo_open.d/20_lounge_leds_poweron
Symbolic link
|
@ -0,0 +1 @@
|
|||
/opt/spacestate/bitlair_open.d/20_lounge_leds_poweron
|
|
@ -1 +0,0 @@
|
|||
../bitlair_open.d/20_music_poweron
|
|
@ -1 +0,0 @@
|
|||
../bitlair_open.d/20_roofleds_poweron
|
1
djo_open.d/21_ledbanner_on
Symbolic link
1
djo_open.d/21_ledbanner_on
Symbolic link
|
@ -0,0 +1 @@
|
|||
/opt/spacestate/bitlair_open.d/21_ledbanner_on
|
1
djo_open.d/22_phone_on
Symbolic link
1
djo_open.d/22_phone_on
Symbolic link
|
@ -0,0 +1 @@
|
|||
/opt/spacestate/bitlair_open.d/22_phone_on
|
1
djo_open.d/22_statsbak_on
Symbolic link
1
djo_open.d/22_statsbak_on
Symbolic link
|
@ -0,0 +1 @@
|
|||
/opt/spacestate/bitlair_open.d/22_statsbak_on
|
1
djo_open.d/23_beamer_on
Symbolic link
1
djo_open.d/23_beamer_on
Symbolic link
|
@ -0,0 +1 @@
|
|||
../bitlair_open.d/23_beamer_on
|
1
djo_open.d/24_bank_leds_on
Symbolic link
1
djo_open.d/24_bank_leds_on
Symbolic link
|
@ -0,0 +1 @@
|
|||
../bitlair_open.d/24_bank_leds_on
|
Loading…
Add table
Add a link
Reference in a new issue