Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
38 lines (38 sloc) 1.24 KB
mixin devicesForStore(id)
p(style="color:#000000;")
strong Devices in Store
code(style="font-size:large") urn:ngsi-ld:Store:#{id}
ul.devices
li.device(style="background-image: url('/img/door-locked.svg')")
code
strong door#{id}
|  
span(id=`door${id}`)
li.device(style="background-image: url('/img/bell-off.svg')")
code
strong bell#{id}
|  
span(id=`bell${id}`)
li.device(style="background-image: url('/img/motion-sensor.svg')")
code
strong motion#{id}
|  
span(id=`motion${id}`)
li.device(style="background-image: url('/img/lamp-off.svg')")
code
strong lamp#{id}
|  
span(id=`lamp${id}`)
form.device(action="/device/command")
input(type="text" style="display:none" name="id" value=`${id}`)
select(name="action")
option(value="ring") Ring Bell
option(value="presence") Dectect Motion
option(value="unlock") Unlock Door
option(value="open") Open Door
option(value="close") Close Door
option(value="lock") Lock Door
option(value="on") Lamp On
option(value="off") Lamp Off
|  
input(type="submit" value=`Send` class="button")
You can’t perform that action at this time.