Hi guys
i need a hand here
i am testing a api php on a RB450G which i can run in terminal the /system health print cmd and it outputs the voltage and CPU temperatura
now i am trying to export it in my api php
i am using the follwogin function
<div class="col-lg-3 col-xs-6">
<!-- small box-->
<div class="small-box bg-yellow">
<div class="inner">
<h3>System Health</h3>
<?php $ARRAY = $API->comm("/system/health/print");
$voltage = $ARRAY['0']['voltage']/1048576;
?>
<p>Voltage</p>
<p><?php echo " ".round($voltage,1)."V"; ?><sup style="font-size: 20px"></sup></p>
</div>
<div class="icon">
<i class="ion ion-stats-bars"></i>
</div>
But the output displays 0V
I am using a similar function which works
$ARRAY = $API->comm("/system/resource/print");
$ramtotal = $ARRAY['0']['total-memory']/1048576;
<?php echo " ".round($ramtotal,1)." MB"; ?><sup style="font-size: 20px"></sup> Total</p>
which displays the Total Memory Available on the system
Any help will be appreciated on how to get the Print of to display from Voltage and CPU temperature