Closed GoogleCodeExporter closed 9 years ago
Hi,
you are right, there is a small typo in the Python libraries (".../lx" vs.
".../lux". You can either change the mapping in the Luminosity client class
thats in the file python/webiopi/clients.py to change from
return float(self.sendRequest("GET", "/luminosity/lux"))
to
return float(self.sendRequest("GET", "/luminosity/lx"))
or do the opposite job in the server Luminosity class thats in the file
python/webiopi/devices/sensor/__init__.py.
Whatever you choose, both mappings MUST be the same.
As I don't have write access to the repository, Eric has to incorporate the
change some day in the trunk, but in the meanwhile you can make the change
local that your code work correct.
@Eric, I would prefer using "lux" for all mappings as this is the correct unit
according to Wikipedia, however this will mean to also update the wiki as it
also says "lx".
Andreas
Original comment by andreas....@googlemail.com
on 4 Jun 2013 at 4:07
I'll try to fix it asap !
Original comment by tro...@trouch.com
on 27 Nov 2013 at 9:03
Original comment by tro...@trouch.com
on 4 Jan 2014 at 9:00
Original comment by tro...@trouch.com
on 4 Jan 2014 at 9:01
This issue was closed by revision r1413.
Original comment by tro...@trouch.com
on 28 Jan 2014 at 11:24
Original issue reported on code.google.com by
lord.kil...@googlemail.com
on 24 May 2013 at 10:59