variables temperature telemetry switched

master
marcel 3 years ago
parent 404dc80932
commit eebdb7b508
  1. 24
      web-interface/telemetry.php

@ -17,14 +17,14 @@
# 0 = temperature outside
# 1 = humidity outside
# 2 = temperature small greenhouse
# 3 = humidity small greenhouse
# 4 = soil moisture small greenhouse
# 5 = soil moisture small greenhouse
# 6 = temperature large greenhouse
# 7 = humidity large greenhouse
# 8 = soil moisture large greenhouse
# 9 = soil moisture large greenhouse
# 2 = temperature large greenhouse
# 3 = humidity large greenhouse
# 4 = soil moisture large greenhouse
# 5 = soil moisture large greenhouse
# 6 = temperature small greenhouse
# 7 = humidity small greenhouse
# 8 = soil moisture small greenhouse
# 9 = soil moisture small greenhouse
$telemetry_data = array_map('str_getcsv', file("/home/marcel/ham/aprs_utils/aprs_log/latest_telemetry_PE1RXF-7.dat"));
?>
<div class="header">
@ -37,8 +37,8 @@
<div class="col-3 col-s-3 menu">
<ul>
<li><h3>Temperature buiten: <?php echo $telemetry_data[0][0] ?>&deg; C</h3></li>
<li><h3>Temperature kleine kas: <?php echo $telemetry_data[0][2] ?>&deg; C</h3></li>
<li><h3>Temperature grote kas: <?php echo $telemetry_data[0][6] ?>&deg; C</h3></li>
<li><h3>Temperature kleine kas: <?php echo $telemetry_data[0][6] ?>&deg; C</h3></li>
<li><h3>Temperature grote kas: <?php echo $telemetry_data[0][2] ?>&deg; C</h3></li>
</ul>
</div>
@ -60,8 +60,8 @@
<div class="col-3 col-s-12 menu">
<ul>
<li><h3>Luchtvochtigheid buiten: <?php echo $telemetry_data[0][1] ?> %</h3></li>
<li><h3>Luchtvochtigheid kleine kas: <?php echo $telemetry_data[0][3] ?> %</h3></li>
<li><h3>Luchtvochtigheid grote kas: <?php echo $telemetry_data[0][7] ?> %</h3></li>
<li><h3>Luchtvochtigheid kleine kas: <?php echo $telemetry_data[0][7] ?> %</h3></li>
<li><h3>Luchtvochtigheid grote kas: <?php echo $telemetry_data[0][3] ?> %</h3></li>
</ul>
</div>
</div>

Loading…
Cancel
Save