@sweebee perfekt!!!
-
[pimatic-thermostat] Thermostat (web)app
pimatic + MySensors + Homeduino + z-way
https://github.com/n3roGit/MySensors_n3ro -
ive tried to setup a a nginx server and also installed php for it, but when i put the files in the www folder i cant get it working on my adress.
yould someone give me a hint? before i had changed the files in the folder a have seen a welcome to nginx on the adress with port 8080.pimatic runs on 192.168.0.110:80
thermostat 192.168.0.110:8080 -
You should make a number of config changes. Your welcome page is a simple html page directly served by nginx. php scripts are only “recognized” after niginx knows how to deal with them.
Please take a look at : http://askubuntu.com/questions/134666/what-is-the-easiest-way-to-enable-php-on-nginx
-
location /thermostat/ { try_files $uri $uri/ /index.php; } location ~ \.php$ { try_files $uri =404; fastcgi_param SCRIPT_FILENAME $document_r oot$fastcgi_script_name; include fastcgi_params; fastcgi_pass unix:/var/run/php5-fpm.sock; }
pimatic + MySensors + Homeduino + z-way
https://github.com/n3roGit/MySensors_n3ro -
@sweebee
Ok it working fine.
Thanks.The top of everything would be if you could make it possible to change the light switches…
Someone like you have made it with the thermostats.so select with radio buttons or so…
$light[0]['id'] = 'Nachtlicht' // ID of the light switch $light[1]['id'] = 'Steckdose2' // Remove string to disable th light switch $light[2]['id'] = 'Flur' // Remove string to disable th light switch
fine work till now…
mfg
Chris -
(To continue this old thread )
I had created another thermostat webgui, but my wife follows the KISS principle (Keep It Simple, Stupid) so I put back Sweebee’s version back on her phone (which looks better anyway).
This is just what she wanted but she missed one thing from my interface (next to a lot of other stuff like weather, garden and front temperature etc) and that was the “flame on” image.
If she increases the temperature she want to see that the heating switches on. So that is what I added. And because she has always doubts about the correct functioning of computers (Is it really doing nothing or is it not showing that it is heating), I added a minus sign to show it is doing nothing.
-
@Harry-van-der-Wolf looks nice. maybe you could create a pull request on that.
i like sweebee’s webapp too. plain and simple.
but now with the new user access feature you could also create an own page for your wife in pimatic itself with the appropriate devices. just a thought.pimatic v0.9 has been released!
Support Pimatic and get some free stickers
Like us on Facebookmake it so !
-
Maybe someone can help me with the following. I have tried to implement the thermostat. I have put the files on my webserver ( nas ) and filled in the config. I can’t manage to get it working. not on SSL ( 443 ) and not on normal ( 80 ).
Someone knows this issue?my config:
<?php // App $app['title'] = 'Thermostaat'; // App title $app['password'] = ''; // App password // Pimatic $pimatic['user'] = 'admin'; // Pimatic username $pimatic['pass'] = 'xxxxxxxxx'; // Pimatic password $pimatic['host'] = 'example.nl'; // Pimatic IP address $pimatic['port'] = 443; // Pimatic port $pimatic['ssl'] = true; // Use https (SSL) $pimatic['poll'] = 5000; // Polling interval //Thermostaat $therm['id'] = 'thermostaat'; // ID of the thermostat device $therm['eco'] = 18; // Eco temperature $therm['comf'] = 20; // Comfort temperature //Temperature sensor $temp['id'] = 'variable_device_temp2'; // The full variable of the device like: livingroom.temperature //Lights $light['id'] = '' // ID of the light switch //$light['id'] = ''; // Make empty if lights are not used ?>
-
@countjuh debug it with chrome developer tab… Should give you some info.
-
i allready did. But. i can’t seem to find the problem. well, i see what, but i can’t solve it cause i dont know where to find it in the php files thats a lack of programming skillz, sry.
-
@countjuh hm, your folder structure doesnt look like the one on github. Where did you get the thermostaat.php code?
-
var setTemp = <?php echo getValue($therm['id'].'.temperatureSetpoint'); ?>;
Error is probably because it cant find your thermostat id. Sure the config.php is correct?
//Thermostaat $therm['id'] = 'thermostaat'; // ID of the thermostat device $therm['eco'] = 18; // Eco temperature $therm['comf'] = 20;
-
looks the right id.
well, i have made a html gui. the credentials are the same there. -
@countjuh you mean that you made your own gui based on this code?
If so, you should try this code first. If the problem maintains you should post all of your code in order to see what is wrong.
It already fails at the first php variable and sweebee’s php codes look fine to me.
-
I meant that i have made a gui for pimatic based on koffienl’s gui.
The thermostat is complete original. I didnt change a single thing.