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

Added support for luxmeter



git-svn-id: https://redmine.imt-atlantique.fr/svn/xaal/code/Python/branches/0.7@2593 b32b6428-25c9-4566-ad07-03861ab6144f
parent 54a4bdf0
No related branches found
No related tags found
No related merge requests found
......@@ -20,6 +20,7 @@ bindings = {'thermometer.basic' : 'temperature',
'hygrometer.basic' : 'humidity',
'powermeter.basic' : 'power',
'co2meter.basic' : 'co2',
'luxmeter.basic' : 'illuminance',
}
logger = logging.getLogger(__name__)
......@@ -57,6 +58,7 @@ def daily(addr):
global CLASS
response.headers['Content-Type'] = 'application/json'
res = {}
#import pdb;pdb.set_trace()
dev=xaal.monitor.devices.get_with_addr(tools.get_uuid(addr))
if dev:
req = init_req()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment