feat: Mise à jour automatique de staging

This commit is contained in:
2022-01-31 08:59:01 +01:00
parent b632f0f7a1
commit cb99e8cf4b
4 changed files with 75 additions and 6 deletions

View File

@ -2,6 +2,7 @@
{{ $lastDayData := $json.overview.lastDayData.energy }}
{{ $lastMonthData := $json.overview.lastMonthData.energy }}
{{ $lifeTimeData := $json.overview.lifeTimeData.energy }}
{{ $lastUpdateTime := $json.overview.lastUpdateTime }}
<table class="monitoring">
<tr>
<th colspan="3">Production Greyzolon Duluth</th>
@ -12,6 +13,6 @@
<td>Production totale<strong>{{ lang.NumFmt 2 (div $lifeTimeData 1000000) "- . ," }} MWh</strong></td>
</tr>
<tr>
<td class="date" colspan="3">{{ $json.overview.lastUpdateTime | time.Format ":date_medium" }}</td>
<td class="date" colspan="3">{{ $lastUpdateTime | time.Format ":date_medium" }} à {{ replace ($lastUpdateTime | time.Format ":time_short") ":" "h" }}</td>
</tr>
</table>