YouTube demo : http://youtu.be/G2vwF3t49f0
YouTube complet demo HD with annotation : http://www.youtube.com/watch?v=l6r5DSuqOUI
I have created one map of my house in HTML5 and I control my lights and my heatings with the tellstick net
I control also my freebox TV (french box with ADSL),
my projector with LAN (viewsonic PJD6221),
I'm using the speech recognition to show actions on my devices (in developpment : 80% done),
and all the 5 minutes the sensor is checked and heatings are started or stoped depending on the temperature !
I have a crontab who call my scheduler page every 5 minutes with phpsessid given in get param.
My php session doesn't expire and I have on my desktop one shortcuts :
http://xxxxxx.xx/?PHPSESSID=xxxxxxxxxxxxxxxxxxxx
This link give an access without identification
HOW TO INSTALL IT :
You need to configure the php server :
Code: Select all
1 sudo apt-get install php5 curl php5-dev php5-curl php-pear libpcre3-dev make
2 sudo pecl install oauth
3 pear install channel://pear.php.net/HTTP_OAuth-0.3.1
4 pear install HTTP_OAuth
5 sudo nano /etc/php5/apache2/php.ini # add extension=oauth.so at the end of the file
6 sudo /etc/init.d/apache2 restart
for voice command :
5 sudo apt-get install sox aften flac
6 sudo apt-get install alsa-utils
7 sudo apt-get install pulseaudio
Configure the web acces to the new folder ...
Edit the file : config.php with your parameters
exemple :
Code: Select all
telldus_secret = your private key
telldus_key = your public key
define('TELLDUS_CLIENT', 123456);
define('DEVICE_SOUND', 54114);
define('SENSOR_BEDROOM', 34748);
Add this line in /etc/crontab
Code: Select all
*/5 * * * * root cd /tmp/ && wget "http://xxxxxxxxx.xxx/scheduler.php?PHPSESSID=xxxxxxx" -nv -b > /dev/null
Code: Select all
cd /var/www/xxxxxx/voice && ./3_listener YOUR_PHPSESSID
Code: Select all
sudo chmod +x /etc/init.d/telldus-listener
Code: Select all
/etc/init.d/telldus-listener
Code: Select all
sudo chown www-data:www-data -R parameters
sudo chown www-data:www-data voice/2_dialog.log
Info : One security on the page, if one guy try to use this personnal login, he's killed because I check the client ID
SOME SCREENSHOTS :
The map ...
with a slidebar to start/stop the heatings only when I want (All time / Only night and weekend / Never)...
and a log console to see activities.
My freebox remote :
My projector remote :
Scheduler events :
Context menu (right click) :
The speech recognition (only in chrome and on android for now) :
All devices are named : "location - name"
For exemple :
The light in the bedroom is named on telldus live : "Bedroom - Light"
If I said : "Start the light on the bedroom" the script convert speech to text and analyze "start + light + bedroom"
And the action is to turn on the device
Last update :
- add graphs for temperature and humidity
- add context menu (right click)
- optimization of code
Have FUN !