Page 1 of 1
Help with presenting current consumtion on webpage
Posted: Mon Dec 20, 2010 3:14 pm
by Quart
Hi
I just got my plugwise and think its great.
I made a small webpage thats taking data from the accessdatabase that plugwise makes.
But now I want to see the consumtion thats right now.
Like the example website plugwise made.
Can anybody tell me how to do that ?
Here is my test page
http://fiffi.gotdns.com/plugwise_test.php
Re: Help with presenting current consumtion on webpage
Posted: Mon Dec 20, 2010 3:39 pm
by LostDreamer
In the source software is a small webserver.
This webserver has XML files that show you the current power consumption.
LostDreamer
Re: Help with presenting current consumtion on webpage
Posted: Mon Dec 20, 2010 4:47 pm
by Bwired
agree with lostdreamer
lots of samples on this forum and in the plugwise directory.
check for example (old XMl)
domoticaforum.eu/viewtopic.php?f=23& ... amp;t=1373
or use the XML from the HS plugin from Rene.
i use this one now:
Code: Select all
<?xml version="1.0" encoding="iso-8859-1" standalone="yes"?>
<items type="array">
<% foreach Plugwise.Rooms %>
<%$room = .Name %>
<% foreach .Appliances %>
<%
if (.Module == null)
continue;
/if
if (.Room == null)
echo "No Room";
/if
$state=.StatusImageName.Replace("_locked","");
$state=$state.SubString($state.LastIndexOf("_")+1);
%>
<appliance>
<id><%=.Id%></id>
<device><![CDATA[<%=.Name%>]]></device>
<devicetype><%=.TypeText%></devicetype>
<locked><%=.DoNotSwitchOff%></locked>
<realstate><%=$state%></realstate>
<powerstate><%=.PowerState%></powerstate>
<powerusage><%=.PowerUsage%></powerusage>
<totalusage><%=.TotalUsage%></totalusage>
<moduleid><%=.Module.Id%></moduleid>
<macaddr><%=.Module.MacAddress%></macaddr>
<moduletype><%=.Module.TypeText%></moduletype>
<room><%=$room%></room>
<totalusagetoday><%=.TotalUsageToday%></totalusagetoday>
<isonline><%=.IsOnline%></isonline>
<lastseendate><%=.LastSeenDate%></lastseendate>
<lastseenseconds><%=.LastSeenSeconds%></lastseenseconds>
<firstseendate><%=.FirstSeenDate%></firstseendate>
</appliance>
<% /foreach %>
<% /foreach %>
</items>
Re: Help with presenting current consumtion on webpage
Posted: Wed Dec 28, 2011 3:25 pm
by Quart
Re: Help with presenting current consumtion on webpage
Posted: Wed Dec 28, 2011 6:46 pm
by Bwired
congrats!
exactly one year after
but looks good!
Re: Help with presenting current consumtion on webpage
Posted: Thu Dec 29, 2011 9:50 am
by Quart
Bwired wrote:congrats!
exactly one year after
but looks good!
I have had it running for a while now but forgot to write it here in this thread.

Re: Help with presenting current consumtion on webpage
Posted: Fri Dec 30, 2011 10:18 pm
by jrkalf
Do tell how did you solve this puppy?