SmartHome
 All Data Structures Files Functions Variables
washing_machine1.php File Reference

Functions

 selectdb ($dbname, $connection)
 
 getDetails ($devid)
 

Variables

 PHP
 
if(!$fgmembersite->CheckLogin()) $bgtime =time()
 
 $water_temp = 0
 
 $setting_water_temp
 
 $setting_program_info
 
 $status
 
 $setting_status
 
 $power_cons
 
 $stage_info
 
 $program_info
 
 $wash_load
 
 $spin_speed
 
 $time_remained
 
 $con = mysql_connect($server,$user,$password)
 
 $con_raspberry
 
 $sensorvals = array()
 
 $server ="mysql.felixaestheticus.net"
 
 $user ="e1702299"
 
 $password ="KVIDyY4I8f"
 
< labelfor="TEXTBOX0_ID">
< fontsize="2"> kWh</label >
</font >< BR ></br > Time 
Remained
 

Function Documentation

getDetails (   $devid)

getDetails function (for a given device id it gets the details such as status, power consumption ..etc)

Parameters
string$devid
Returns
int $i
selectdb (   $dbname,
  $connection 
)

selectdb function

Parameters
string$dbname
string$connection

Variable Documentation

if (!$fgmembersite->CheckLogin()) $bgtime =time()
$con = mysql_connect($server,$user,$password)
$con_raspberry
$password ="KVIDyY4I8f"
$power_cons
$program_info
$sensorvals = array()
$server ="mysql.felixaestheticus.net"
$setting_program_info
$setting_status
$setting_water_temp
$spin_speed
$stage_info
global $status
$time_remained
$user ="e1702299"
$wash_load
$water_temp = 0

This Page Shows the current status of a washing machine and the user can control the settings of the home appliance.

Variables

PHP

SmartHome Project - Developed by Tranquillum washing_machine1.php Purpose: This Page Shows the current status and the settings of a washing machine

Author
Abdullah
Version
1.0 30/05/13

Check the login (if the user is not logged in then redirect to the login page)

<labelfor="TEXTBOX0_ID"><fontsize="2"> kWh</label></font><BR></br> Time Remained
Initial value:
=
<INPUT type="text" id="time_remained" value="<?PHP global $time_remained; echo($time_remained); ?>" disabled="disabled" style="width:80px; text-align:center">
<label for="time_remained"> <font size="2"> </label></font><BR>
</br>
<script>
var water_temp=<?php echo "'" . $water_temp . "'"