add triggers with config using env vars

This commit is contained in:
Simon Vieille 2020-11-29 16:49:47 +01:00
parent 8075339945
commit 003feb5e62
Signed by: deblan
GPG Key ID: 03383D15A1D31745
4 changed files with 10 additions and 0 deletions

View File

@ -63,6 +63,10 @@ class HygrometryApiController extends AbstractController
6,
'DESC'
),
'triggers' => [
'min' => $min,
'max' => $max,
],
]
)
);

View File

@ -64,6 +64,10 @@ class TemperatureApiController extends AbstractController
6,
'DESC'
),
'triggers' => [
'min' => $min,
'max' => $max,
],
]
)
);

View File

@ -1,2 +1,3 @@
Date : {{ entity.date.format('d/m/Y H:i:s') }}
Niveau hygrométrique : {{ entity.value }}%
Déclancheurs : min={{ min }} max={{ max }}

View File

@ -1,2 +1,3 @@
Date : {{ entity.date.format('d/m/Y H:i:s') }}
Température : {{ entity.value }}°
Déclancheurs : min={{ min }} max={{ max }}