update
This commit is contained in:
@@ -203,14 +203,23 @@ if ($type == "BME280") {
|
||||
}
|
||||
|
||||
|
||||
if ($type == "table_mesurePM") {
|
||||
if ($type == "table_mesure") {
|
||||
$table=$_GET['table'];
|
||||
$limit=$_GET['limit'];
|
||||
$download=$_GET['download'];
|
||||
|
||||
$command = 'sudo /usr/bin/python3 /var/www/nebuleair_pro_4g/sqlite/read.py '.$table.' '.$limit;
|
||||
$output = shell_exec($command);
|
||||
echo $output;
|
||||
if ($download==="false") {
|
||||
$command = 'sudo /usr/bin/python3 /var/www/nebuleair_pro_4g/sqlite/read.py '.$table.' '.$limit;
|
||||
$output = shell_exec($command);
|
||||
echo $output;
|
||||
} else{
|
||||
$start_date=$_GET['start_date'];
|
||||
$end_date=$_GET['end_date'];
|
||||
$command = 'sudo /usr/bin/python3 /var/www/nebuleair_pro_4g/sqlite/read_select_date.py '.$table.' '.$start_date.' '.$end_date;
|
||||
$output = shell_exec($command);
|
||||
echo $output;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
# SARA R4 COMMANDS
|
||||
|
||||
Reference in New Issue
Block a user