Web Interface Demo

Hallo,

vielen Dank an euch alle, bei mir funktioniert es mit dem PDA und dem Simple Web Interface nun wirklich wunderbar!
Die Dateien habe ich aus dem angehängten Zip Archiv von tommi genommen, da die orginalen anscheinend nicht mehr verfügbar sind. Eventuell sollte man diese finde ich mal wieder bereitstellen, auch wenn das WIIPS von torro natürlich meilenweit besser ist als das „alte“ Simple Web Interface. Allerdings bin ich der Meinung, dass es für manche Aufgabengebiete einfach schon zu umfangreich geworden ist und somit das „alte“ Interface besser für gewisse Dinge wie zB. Handy, PDA geeignet ist…

Viele Grüße

Akio

Hallo,

Ich hab mich heute auch mal rangesetzt und das Web Interface Demo angeschaut. Hat das jemand in abgewandelter Form im Einsatz?

Kann man das event. Live ansehen.
Mich würde interessieren, wie man damit Temperaturen schalten kann, und welche Ideen ihr eingebracht habt.

Gruss René

Benutz doch das WIIPS. Das gibt es hier:

http://www.ipsymcon.de/~torro/download.html

paresy

…und ich wollt es noch dazu schreiben :slight_smile:

Das WIIPS ist mir zu überdimensioniert, nur um mir ein paar Werte von unterwegs anzusehen oder eine kleine Aktion durchzuführen.

Als Übersicht @home habe ich es auch laufen, aber es ist nicht gerade für den PDA geeignet.

Ausserdem bin ich etwas freier in der Gestaltung meiner Übersicht :smiley:

Gruss René

Wenn es dir etwas ausmacht selber deine seiten zu schreiben:
http://brua.gallon.tzo.com:8000
könnte man so gestallten das einige werte änderbar sind… und gleich kleiner machen das dein pda es hinbekommt.


<?

 //CONFIGURATION START
 //------------------------------------------------------------------------------
 $ipaddress = "http://brua.gallon.tzo.com:8080"; //nötig fürs weiterleitungs script

 //FS20 Schalten
 $fs20tx=Array(
		//NAME               INSTANCEID   STATUS VARIABLE [nur boolean]
		Array("bureaulamp",   33103,       "vliv_lamp_bureau"),
		);

 //Irgendeine Status Variable
 $status = Array(
                //    NAME          VARIABLE      TYPE [boolean|integer|float|string]  POSTFIX
		Array("Room temperature", "vliv_temp_ist", "float",                             "°C")
	);


 //CONFIGURATION END
 //------------------------------------------------------------------------------

?>

<html>
<head>
<title>Domotica in GGGss' House</title>
<!-- IPSwitch PPC/PALM WebInterface -->
<link href="style.css" rel="stylesheet" type="text/css">

<?
if(isset($action)) {
 if($action=="solltemp") {	
 	//SetValueFloat("IPS_SOLL_Temperatur", floatval($value));	// *** HIER
 } elseif($action=="switchmode") {
   settype($instanceid, "integer");
   settype($mode, "boolean");
   FS20_SwitchMode($instanceid,$mode); //$mode
 }
?>

<script type="text/javascript">
<!--
function killparams() {
 window.location.href = "http://brua.gallon.tzo.com:8080/index.php";
}
//-->
</script>
</head>
<body leftmargin=0 topmargin=0 rightmargin=0 onload=killparams()>
<center><font size="2">Thank you ... <BR><BR>I now know that you have been messing with my house. ;-)<br>You couldn't resist hey?<br><br>Be welcome to look around<br>Fredje.<br><br>Click <a href="index.php">here</a> to continue.</font>
</body>
</html>

<?
exit;
}
?>

</head>
<body leftmargin=0 topmargin=0 rightmargin=0>

<table width=100% cellspacing=0 cellpadding=0>
<tr>
<td class="bbig" width=18><a href=index.php><img src=ips.gif alt="IPSwitch Logo" border=0></a></td>
<td class="bbig"><? echo date("d.m.y @ H:i"); ?></td>
<td class="bbig" width=18><img src=config.gif alt="Configration"></td>
<td class="bbig" width=18><img src=help.gif alt="Help"></td>
<td class="bbig" width=18><img src=logout.gif alt="Logout"></td>
</tr>
</table>

<table width=100%>
<tr><td bgcolor=#C8C8C8><!-- SPACER --></td></tr>
<tr><td><a href="index.php">Home</a></td></tr>
<tr><td bgcolor=#C8C8C8><!-- SPACER --></td></tr>
</table>

<br>

<table width=90% align=center>
<tr>
<td width=40 align=center><img src=help.gif></td>
<td><b>Status</b></td>
</tr>
<tr><td bgcolor=#C8C8C8 colspan=2><!-- SPACER --></td></tr>
<?

 foreach($status as $rx) {

?>

<tr>
<td width=40 align=center><img src=modules.gif></td>
<td>
<? 

 switch($rx[2]) {
  case "boolean":
   if(GetValueBoolean($rx[1])) {
    echo $rx[0].": "."TRUE".$rx[3]; 
   } else {
    echo $rx[0].": "."FALSE".$rx[3]; 
   }
   break;
  case "integer":
   echo $rx[0].": ".GetValueInteger($rx[1]).$rx[3]; 
   break;
  case "float":
   echo $rx[0].": ".number_format(GetValueFloat($rx[1]), 2).$rx[3]; 
   break;
  case "string":
   echo $rx[0].": ".GetValueString($rx[1]).$rx[3]; 
   break;
 }


?>
</td></tr><tr>
<td></td><td class="label" align="left"><font size="3"><B>Heating : <a href="temp.php">All about the current heating conditions. (graphical overview)</a></B></font>
</tr>
<tr><td></td><td align="middle"><a href="temp.php"><img src="images/trliv_temp2h.png" alt="" width="481" height="168" border="0"></a>
<?

 }

?>
</table>


<br>

<table width=90% align=center>
<tr>
<td width=40 align=center><img src=config.gif></td>
<td><b>Switches</b></td>
</tr>
<tr><td bgcolor=#C8C8C8 colspan=2><!-- SPACER --></td></tr>
<tr><td colspan=2><table width=100% border=0>
<?

 foreach($fs20tx as $tx) {

 echo "<tr>";
 echo "<td width=40 align=center><img src=events.gif></td>";
 echo "<td width=10%>$tx[0]:</td>";
 if (GetValueBoolean($tx[2])) {
  echo "<td width=90% align=right>[ <a href=?action=switchmode&mode=1&instanceid=$tx[1]><b>ON</b></a> | <a href=?action=switchmode&mode=0&instanceid=$tx[1]>OFF</a> ]</td>";
 } else {
  echo "<td width=90% align=right>[ <a href=?action=switchmode&mode=1&instanceid=$tx[1]>ON</a> | <a href=?action=switchmode&mode=0&instanceid=$tx[1]><b>OFF</b></a> ]</td>";
 }
 echo "</td></tr>";

 }

?>
</table>
</td>
</tr>
</table>

</body>
</html>


hier meine index.php
und sehe mal nach neben ** HIER
Hier könntest du die beliebige variabelen änderen lassen.

Grusse,

Hallo GGGss,

danke, aber das Script verwende ich ja, mir geht es ja darum auch Temperaturen zu verändern, da finde ich auf deinen Seiten nix.

Mich würde aber auch interessieren, wie du das ändern der Heizungsysmbole per php gelöst hast (wenn die Position des Stellantriebes sich ändert oder 0 ist) .

Vielen Dank und Gruß René

Rene,

Hier mein basement.php : http://brua.gallon.tzo.com:8000/basement.php


<html>

	<head>
		<title>Basement</title>
		<!-- IPSwitch PPC/PALM WebInterface -->
		<link href="style.css" type="text/css" rel="stylesheet">
		<meta http-equiv="refresh" content="600">
	</head>

	<body leftmargin="0" topmargin="0" rightmargin="0">
		<table width="100%" cellspacing="0" cellpadding="0">
			<tr>
				<td class="bbig" width="18"><a href="index.php"><img src="ips.gif" alt="IPSwitch Logo" border="0"></a></td>
				<td class="bbig"><? echo date("d.m.y @ H:i"); ?></td>
				<td class="bbig" width="18"><img src="config.gif" alt="Configration"></td>
				<td class="bbig" width="18"><img src="help.gif" alt="Help"></td>
				<td class="bbig" width="18"><img src="logout.gif" alt="Logout"></td>
			</tr>
		</table>
		<table width="100%">
			<tr>
				<td bgcolor="#C8C8C8"><!-- SPACER --></td>
			</tr>
			<tr>
				<td><a href="index.php"> Home </a> · <a href="temp.php"> Heating </a> · Basement</td>
			</tr>
			<tr>
				<td bgcolor="#C8C8C8"><!-- SPACER --></td>
			</tr>
		</table>
		<br>
		<?	$sl1 = GetValueFloat("vkeu_temp_perc");
			if ($sl1>0) $sl1= "1a";
		?>
		<table width="90%" border="0" cellspacing="2" cellpadding="0">
<tr><td align="middle"> Now </td><td align="middle">outside</td></tr>			
<tr class="label">
				<td align="middle"><? 				$di = sprintf("%08b",VELLEUSB_ReadDigital(55413));
				$pomp1 = "";
				$pomp2 = "";
				$brander = "";
				$net = "";
				if(substr($di,4,1)==0) $pomp2 = "1";
				if(substr($di,5,1)==0) $pomp1 = "1";
				if(substr($di,6,1)==0 && substr($di,7,1) == 0) $brander = "1";
				if(substr($di,7,1)==0) $net = "1";
				?>
					<table class="gfx" width="400" border="0" cellspacing="0" cellpadding="0">
						<tr>
							<td><?echo "out : ".number_format(GetValueFloat("vkel_ketel_tout"),1);?>°C</td>
							<td align="right"><?echo "<img src=\"images/pomp1_$pomp1.gif\"";?> alt="" height="22" width="33" border="0"></td>
							<td align="left"><?echo "<img src=\"images/pomp2_$pomp2.gif\"";?> alt="" height="22" width="33" border="0"></td>
							<td><?echo "out : ".number_format(GetValueFloat("vkel_ketel_tout"),1);?>°C</td>
						</tr>
						<tr>
							<td><?echo "in : " . number_format(GetValueFloat("vkel_ketel_tin"),1);?>°C</td>
							<td colspan="2" align="center"><?echo "<img src=\"images/brandernet_$net.gif\"";?> alt="" height="11" width="66" border="0"></td>
							<td><?echo "in : n/a";?>°C</td>
						</tr>
						<tr>
							<td></td>
							<td colspan="2" align="center"><?echo "<img src=\"images/brander_$brander.gif\"";?> alt="" height="31" width="66" border="0"></td>
							<td></td>
						</tr>
					</table>
				</td>
				<td align="middle">
<table class="label" width="200" border="0" cellspacing="0" cellpadding="0">
						<tr>
							<td rowspan="3"><img src="images/trout_temp.png" alt="outside temp" height="60" width="10" border="0"></td>
							<td></td>
							<td>temp</td>
							<td align="right"><?echo number_format(GetValueFloat("vout_temp"),1);?>°C</td>
						</tr>
						<tr>
							<td rowspan="2"></td>
							<td>press</td>
							<td align="right"><?echo number_format(GetValueFloat("vout_press"),0);?>mB</td>
						</tr>
						<tr>
							<td>humm</td>
							<td align="right"><?echo number_format(GetValueFloat("vout_humm"),0);?>%</td>
						</tr>
					</table>
				</td>
			</tr>
			<tr>
				<td align="middle" colspan="2"><BR>Last 2 hrs graph<BR>	<img src="images/trkel_temp2h.png" alt="" height="168" width="481" border="0"></td>
			<tr>
				<td align="middle" colspan="2"><BR>Last days graph<BR> <img src="images/trkel_tempday.png" alt="" height="168" width="481" border="0"></td>
			</tr>
			<tr>
				<td align="middle" colspan="2"><BR>Last months graph<BR> <img src="images/trkel_tempmonth.png" alt="" height="168" width="481" border="0"></td>
			</tr>
		</table>
	</body>

</html>

das ding mit dem brenner steckt hier:
„<img src=„images/brander_$brander.gif““;?>
$brander = niks dan:
$brander = an = 1 dan der hier :

Die stell-positionen kommen oder werden uber meinem rrd-tool angefertigd:

(Weil es ‚live‘ ist, gibt es nur etwas zu sehen wenn die ventile tatsächlich geoffnent sein…

Hallo GGGss,

ich denk ich habs gerafft.

Könnte man das dann auch in dieser Art lösen?



$H_Percent=GetValueFloat("CZ_Heating_Act_Pos");

switch ($H_Percent){
case 0-15 :
     $Heating_percent_img ="img/0.gif";
     break;
case 16-25:
     $Heating_percent_img ="img/15.gif";
     break;
case 26-50:
     $Heating_percent_img ="img/26.gif";
     break;

usw...

Danke schön.

René