better documentation

timing for projector on
master
pidor 2017-06-05 20:04:05 +02:00
parent b7fabb2da6
commit f78adee9de
5 changed files with 13 additions and 4 deletions

View File

@ -18,9 +18,13 @@ sudo bash # all is installed under root
apt-get install php5-curl # for twitter
apt-get install git # for getting this
apt-get install wiringpi # for the buttons and stuff
apt-get install gawk # raspian has mawk by default which lacks time functions
tzselect
comment out the last 4 lines of rsyslogd.conf (for xconsole)
like explained here https://www.raspberrypi.org/forums/viewtopic.php?f=91&t=122601
cp -p systemfiles/sudoers.d/* /etc/sudoers.d/
mkdir /root/var # kinda important

View File

@ -48,7 +48,7 @@ function beameron() {
if [ "$currstatus" = "off" ]
then
echo "Waiting for beamer to boot..."
sleep 15
sleep 18
echo "... is now booted"
return 0
fi

View File

@ -36,6 +36,8 @@ function dolight() {
;;
receiver) sudo /root/pidor/scripts/beamercontrol.sh receiver "$2"
;;
stealth) sudo /root/pidor/scripts/stealth.sh
;;
# maindoor) sudo /root/pidor/scripts/opendoor.sh
# ;;
esac

View File

@ -8,6 +8,8 @@ then
fi
if [ "$1" = "pushed" ]
then
oldvol="$(amixer get PCM |awk -F'[][]' '/: Playback.*%/{print $2}')"
amixer set PCM 5%
aplay '/root/win/Windows XP Error.wav'
sleep 1
aplay '/root/win/Windows XP Critical Stop.wav'
@ -16,5 +18,6 @@ then
sleep 1
#espeak -s 120 -p 80 "I will tell you when I am finished." 2>/dev/null
aplay '/root/win/Windows XP Logoff Sound.wav'
amixer set PCM "$oldvol"
fi
) &

View File

@ -15,7 +15,7 @@ $statusTag = '#statusUpdate';
// Set the messages to tweet when the status of the hackspace changes
// %s is going to be replaced by the current time to avoid duplicate tweets on Twitter
$messageOpen = "It's %s and we are open \o/ \ncome in and create something awesome =) \nhttps://Level2.lu/openingTimes";
$messageClosed = "We just closed our doors at %s \n%sSee you very soon... \nhttps://Level2.lu/openingTimes";
$messageClosed = "We just closed our doors at %s%s See you very soon... \nhttps://Level2.lu/openingTimes";
require_once('TwitterAPIExchange.php');
@ -54,9 +54,9 @@ if ( $currentStatus != $previousStatus ) {
$peopleMax=str_replace("\n", '', $peopleMax);
file_put_contents("/var/cache/peoplecountermax","0");
if($peopleMax>8) { // only write this info if the place has been quite busy
$peopleMax="There were up to $peopleMax hackers today.\n";
$peopleMax="\nThere were up to $peopleMax hackers today.\n";
} else {
$peopleMax="";
$peopleMax=str_repeat('.',$peopleMax);
}
} else {
$peopleMax="";