outlet.py
Python script used for scheduling automation, also contains additional code used by the web interface to store the state of the outlets and properly configure the switches
py -
1.65 kB -
03/25/2017 at 17:42
|
|
Download
|
index.php
Very simple and basic web interface to control the outlets, it can be improved by using css, or other buttons.
php -
1.75 kB -
03/25/2017 at 18:11
|
|
Download
|
gpio.php
used by the java script to switch the outlet off or on and to store the state of the outlet (OFF/ON)
php -
1.81 kB -
03/25/2017 at 18:20
|
|
Download
|
script.js
Java script used to control the buttons and display the appropriate images, calls on gpio.php to perform the actual switching and saving the outlet states.
javascript -
2.90 kB -
03/25/2017 at 18:26
|
|
Download
|
off_0.jpg
Image file used by the web interface, represents first half of the switch in the OFF position
JPEG Image -
19.21 kB -
03/25/2017 at 17:44
|
|
Preview
|
|
off_1.jpg
Image file used by the web interface, represents second half of the switch in the OFF position
JPEG Image -
17.90 kB -
03/25/2017 at 17:44
|
|
Preview
|
|
on_0.jpg
Image file used by the web interface, represents first half of the switch in the ON position
JPEG Image -
17.44 kB -
03/25/2017 at 17:44
|
|
Preview
|
|
on_1.jpg
Image file used by the web interface, represents second half of the switch in the ON position
JPEG Image -
17.98 kB -
03/25/2017 at 17:44
|
|
Preview
|
|