adding more graphs to wview

25 views
Skip to first unread message

vds

unread,
Nov 20, 2009, 1:23:24 PM11/20/09
to wview
wview's databases and graphs are (obviously) outdoor-centric, but the
VP2 also generates information for the weather inside the house. I
was thinking of trying to add something to generate inside temperature
+humidity graphs and perhaps similar history/hi-lo type databases for
the inside data. Has anybody done this yet ? If not, would it be a
big deal to accomplish ? Without looking it almost seems like a
search+replace thing based on the existing databases and daemons.
Thoughts ?

mteel

unread,
Nov 20, 2009, 1:47:44 PM11/20/09
to wview
This has already been anticipated. The file images-user.c is the place
to put user-defined image routines. I think inside temp is the
example. The User Manual addresses this - search for images-user. The
archive database stores inside temperature and humidity (if supported
by your weather station).

Mark

Luis Rosety

unread,
Nov 20, 2009, 5:01:33 PM11/20/09
to wv...@googlegroups.com
As I said before, almost all values you need are in parameterlist.txt.
I converted it into parameterlist.php.
You have for example <!--insideTemp--> and <!--insideHumidity-->
In my php file these lines are:

$insideTemp = <!--insideTemp-->;
$insideHumidity = <!--insideHumidity-->;

Since wview replaces the <!--...--> names with their corresponding
values, you get a PHP file containing the whole set of variables
updated each time wview generates it.
For example, after generation, these two lines are converted to something like:

$insideTemp = 23.5;
$insideHumidity = 54;

Then, the only thing you need is to include this file into your pages
and use the PHP varialbles as you want.

Luis Rosety


2009/11/20 mteel <mtee...@gmail.com>:

Graham Eddy

unread,
Nov 21, 2009, 12:44:19 AM11/21/09
to wv...@googlegroups.com
if the "inside" temperature is your home, you might want to consider
carefully the security aspect of publishing this for all to know - if
it's cold outside and your house is cold inside, burglars could be
interested
------------------------------------------------------------------------
*Graham Eddy*

Luis Rosety

unread,
Nov 21, 2009, 3:09:17 AM11/21/09
to wv...@googlegroups.com
You are perfectly right.
I was considering at first to add this information to my web page but
then I saw it as a security issue.
Nevertheless, I am still thinking of having it on a hidden
password-protected page.

2009/11/21 Graham Eddy <graha...@gmail.com>:
Reply all
Reply to author
Forward
0 new messages