<h2>UPS Status</h2>

<div class="container-md">
    <div>
        <h2>Device Information</h2>
        <table class="table table-bordered nutTable">
            <tr>
                <td>Manufacturer:</td>
                <td><%= $nut_data->{'ups_data'}->{'device.mfr'} %></td>
            </tr>
            <tr>
                <td>Model:</td>
                <td><%= $nut_data->{'ups_data'}->{'device.model'} %></td>
            </tr>
            <tr>
                <td>Serial:</td>
                <td><%= $nut_data->{'ups_data'}->{'device.serial'} %></td>
            </tr>
            <tr>
                <td>Type:</td>
                <td><%= $nut_data->{'ups_data'}->{'device.type'} %></td>
            </tr>
        </table>
    </div>

    <br>

    <div>
        <h2>Battery Status</h2>
        <table class="table table-bordered nutTable">
            <tr>
                <td>Charge:</td>
                <td><%= $nut_data->{'ups_data'}->{'battery.charge'} %>%</td>
            </tr>
            <tr>
                <td>Runtime:</td>
                <td><%= sprintf("%.2f", $nut_data->{'ups_data'}->{'battery.runtime'} / 60) %> minutes</td>
            </tr>
            <tr>
                <td>Voltage:</td>
                <td><%= $nut_data->{'ups_data'}->{'battery.voltage'} %>V</td>
            </tr>
            <tr>
                <td>Type:</td>
                <td><%= $nut_data->{'ups_data'}->{'battery.type'} %></td>
            </tr>
        </table>
    </div>

    <br>

    <div>
        <h2>Input Power</h2>
        <table class="table table-bordered nutTable">
            <tr>
                <td>Voltage:</td>
                <td><%= $nut_data->{'ups_data'}->{'input.voltage'} %>V</td>
            </tr>
            <tr>
                <td>Nominal Voltage:</td>
                <td><%= $nut_data->{'ups_data'}->{'input.voltage.nominal'} %>V</td>
            </tr>
            <tr>
                <td>Sensitivity:</td>
                <td><%= $nut_data->{'ups_data'}->{'input.sensitivity'} %></td>
            </tr>
            <tr>
                <td>Transfer High:</td>
                <td><%= $nut_data->{'ups_data'}->{'input.transfer.high'} %>V</td>
            </tr>
            <tr>
                <td>Transfer Low:</td>
                <td><%= $nut_data->{'ups_data'}->{'input.transfer.low'} %>V</td>
            </tr>
        </table>
    </div>

    <br>

    <div>
        <h2>UPS Status</h2>
        <table class="table table-bordered nutTable">
            <tr>
                <td>Status:</td>
                <td><%= $nut_data->{'ups_data'}->{'ups.status'} %></td>
            </tr>
            <tr>
                <td>Load:</td>
                <td><%= $nut_data->{'ups_data'}->{'ups.load'} %>%</td>
            </tr>
            <tr>
                <td>Beeper:</td>
                <td><%= $nut_data->{'ups_data'}->{'ups.beeper.status'} %></td>
            </tr>
            <tr>
                <td>Firmware:</td>
                <td><%= $nut_data->{'ups_data'}->{'ups.firmware'} %></td>
            </tr>
            <tr>
                <td>Test Result:</td>
                <td><%= $nut_data->{'ups_data'}->{'ups.test.result'} %></td>
            </tr>
        </table>
    </div>
</div>