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

Functions

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

Variables

 PHP
 
if(!$fgmembersite->CheckLogin()) $bgtime =time()
 
 $temp_value = -1
 
 $freezer_temp_value = -1
 
 $setting_temp_value = 4
 
 $setting_freezer_temp_value = -15
 
 $status
 
 $setting_status
 
 $power_cons
 
 $con = mysql_connect($server,$user,$password)
 
 $con_raspberry
 
 $sensorvals = array()
 
 $server ="mysql.felixaestheticus.net"
 
 $user ="e1702299"
 
 $password ="KVIDyY4I8f"
 

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
$freezer_temp_value = -1
$password ="KVIDyY4I8f"
$power_cons
$sensorvals = array()
$server ="mysql.felixaestheticus.net"
$setting_freezer_temp_value = -15
$setting_status
$setting_temp_value = 4
global $status
$temp_value = -1

Variables

$user ="e1702299"
PHP

SmartHome Project - Developed by Tranquillum refrigerator.php Purpose: This Page shows the current status and control the settings of a refrigerator

Author
Abdullah
Version
1.0 30/05/13

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