add initial project files.
This commit is contained in:
14
templates/mail_alert.twig
Normal file
14
templates/mail_alert.twig
Normal file
@@ -0,0 +1,14 @@
|
||||
C407 温度監視 警告
|
||||
|
||||
警告温度に到達しました。
|
||||
許容範囲({{ '%5.2f'|format(range.lower) }} 〜 {{ '%5.2f'|format(range.upper) }} ℃)外の温度です。
|
||||
|
||||
C407 サーバ室の環境を確認してください。
|
||||
|
||||
{% for sensor in sensors %}
|
||||
{{ include('mail_sensor.inc.twig') }}
|
||||
{% endfor %}
|
||||
|
||||
--
|
||||
{{ from.name }} <{{ from.email }}>
|
||||
{{ url }}
|
9
templates/mail_info.twig
Normal file
9
templates/mail_info.twig
Normal file
@@ -0,0 +1,9 @@
|
||||
C407 温度監視 定期報告
|
||||
|
||||
{% for sensor in sensors %}
|
||||
{{ include('mail_sensor.inc.twig') }}
|
||||
{% endfor %}
|
||||
|
||||
--
|
||||
{{ from.name }} <{{ from.email }}>
|
||||
{{ url }}
|
6
templates/mail_sensor.inc.twig
Normal file
6
templates/mail_sensor.inc.twig
Normal file
@@ -0,0 +1,6 @@
|
||||
--- センサー #{{ sensor.id }} ---
|
||||
最新測定日時:{{ sensor.date|date('Y-m-d H:i:s T') }}
|
||||
最新温度: {{ '%5.2f'|format(sensor.latest) }} ℃
|
||||
平均/日: {{ '%5.2f'|format(sensor.average) }} ℃
|
||||
最高値/日: {{ '%5.2f'|format(sensor.max) }} ℃
|
||||
最低値/日: {{ '%5.2f'|format(sensor.min) }} ℃
|
Reference in New Issue
Block a user