rwblinn Posted April 17, 2016 at 09:50 AM Share Posted April 17, 2016 at 09:50 AM Hi, downloaded the latest version of the TF MQTT proxy to be able to use the UV bricklet. After installation received, error message below. Please advice. $ pip install tinkerforge Requirement already satisfied (use --upgrade to upgrade): tinkerforge in /usr/local/lib/python2.7/dist-packages Cleaning up... $ sudo python brick-mqtt-proxy.py& [1] 10498 pi@raspberrypi ~/tinkerforge/mqtt $ Traceback (most recent call last): File "brick-mqtt-proxy.py", line 92, in <module> from tinkerforge.bricklet_uv_light import BrickletUVLight ImportError: No module named bricklet_uv_light Quote Link to comment Share on other sites More sharing options...
rwblinn Posted April 17, 2016 at 11:15 AM Author Share Posted April 17, 2016 at 11:15 AM After using $sudo pip install tinkerforge --upgrade all fine. What is missing, is the a linkt in the MQTT Documentation for the UV bricklet. Quote Link to comment Share on other sites More sharing options...
photron Posted April 18, 2016 at 08:09 AM Share Posted April 18, 2016 at 08:09 AM Link added. Quote Link to comment Share on other sites More sharing options...
rwblinn Posted April 18, 2016 at 11:27 AM Author Share Posted April 18, 2016 at 11:27 AM Just a hint The link states the suffix "uv_light" to be used BUT the MQTT JSON response is "intensity" when subscribing to the uvlight: tinkerforge/bricklet/uv_light/x84/uv_light This is not documented. Quote Link to comment Share on other sites More sharing options...
photron Posted April 18, 2016 at 04:10 PM Share Posted April 18, 2016 at 04:10 PM The documentation is correct. The JSON payload should contain a uv_light member. I've fixed the implementation now. Quote Link to comment Share on other sites More sharing options...
rwblinn Posted April 19, 2016 at 06:48 AM Author Share Posted April 19, 2016 at 06:48 AM Checked and working fine. Thanks a Lot Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.