Hallo,
ich habe einen RFID Reader bekommen und möchte diesen gerne in Doorpi einbinden, was mir aber leider nicht gelingt.
Das ist er: euftech USB Reader Amazon
Auszug Doorpi.ini
[onboardpins_OutputPins]
0 = Tueroeffner
[EVENT_OnKeyPressed_onboardpins.6]
10 = out:Tueroeffner,1,0,3
[DTMF]
"0" = out:Tueroeffner,1,0,3
[keyboards]
onboardpins = piface
rfidreader = keyboard
[onboardpins_keyboard]
bouncetime = 4000
polarity = 0
pressed_on_keydown = True
[onboardpins_InputPins]
0 = call:**612
1 = sleep:0
2 = sleep:0
3 = sleep:0
4 = sleep:0
5 = sleep:0
6 = sleep:0
7 = sleep:0
[pifaceio_InputPins]
0 = sleep:0
1 = sleep:0
[EVENT_OnKeyUp_0]
10 = call:**612
5 = os_execute:/usr/local/etc/DoorPi/scripts/Klingelbild.sh
[EVENT_OnKeyPressed_onboardpins.1]
10 = os_execute:/usr/local/etc/DoorPi/scripts/Sabotagekontakt.sh
[EVENT_OnStartup]
10 = sleep:1
20 = os_execute:/usr/local/etc/DoorPi/scripts/Startmeldung.sh
[rfidreader_keyboard]
device = usb:16c0:27db
bouncetime = 5000
[rfidreader__InputPins]
0010327614 = out:Tueroeffner,1,0,3
Auszug doorpi.log
2020-08-02 20:06:58,626 [INFO] [doorpi.conf.config_object] use configfile: /usr/local/etc/DoorPi/conf/doorpi.ini
2020-08-02 20:06:58,708 [INFO] [doorpi.status.webserver] Initiating WebService at ip and port 8081
2020-08-02 20:06:58,720 [WARNING] [root] section User not found in configfile
2020-08-02 20:06:58,725 [ERROR] [doorpi.status.webserver] user admin is assigned to group administrators but doesn't exist as user
2020-08-02 20:06:58,726 [ERROR] [doorpi.status.webserver] module public doesn't exist but is assigned to group administrators in WritePermission
2020-08-02 20:06:58,727 [ERROR] [doorpi.status.webserver] module public doesn't exist but is assigned to group administrators in ReadPermission
2020-08-02 20:06:58,742 [INFO] [doorpi.keyboard.KeyboardInterface] using multi-keyboard mode (keyboards: rfidreader, onboardpins)
2020-08-02 20:06:58,744 [INFO] [doorpi.keyboard.KeyboardInterface] trying to add keyboard 'rfidreader' to handler
2020-08-02 20:06:58,745 [WARNING] [root] section rfidreader_InputPins not found in configfile
2020-08-02 20:06:58,747 [WARNING] [root] section rfidreader_OutputPins not found in configfile
2020-08-02 20:06:58,751 [ERROR] [doorpi.keyboard.KeyboardInterface] keyboard rfidreader not found @ keyboard.from_keyboard (msg: No module named from_keyboard)
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/doorpi/keyboard/KeyboardInterface.py", line 42, in load_single_keyboard
keyboard = importlib.import_module('doorpi.keyboard.from_'+keyboard_type).get(
File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
__import__(name)
ImportError: No module named from_keyboard
2020-08-02 20:06:58,759 [ERROR] [doorpi.keyboard.KeyboardInterface] couldn't load keyboard rfidreader
2020-08-02 20:06:58,760 [INFO] [doorpi.keyboard.KeyboardInterface] trying to add keyboard 'onboardpins' to handler
2020-08-02 20:06:59,432 [INFO] [doorpi.sipphone.SipphoneInterface] found installed sipphone "linphone" and use this as default
2020-08-02 20:06:59,851 [INFO] [doorpi.sipphone.from_linphone] found 3 possible sounddevices:
2020-08-02 20:06:59,860 [INFO] [doorpi.sipphone.from_linphone] found 2 possible videodevices:
2020-08-02 20:06:59,867 [INFO] [doorpi.sipphone.from_linphone] using DoorPi with SIP-Server
2020-08-02 20:06:59,874 [INFO] [doorpi.doorpi] found EVENT_ section 'EVENT_OnKeyUp_0' in configfile
2020-08-02 20:06:59,875 [INFO] [doorpi.doorpi] registering action '10' for event 'OnKeyUp_0'
2020-08-02 20:06:59,883 [INFO] [doorpi.doorpi] registering action '5' for event 'OnKeyUp_0'
2020-08-02 20:06:59,888 [INFO] [doorpi.doorpi] found EVENT_ section 'EVENT_OnKeyPressed_onboardpins.1' in configfile
2020-08-02 20:06:59,890 [INFO] [doorpi.doorpi] registering action '10' for event 'OnKeyPressed_onboardpins.1'
2020-08-02 20:06:59,893 [INFO] [doorpi.doorpi] found EVENT_ section 'EVENT_OnStartup' in configfile
2020-08-02 20:06:59,894 [INFO] [doorpi.doorpi] registering action '10' for event 'OnStartup'
2020-08-02 20:06:59,901 [INFO] [doorpi.doorpi] registering action '20' for event 'OnStartup'
2020-08-02 20:06:59,904 [INFO] [doorpi.doorpi] found EVENT_ section 'EVENT_OnKeyPressed_onboardpins.6' in configfile
2020-08-02 20:06:59,905 [INFO] [doorpi.doorpi] registering action '10' for event 'OnKeyPressed_onboardpins.6'
2020-08-02 20:07:00,950 [INFO] [doorpi.doorpi] DoorPi started successfully
2020-08-02 20:07:00,952 [INFO] [doorpi.doorpi] BasePath is /usr/local/etc/DoorPi
2020-08-02 20:07:00,953 [INFO] [doorpi.doorpi] Weburl is http://raspberrypi:8081/
doorpi erkennt den Leser nicht, vielleicht habe ich was falsches in die doorpi.ini geschrieben ich weiß es leider nicht.
Den Port: usb:16c0:27db habe ich mit lsusb ausgelesen.
vielleicht kann mir jemand bei meinem Problem helfen.
Vielen Dank
Gruß raptoxx85