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

Functions

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

Variables

 $fridge_temp_value = -1
 
 $freezer_temp_value = -1
 
 $status
 
 $con = mysql_connect($server,$user,$password)
 
 $con_raspberry
 
 $sensorvals = array()
 
 $server ="mysql.felixaestheticus.net"
 
 $user ="e1702299"
 
 $password ="KVIDyY4I8f"
 
 else
 

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

$con = mysql_connect($server,$user,$password)
$con_raspberry
$freezer_temp_value = -1
$fridge_temp_value = -1

SmartHome Project - Developed by Tranquillum gauge2data.php Purpose: This Page helps to refresh parts of refrigerator and washing machine pages (used with ajax)

Author
Abdullah
Version
1.0 30/05/13

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

Variables

$password ="KVIDyY4I8f"
$sensorvals = array()
$server ="mysql.felixaestheticus.net"
$status
$user ="e1702299"
else