Skip to content

Commit

Permalink
Merge pull request pihome-shc#333 from twa127/master
Browse files Browse the repository at this point in the history
Graphs fix for boiler on time pihome-shc#330
  • Loading branch information
pihome-shc authored Jul 15, 2020
2 parents cb0e69a + 8488387 commit 725cfd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chart_load.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
$zonesw = $zonesw."{label: \"".$lang['graph_outsie']."\", data: ".json_encode($weather_c).", color: rainbow(".$count.",".++$counter.") }, \n";

//background-color for boiler on time
$query="select start_datetime, stop_datetime, type from zone_log_view_24h where status= '1';";
$query="select start_datetime, stop_datetime, type from zone_log_view where status= '1' AND start_datetime > current_timestamp() - interval 24 hour;";
$results = $conn->query($query);
$count=mysqli_num_rows($results);
$warn1 = '';
Expand Down

0 comments on commit 725cfd6

Please sign in to comment.