Hi again
I saw that I had hardcoded one line that should contain a variable.
On line 239
exec("sudo -u niclas tdtool -l",$o,$r);
change to this
exec($cmd_prefix."tdtool -l",$o,$r);
Thoberre: Ok, so if tellit populates the db correctly, thats quite good.
Whatabout setting debugging on
line 47:
$debugMode=2;
then comment out line 57: (i think its line 57 for you too, but it could be different)
#if(!isset($_GET["debug"])){
and the matching }
then add
echo $t_exec." ".$toggle." ".$t_arg;
after (about line 69)
exec($t_exec." ".$toggle." ".$t_arg);
When you turn on/off lamps now, you will first see a JS-popup containing some info.
Some are blank and som contain info.
The last lines looks like this for me
Code: Select all
EXECUTED:
sudo -u niclas/usr/bin/tdtool --on 4 1
dont bother of the last number, in my case 1, its a bug that has nothing to do with the real executed code.
The a new page will be open
What does it say?
Mine says
sudo -u niclas /usr/bin/tdtool --off 4
And for the dimmer-function, it looks very nice, and I will try to add it as soon as most bugs are solved.
/Niclas