Hi,
ok, nachdem mein letztes Problem nur meine eigene Dummheit war, jetzt hier mal das was ich eigentlich testen wollte und wohl ein kleines Problem habe.
Und zwar, wenn ich meinen Klingeltaster nur sehr kurz drücke, wird kein onKeyPressed ausgelöst, siehe hier:
Code
2016-03-19 11:36:16,070 [INFO] [doorpi.status.webserver] DoorPiWeb URL is http://doorpi:8080/
2016-03-19 11:36:16,893 [TRACE] [doorpi.action.handler] fire Event OnKeyUp from doorpi.keyboard.from_piface asyncron
2016-03-19 11:36:16,900 [TRACE] [doorpi.action.handler] fire Event OnKeyUp_0 from doorpi.keyboard.from_piface asyncron
2016-03-19 11:36:16,910 [DEBUG] [doorpi.action.handler] no actions for event OnKeyUp - skip fire_event OnKeyUp from doorpi.keyboard.from_piface
2016-03-19 11:36:16,915 [TRACE] [doorpi.action.handler] fire Event OnKeyUp_pifaceio.0 from doorpi.keyboard.from_piface asyncron
2016-03-19 11:36:16,922 [DEBUG] [doorpi.action.handler] no actions for event OnKeyUp_0 - skip fire_event OnKeyUp_0 from doorpi.keyboard.from_piface
2016-03-19 11:36:16,935 [DEBUG] [doorpi.action.handler] no actions for event OnKeyUp_pifaceio.0 - skip fire_event OnKeyUp_pifaceio.0 from doorpi.keyboard.from_piface
2016-03-19 11:36:18,347 [INFO] [doorpi.status.webserver] DoorPiWeb URL is http://doorpi:8080/
Drücke ich etwas länger, kommt onKeyPressed und die entsprechende Action wird auch ausgeführt:
Code
2016-03-19 11:28:55,113 [TRACE] [doorpi.action.handler] fire Event OnKeyDown from doorpi.keyboard.from_piface asyncron
2016-03-19 11:28:55,127 [DEBUG] [doorpi.action.handler] no actions for event OnKeyDown - skip fire_event OnKeyDown from doorpi.keyboard.from_piface
2016-03-19 11:28:55,131 [TRACE] [doorpi.action.handler] fire Event OnKeyDown_0 from doorpi.keyboard.from_piface asyncron
2016-03-19 11:28:55,143 [TRACE] [doorpi.action.handler] fire Event OnKeyDown_pifaceio.0 from doorpi.keyboard.from_piface asyncron
2016-03-19 11:28:55,147 [DEBUG] [doorpi.action.handler] [Z840C7] fire for event OnKeyDown_0 this actions [<doorpi.action.SingleActions.os_execute.OsExecuteAction instance at 0xb452faf8>]
2016-03-19 11:28:55,159 [TRACE] [doorpi.action.handler] [Z840C7] try to fire action OsExecuteAction with args () and kwargs {'command': 'php /usr/local/etc/DoorPi/tools/take_snapshot_doorpi.php'}
2016-03-19 11:28:55,158 [TRACE] [doorpi.action.handler] fire Event OnKeyPressed from doorpi.keyboard.from_piface asyncron
2016-03-19 11:28:55,170 [TRACE] [doorpi.action.base] run OsExecuteAction with args () and kwargs {'command': 'php /usr/local/etc/DoorPi/tools/take_snapshot_doorpi.php'}
2016-03-19 11:28:55,166 [DEBUG] [doorpi.action.handler] no actions for event OnKeyDown_pifaceio.0 - skip fire_event OnKeyDown_pifaceio.0 from doorpi.keyboard.from_piface
2016-03-19 11:28:55,183 [DEBUG] [doorpi.action.handler] no actions for event OnKeyPressed - skip fire_event OnKeyPressed from doorpi.keyboard.from_piface
2016-03-19 11:28:55,184 [TRACE] [doorpi.action.handler] fire Event OnKeyPressed_0 from doorpi.keyboard.from_piface asyncron
2016-03-19 11:28:55,237 [DEBUG] [doorpi.action.handler] no actions for event OnKeyPressed_0 - skip fire_event OnKeyPressed_0 from doorpi.keyboard.from_piface
2016-03-19 11:28:55,241 [TRACE] [doorpi.action.handler] fire Event OnKeyPressed_pifaceio.0 from doorpi.keyboard.from_piface asyncron
2016-03-19 11:28:55,262 [DEBUG] [doorpi.action.handler] [UPM9T0] fire for event OnKeyPressed_pifaceio.0 this actions [<doorpi.action.SingleActions.call.CallAction instance at 0xb452fbc0>]
2016-03-19 11:28:55,274 [TRACE] [doorpi.action.handler] [UPM9T0] try to fire action CallAction with args () and kwargs {'number': '**701'}
2016-03-19 11:28:55,279 [TRACE] [doorpi.action.base] run CallAction with args () and kwargs {'number': '**701'}
2016-03-19 11:28:55,293 [TRACE] [doorpi.action.handler] fire Event BeforeSipPhoneMakeCall from doorpi.sipphone.from_linphone asyncron
2016-03-19 11:28:55,302 [DEBUG] [doorpi.sipphone.from_linphone] call (**701)
Alles anzeigen
Interessant finde ich auch, dass im ersten Fall auch kein "onKeyDown" kommt, sondern nur das "onKeyUp" erkannt wird.
Ich habe da jetzt mit der Bouncetime mal ein wenig rumgespielt, aber ich kann es aktuell nicht lösen. Was kann ich da machen?