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

 

git-svn-id: https://redmine.imt-atlantique.fr/svn/xaal/code/Python/branches/fork@1771 b32b6428-25c9-4566-ad07-03861ab6144f
parent 87e2b634
No related branches found
No related tags found
No related merge requests found
......@@ -21,12 +21,5 @@
// obj = this.attributes
// Object.keys(obj).map((e) => console.log(`key=${e} value=${obj[e]}`))
}
</script>
<style>
</style>
</generic-attrs>
<hygrometer>
<span class="hygrometer">
<span class="humidity">{ humidity } %</span>
<span class="humidity">{ humidity }&nbsp;%</span>
</span>
<script>
this.addr = opts.xaal_addr;
receive(data) {
this.humidity = data['attributes']['humidity'];
this.update();
}
</script>
<style>
.humidity {
font-weight: bold;
color : #00bbd7;
......@@ -26,4 +23,3 @@
</style>
</hygrometer>
......@@ -48,4 +48,3 @@
</style>
</powerrelay>
<thermometer>
<span class="thermometer">
<span class="temperature">{ temperature }°</span>
<span class="temperature">{ temperature }&nbsp;°</span>
</span>
<script>
this.addr = opts.xaal_addr
receive(data) {
this.temperature = data['attributes']['temperature']
this.update()
}
</script>
<style>
.addr {
font-size:80%;
color : #8e8e8e;
}
.temperature {
font-weight: bold;
......@@ -33,4 +27,3 @@ receive(data) {
</thermometer>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment