Skip to content

Commit

Permalink
fix outside daily error
Browse files Browse the repository at this point in the history
  • Loading branch information
TrystanLea committed Nov 16, 2023
1 parent 58d2d82 commit fc8bb70
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/OpenEnergyMonitor/myheatpump/myheatpump.js
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ $('#placeholder').bind("plothover", function (event, pos, item) {

var outside_temp_str = "";
if (feeds["heatpump_outsideT"]!=undefined) {
if (data["heatpump_outsideT_daily"].length && data["heatpump_outsideT_daily"][z]!=undefined) {
if (data["heatpump_outsideT_daily"]!=undefined && data["heatpump_outsideT_daily"].length && data["heatpump_outsideT_daily"][z]!=undefined) {
let outsideT = data["heatpump_outsideT_daily"][z][1];
if (outsideT!=null) {
outside_temp_str = "Outside: "+outsideT.toFixed(1)+"°C<br>";
Expand Down
2 changes: 1 addition & 1 deletion apps/OpenEnergyMonitor/myheatpump/myheatpump.php
Original file line number Diff line number Diff line change
Expand Up @@ -269,4 +269,4 @@
config.name = "<?php echo $name; ?>";
config.db = <?php echo json_encode($config); ?>;
</script>
<script type="text/javascript" src="<?php echo $path; ?>Modules/app/apps/OpenEnergyMonitor/myheatpump/myheatpump.js?v=69"></script>
<script type="text/javascript" src="<?php echo $path; ?>Modules/app/apps/OpenEnergyMonitor/myheatpump/myheatpump.js?v=70"></script>

0 comments on commit fc8bb70

Please sign in to comment.