Add comment about bluepy setup
This commit is contained in:
+3
-1
@@ -2,6 +2,9 @@ import time
|
|||||||
|
|
||||||
REQUIREMENTS = ['bluepy', 'interruptingcow']
|
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():
|
class MiscaleWorker():
|
||||||
def __init__(self, mac):
|
def __init__(self, mac):
|
||||||
self._mac = mac
|
self._mac = mac
|
||||||
@@ -12,7 +15,6 @@ class MiscaleWorker():
|
|||||||
'payload': self._get_weight(),
|
'payload': self._get_weight(),
|
||||||
}]
|
}]
|
||||||
|
|
||||||
|
|
||||||
def _get_weight(self):
|
def _get_weight(self):
|
||||||
from bluepy import btle
|
from bluepy import btle
|
||||||
from interruptingcow import timeout
|
from interruptingcow import timeout
|
||||||
|
|||||||
Reference in New Issue
Block a user