eventSignalEmix.xml 1.4 KB

1234567891011121314
  1. {% if event_signal.measurement %}
  2. <{% if event_signal.measurement.name == 'customUnit' %}oadr{% else %}power{% endif %}:{{ event_signal.measurement.name }} xmlns:scale="http://docs.oasis-open.org/ns/emix/2011/06/siscale" xmlns:power="http://docs.oasis-open.org/ns/emix/2011/06/power" >
  3. <{% if event_signal.measurement.name == 'customUnit' %}oadr{% else %}power{% endif %}:itemDescription>{{ event_signal.measurement.description }}</{% if event_signal.measurement.name == 'customUnit' %}oadr{% else %}power{% endif %}:itemDescription>
  4. <{% if event_signal.measurement.name == 'customUnit' %}oadr{% else %}power{% endif %}:itemUnits>{{ event_signal.measurement.unit }}</{% if event_signal.measurement.name == 'customUnit' %}oadr{% else %}power{% endif %}:itemUnits>
  5. <scale:siScaleCode>{{ event_signal.measurement.scale }}</scale:siScaleCode>
  6. {% if event_signal.measurement.power_attributes %}
  7. <power:powerAttributes>
  8. <power:hertz>{{ event_signal.measurement.power_attributes.hertz }}</power:hertz>
  9. <power:voltage>{{ event_signal.measurement.power_attributes.voltage }}</power:voltage>
  10. <power:ac>{{ event_signal.measurement.power_attributes.ac|booleanformat }}</power:ac>
  11. </power:powerAttributes>
  12. {% endif %}
  13. </{% if event_signal.measurement.name == 'customUnit' %}oadr{% else %}power{% endif %}:{{ event_signal.measurement.name }}>
  14. {% endif %}