Initial Commit

This commit is contained in:
2023-02-22 09:14:40 +01:00
parent 6bb8abca54
commit 80d91d89f2
5 changed files with 67 additions and 0 deletions

1
ext/__init__.py Normal file
View File

@@ -0,0 +1 @@
from .reichebscombined import ReicheBSCombined

12
ext/reichebscombined.py Normal file
View File

@@ -0,0 +1,12 @@
from slic.core.sensor.bsmonitor import BSMonitor
class ReicheBSCombined(BSMonitor):
# Du brauchst kein extra init. BSMonitor tut schon das richtige...
def _unpack(self, data):
# data ist ein dict mit allen Deinen Kanälen
pid = data["pid"] # der effektive Channel-Name der Pulse ID
# hier dein Code
# am Ende sollte eine Zahl rauskommen:
return data