add initial project files.

This commit is contained in:
2020-06-09 16:02:25 +09:00
commit b692151385
22 changed files with 2851 additions and 0 deletions

14
templates/mail_alert.twig Normal file
View 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
View File

@@ -0,0 +1,9 @@
C407 温度監視 定期報告
{% for sensor in sensors %}
{{ include('mail_sensor.inc.twig') }}
{% endfor %}
--
{{ from.name }} <{{ from.email }}>
{{ url }}

View 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) }}