suceeded after deciding to give up... i used the code from the github project, reduced it to what i needed and was able to install evdev on the piCorePlayer image. Now it reads 100% of the tags correct with this code:
Code: -------------------- from socket import socket from evdev import InputDevice, categorize, ecodes, list_devices from select import select dev1= InputDevice('/dev/input/event0') keys = "X^1234567890XXXXqwertzuiopXXXXasdfghjklXXXXXyxcvbnmXXXXXXXXXXXXXXXXXXXXXXX" def send_ID(ID): sock = socket() sock.connect((IPIPIPIP', PORT)) #sock.send(str(ID)+'\n') sock.send('item|rfid.received_id|'+str(ID)+'\n') sock.close() while True: stri='' key = '' while key != 'KEY_ENTER': r,w,x = select([dev1], [], []) for event in dev1.read(): if event.type==1 and event.value==1: stri+=keys[ event.code ] #print( keys[ event.code ] ) key = ecodes.KEY[ event.code ] print stri[:-1] send_ID(stri[:-1]) -------------------- I´m no realy affraid what is going to happen if I reboot the system? I downloaded the evdev package into my home/tc folder and insalled from there, will it now permanent remain in the system after reboot? Thanks a lot for your help so far ------------------------------------------------------------------------ marcov's Profile: http://forums.slimdevices.com/member.php?userid=63435 View this thread: http://forums.slimdevices.com/showthread.php?t=109940
_______________________________________________ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix