{% from 'macros/macros.html' import style_class_greyscale %} {#.tile-enerpi_data-power {#} {# background-image: radial-gradient(farthest-corner at 70% 70%, rgba(12, 187, 67, 0.83), rgba(55, 245, 119, 0.27));}#} {#.tile-enerpi_data-power-text { color: #10371a; }#} {#.tile-enerpi_data-kWh {#} {# background-image: radial-gradient(farthest-corner at 70% 70%, rgba(140, 39, 211, 0.83), rgba(191, 160, 245, 0.27));}#} {#.tile-enerpi_data-kWh-text { color: #2c1037; }#} {#.tile-enerpi_data-ldr {#} {# background-image: radial-gradient(farthest-corner at 70% 70%, rgba(244, 216, 63, 0.83), rgba(219, 221, 13, 0.33));}#} {#.tile-enerpi_data-ldr-text { color: #333718; }#} {% macro monitor_tile_stream(title, type_data, mag, unit, glyp, c1, c2) %}
{{ unit }}
{% else %} {{ title }}Time | Raw MSG | {% for s in data_monitor['sensors'] %}{{ s['description'] }} ({{ s['unit'] }}) | {#Power (W) | #} {#LDR (%) | #} {#nº samples | #} {#noise | #} {% endfor %}|||||
---|---|---|---|---|---|---|---|---|---|---|---|
{{ sample['ts'].strftime('%H:%M:%S') }} | {{ sample['msg'] }} | {% for s in data_monitor['sensors'] %} {% if s['is_rms'] %}{{ sample[s['name']]|int }} | {% else %}{{ (sample[s['name']] * 100)|round(1)}} | {% endif %} {#Power (W) | #} {#LDR (%) | #} {#nº samples | #} {#noise | #} {% endfor %} {#{{ sample['power']|int }} | #} {#{{ (sample['ldr'] * 100)|round(1)}} | #} {#{{ sample['ref']|int }} | #} {#{{ sample['noise'] }} | #}
{{ sample['ts'].strftime('%H:%M:%S') }} - {{ sample }}
#} {# {% endfor %}#}