-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathloft_teevee.php
More file actions
executable file
·30 lines (23 loc) · 885 Bytes
/
loft_teevee.php
File metadata and controls
executable file
·30 lines (23 loc) · 885 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?php
require 'functions.php';
# Dim the main set a bit
oneState('true',11,154,8402,140);
oneState('true',12,154,8402,140);
oneState('true',13,154,8402,140);
oneState('true',14,154,8402,140);
oneState('true',15,154,8402,140);
oneOn(17);
oneOn(20);
$output = `/usr/bin/env curl -s http://max.kenkl.org/lights/lrdlmin.php`;
# ...and then bring the bedroom down a bit too, but only if it's not already dimmed or whatever
if(isOn(9)) {
$output = `/usr/bin/env curl -s http://max.kenkl.org/lights/brmin.php`;
}
# Let's turn off xmastreething to fit the scene
#$output = `/usr/bin/env curl -s http://max.kenkl.org/lights/xmastreeoff.php`;
# Ironically, turn off the TV backlights if they're on. This will have no effect if we're streaming.
oneOff(28);
oneOff(29);
oneOff(39);
if(strpos($_SERVER['HTTP_USER_AGENT'], 'WebKit')) header('Location: ' . $_SERVER['loft_teevee.php']);
?>