Add comment about bluepy setup

This commit is contained in:
zewelor
2017-11-23 22:05:11 +01:00
parent 3195ad1f20
commit 7b8e1dad12
+3 -1
View File
@@ -2,6 +2,9 @@ import time
REQUIREMENTS = ['bluepy', 'interruptingcow']
# Bluepy might need special settings
# sudo setcap 'cap_net_raw,cap_net_admin+eip' /usr/local/lib/python3.6/dist-packages/bluepy/bluepy-helper
class MiscaleWorker():
def __init__(self, mac):
self._mac = mac
@@ -12,7 +15,6 @@ class MiscaleWorker():
'payload': self._get_weight(),
}]
def _get_weight(self):
from bluepy import btle
from interruptingcow import timeout