Add comment about bluepy setup
This commit is contained in:
+3
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user