Page 1 of 1
Just made my plugwise webpage better
Posted: Tue Oct 30, 2012 8:24 pm
by Quart
Hi
Just want to show you what can be done with some php code and the plugwise webserver.
WIth at friend of mine at
http://www.lokaltvader.se we have made this.
If you come from a "trusted" ip you can turn aplliances on/off
Here is a link if you want to download it:
http://www.sundshult.se/temp/pw.zip
We also have some scripts checking if some appliances is taking more then example 40W and then they turn on/off someother things.
We am also using the sunmeter from my Davis station to trigger lights at home when its getting dark.
http://www.sundshult.se/wxpw.php
Re: Just made my plugwise page better
Posted: Tue Oct 30, 2012 9:30 pm
by Digit
Nice!
Re: Just made my plugwise page better
Posted: Wed Oct 31, 2012 8:46 am
by vanisher
Nice!! Are you going to publish the php scripts?
Re: Just made my plugwise page better
Posted: Wed Oct 31, 2012 6:40 pm
by Wim2008
More people are interessed in the script.
BR Wim

Re: Just made my plugwise page better
Posted: Wed Oct 31, 2012 6:41 pm
by Wim2008
You make us curious.
Re: Just made my plugwise page better
Posted: Thu Nov 01, 2012 9:52 am
by hansieh
That looks good,
I'am also interested in the scripts,
Hans
Re: Just made my plugwise page better
Posted: Thu Nov 01, 2012 9:56 am
by Quart
Thanks for all credits.
I dont want to support them but I will try help you all get it going.
But they are build round plugwise own ´webserver and it can get inputs from Weather-Display software.
I will put them all in a zip package and will post a link.
Re: Just made my plugwise page better
Posted: Wed Nov 14, 2012 3:58 pm
by vanisher
Hi Quart,
Did you have time yet to 'zip-up' the package?
Re: Just made my plugwise page better
Posted: Wed Nov 14, 2012 4:05 pm
by Quart
Re: Just made my plugwise page better
Posted: Thu Nov 15, 2012 9:23 am
by yjb
Quart wrote:Finally, here it is.
Thanks so much! Let's see if I can find some time to play with this.
Ysbrand
Re: Just made my plugwise webpage better
Posted: Thu Nov 15, 2012 12:39 pm
by Wim2008
Thanks for sharing this script.
Can you give a short explanation, what to do with those 3 files?
B.R. Wim

Re: Just made my plugwise webpage better
Posted: Thu Nov 15, 2012 12:55 pm
by Quart
Put them all in example a folder called pw
then edit the file pwsettings.php, all things you need to edit is explained in pwsettings.php
After the you just open a webbrowser and go to your website example
http://www.mysite.se/pw/index.php
Just added a scriptfile I am running each 5 minutes everyday, it checks the sunlight measured with my Davis VP station.
Right now I am using 9W as limit, when it goes under 9W it send a "turn on" command to my "lamps group" in Plugwise
The script can med downloaded here
http://www.lokaltvader.se/download/autoswitch.php
Re: Just made my plugwise webpage better
Posted: Thu Nov 15, 2012 1:17 pm
by Wim2008
Thanks. I will give it a try.
BR Wim

Re: Just made my plugwise webpage better
Posted: Sun Dec 30, 2012 1:53 pm
by MarnixT
THanks for the scripts. I did try a little with the xampp webserver after which a nice page showed up, however with errors like
Notice: Use of undefined constant mac - assumed 'mac' in C:\NODOWeb\htdocs\index.php on line 157
Notice: Use of undefined constant lock - assumed 'lock' in C:\NODOWeb\htdocs\index.php on line 158
after this I realised it was supposed to work with the inbuilt webserver.
Unfortunately running that I got back a plain text page, starting with
<?php
require_once('pwsettings.php');
etc.
What can I do about this?
Re: Just made my plugwise webpage better
Posted: Fri Jan 04, 2013 2:10 pm
by Quart
You shall not use the Plugwise webserver, I dont think it can execute PHP pages.
So you can use xampp but you need to edit the pwsettings.php and tell whre your plugwise webserver is etc