WebThingsIO / tplink-adapter

TP-Link Kasa smart plug/bulb adapter for WebThings Gateway
Mozilla Public License 2.0
16 stars 11 forks source link

need additional documentation #3

Closed twobraids closed 6 years ago

twobraids commented 6 years ago

there needs to be some additional documentation on how to get this adapter running on platforms other than the RPi image.

When running on a Ubuntu installation, the gateway falls into an infinite try/fail loop when it fails to find the nnpy package installed. Unfortunately, just pip3 install nnpy is a fail without having first installed other dependencies.

Just to run the TPLink adapter in Gateway on a fresh Ubuntu installation, I had to do the following:

sudo apt install python3-dev
sudo apt install libnanomsg-dev
sudo pip3 install nnpy
export PYTHONPATH=$PYTHONPATH:<install-location>/gateway-addon-python

However, had I noticed the setup.py in the gateway-addon-python repo, I could have avoided at least part of this adventure.

I'll create PR for it if someone will tell me where to put this information.