Skip to content
Snippets Groups Projects
Commit d53836b2 authored by jkerdreu's avatar jkerdreu
Browse files

Added luxmeter


git-svn-id: https://redmine.imt-atlantique.fr/svn/xaal/code/Python/branches/0.7@2594 b32b6428-25c9-4566-ad07-03861ab6144f
parent a9acf446
Branches
No related tags found
No related merge requests found
<luxmeter>
<span class="luxmeter">
<span if={value} class="illuminance">{ value }&nbsp;lx</span>
</span>
<script>
this.addr = opts.xaal_addr;
this.value = null;
receive(data) {
this.value = data['attributes']['illuminance'];
this.update();
}
</script>
<style>
.illuminance {
font-weight: bold;
color : var(--color1);
align: center;
}
</style>
</luxmeter>
......@@ -44,6 +44,13 @@
</%def>
<%def name="luxmeter(addr)">
<a href="./warp10/graph/${addr}">
<div data-is="luxmeter" xaal_addr=${addr}></div>
</a>
</%def>
<%def name="motion(addr)">
<div data-is="motion" xaal_addr=${addr}></div>
</%def>
......@@ -82,7 +89,9 @@
if type_.startswith('co2meter.') : return 'co2meter'
if type_.startswith('motion.') : return 'motion'
if type_.startswith('door.') : return 'door'
if type_.startswith('contact.') : return 'contact'
if type_.startswith('contact.') : return 'contact'
if type_.startswith('luxmeter.') : return 'luxmeter'
return 'generic'
%>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment