vedirect live view without button

This commit is contained in:
helgeerbe 2022-10-20 23:33:01 +02:00
parent cd219e4fa8
commit 48ef4c6c04
2 changed files with 146 additions and 162 deletions

View File

@ -8,180 +8,164 @@
<template v-else> <template v-else>
<div class="row gy-3"> <div class="row gy-3">
<div class="col-sm-3 col-md-2"> <div class="tab-content col-sm-12 col-md-12" id="v-pills-tabContent">
<div class="nav nav-pills row-cols-sm-1" id="v-pills-tab" role="tablist" <div class="card">
aria-orientation="vertical"> <div class="card-header text-white bg-primary d-flex justify-content-between align-items-center"
<button class="nav-link" :class="{
:id="'v-pills-vedirect-tab'" data-bs-toggle="pill" 'bg-danger': vedirectData.age_critical,
:data-bs-target="'#v-pills-vedirect'" type="button" role="tab" 'bg-primary': !vedirectData.age_critical,
aria-controls="'v-pills-vedirect'" aria-selected="true"> }">
Ve.Direct <div class="p-1 flex-grow-1">
</button> <div class="d-flex flex-wrap">
</div> <div style="padding-right: 2em;">
</div> {{ vedirectData.PID }}
</div>
<div class="tab-content col-sm-9 col-md-10" id="v-pills-tabContent"> <div style="padding-right: 2em;">
<div class="tab-pane fade show" Serial Number: {{ vedirectData.SER }}
:id="'v-pills-vedirect'" role="tabpanel" </div>
:aria-labelledby="'v-pills-vedirect-tab'" tabindex="0"> <div style="padding-right: 2em;">
<div class="card"> Firmware Number: {{ vedirectData.FW }}
<div class="card-header text-white bg-primary d-flex justify-content-between align-items-center" </div>
:class="{ <div style="padding-right: 2em;">
'bg-danger': vedirectData.age_critical, Data Age: {{ vedirectData.data_age }} seconds
'bg-primary': !vedirectData.age_critical,
}">
<div class="p-1 flex-grow-1">
<div class="d-flex flex-wrap">
<div style="padding-right: 2em;">
{{ vedirectData.PID }}
</div>
<div style="padding-right: 2em;">
Serial Number: {{ vedirectData.SER }}
</div>
<div style="padding-right: 2em;">
Firmware Number: {{ vedirectData.FW }}
</div>
<div style="padding-right: 2em;">
Data Age: {{ vedirectData.data_age }} seconds
</div>
</div> </div>
</div> </div>
</div> </div>
<div class="card-body"> </div>
<div class="row"> <div class="card-body">
<div class="col order-0"> <div class="row">
<div class="card" :class="{ 'border-info': true }"> <div class="col order-0">
<div class="card-header bg-info">Device Info</div> <div class="card" :class="{ 'border-info': true }">
<div class="card-body"> <div class="card-header bg-info">Device Info</div>
<table class="table table-striped table-hover"> <div class="card-body">
<thead> <table class="table table-striped table-hover">
<tr> <thead>
<th scope="col">Property</th> <tr>
<th style="text-align: right" scope="col">Value</th> <th scope="col">Property</th>
<th scope="col">Unit</th> <th style="text-align: right" scope="col">Value</th>
</tr> <th scope="col">Unit</th>
</thead> </tr>
<tbody> </thead>
<tr> <tbody>
<th scope="row">Load output state </th> <tr>
<td style="text-align: right">{{vedirectData.LOAD}}</td> <th scope="row">Load output state </th>
<td></td> <td style="text-align: right">{{vedirectData.LOAD}}</td>
</tr> <td></td>
<tr> </tr>
<th scope="row">State of operation </th> <tr>
<td style="text-align: right">{{vedirectData.CS}}</td> <th scope="row">State of operation </th>
<td></td> <td style="text-align: right">{{vedirectData.CS}}</td>
</tr> <td></td>
<tr> </tr>
<th scope="row">Tracker operation mode </th> <tr>
<td style="text-align: right">{{vedirectData.MPPT}}</td> <th scope="row">Tracker operation mode </th>
<td></td> <td style="text-align: right">{{vedirectData.MPPT}}</td>
</tr> <td></td>
<tr> </tr>
<th scope="row">Off reason </th> <tr>
<td style="text-align: right">{{vedirectData.OR}}</td> <th scope="row">Off reason </th>
<td></td> <td style="text-align: right">{{vedirectData.OR}}</td>
</tr> <td></td>
<tr> </tr>
<th scope="row">Error code </th> <tr>
<td style="text-align: right">{{vedirectData.ERR}}</td> <th scope="row">Error code </th>
<td></td> <td style="text-align: right">{{vedirectData.ERR}}</td>
</tr> <td></td>
<tr> </tr>
<th scope="row">Day sequence number (0..364) </th> <tr>
<td style="text-align: right">{{vedirectData.HSDS.v}}</td> <th scope="row">Day sequence number (0..364) </th>
<td>{{vedirectData.HSDS.u}}</td> <td style="text-align: right">{{vedirectData.HSDS.v}}</td>
</tr> <td>{{vedirectData.HSDS.u}}</td>
</tbody> </tr>
</table> </tbody>
</div> </table>
</div> </div>
</div> </div>
<div class="col order-1"> </div>
<div class="card" :class="{ 'border-info': false }"> <div class="col order-1">
<div class="card-header">Battery</div> <div class="card" :class="{ 'border-info': false }">
<div class="card-body"> <div class="card-header">Battery</div>
<table class="table table-striped table-hover"> <div class="card-body">
<thead> <table class="table table-striped table-hover">
<tr> <thead>
<th scope="col">Property</th> <tr>
<th style="text-align: right" scope="col">Value</th> <th scope="col">Property</th>
<th scope="col">Unit</th> <th style="text-align: right" scope="col">Value</th>
</tr> <th scope="col">Unit</th>
</thead> </tr>
<tbody> </thead>
<tr> <tbody>
<th scope="row">Battery voltage </th> <tr>
<td style="text-align: right">{{formatNumber(vedirectData.V.v)}}</td> <th scope="row">Battery voltage </th>
<td>{{vedirectData.V.u}}</td> <td style="text-align: right">{{formatNumber(vedirectData.V.v)}}</td>
</tr> <td>{{vedirectData.V.u}}</td>
<tr> </tr>
<th scope="row">Battery current </th> <tr>
<td style="text-align: right">{{formatNumber(vedirectData.I.v)}}</td> <th scope="row">Battery current </th>
<td>{{vedirectData.I.u}}</td> <td style="text-align: right">{{formatNumber(vedirectData.I.v)}}</td>
</tr> <td>{{vedirectData.I.u}}</td>
</tbody> </tr>
</table> </tbody>
</div> </table>
</div> </div>
</div> </div>
<div class="col order-2"> </div>
<div class="card" :class="{ 'border-info': false }"> <div class="col order-2">
<div class="card-header">Panel</div> <div class="card" :class="{ 'border-info': false }">
<div class="card-body"> <div class="card-header">Panel</div>
<table class="table table-striped table-hover"> <div class="card-body">
<thead> <table class="table table-striped table-hover">
<tr> <thead>
<th scope="col">Property</th> <tr>
<th style="text-align: right" scope="col">Value</th> <th scope="col">Property</th>
<th scope="col">Unit</th> <th style="text-align: right" scope="col">Value</th>
</tr> <th scope="col">Unit</th>
</thead> </tr>
<tbody> </thead>
<tr> <tbody>
<th scope="row">Panel voltage </th> <tr>
<td style="text-align: right">{{formatNumber(vedirectData.VPV.v)}}</td> <th scope="row">Panel voltage </th>
<td>{{vedirectData.VPV.u}}</td> <td style="text-align: right">{{formatNumber(vedirectData.VPV.v)}}</td>
</tr> <td>{{vedirectData.VPV.u}}</td>
<tr> </tr>
<th scope="row">Panel power </th> <tr>
<td style="text-align: right">{{formatNumber(vedirectData.PPV.v)}}</td> <th scope="row">Panel power </th>
<td>{{vedirectData.PPV.u}}</td> <td style="text-align: right">{{formatNumber(vedirectData.PPV.v)}}</td>
</tr> <td>{{vedirectData.PPV.u}}</td>
<tr> </tr>
<th scope="row">Yield total (user resettable counter) </th> <tr>
<td style="text-align: right">{{formatNumber(vedirectData.H19.v)}}</td> <th scope="row">Yield total (user resettable counter) </th>
<td>{{vedirectData.H19.u}}</td> <td style="text-align: right">{{formatNumber(vedirectData.H19.v)}}</td>
</tr> <td>{{vedirectData.H19.u}}</td>
<tr> </tr>
<th scope="row">Yield today </th> <tr>
<td style="text-align: right">{{formatNumber(vedirectData.H20.v)}}</td> <th scope="row">Yield today </th>
<td>{{vedirectData.H20.u}}</td> <td style="text-align: right">{{formatNumber(vedirectData.H20.v)}}</td>
</tr> <td>{{vedirectData.H20.u}}</td>
<tr> </tr>
<th scope="row">Maximum power today </th> <tr>
<td style="text-align: right">{{formatNumber(vedirectData.H21.v)}}</td> <th scope="row">Maximum power today </th>
<td>{{vedirectData.H21.u}}</td> <td style="text-align: right">{{formatNumber(vedirectData.H21.v)}}</td>
</tr> <td>{{vedirectData.H21.u}}</td>
<tr> </tr>
<th scope="row">Yield yesterday </th> <tr>
<td style="text-align: right">{{formatNumber(vedirectData.H22.v)}}</td> <th scope="row">Yield yesterday </th>
<td>{{vedirectData.H22.u}}</td> <td style="text-align: right">{{formatNumber(vedirectData.H22.v)}}</td>
</tr> <td>{{vedirectData.H22.u}}</td>
<tr> </tr>
<th scope="row">Maximum power yesterday </th> <tr>
<td style="text-align: right">{{formatNumber(vedirectData.H23.v)}}</td> <th scope="row">Maximum power yesterday </th>
<td>{{vedirectData.H23.u}}</td> <td style="text-align: right">{{formatNumber(vedirectData.H23.v)}}</td>
</tr> <td>{{vedirectData.H23.u}}</td>
</tbody> </tr>
</table> </tbody>
</div> </table>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</template> </template>

Binary file not shown.