SmartHome
|
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" | |
getDetails | ( | $devid) |
getDetails function (for a given device id it gets the details such as status, power consumption ..etc)
string | $devid |
selectdb | ( | $dbname, | |
$connection | |||
) |
selectdb function
string | $dbname | |
string | $connection |
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
Check the login (if the user is not logged in then redirect to the login page)