SIP-Türsprechanlage mit Video im Eigenbau auf Basis des DoorPi Projektes
Einklappen
X
-
das hatte ich auch bemerkt http://www.doorpi.org/forum/thread/5...m-tastendruck/
glaube das es wie beschrieben störungen sind.
hatte 3 oder 4 taster im einsatz wo das ganze sehr extrem war ich musste 2 3 sekunden drücken das was passierte
die kondensatoren in seiner schaltung machen sinn die fangen viel ab und taster sind entprellt -
Hi Marcus,
sorry für die Verwirrung....
Mit diesen Einträgen in der Config funktioniert der Anruf vom DoorPi aus aufs Telefon, d.h wenn ich den Taster "0" am PiFace drücke klingelt das Telefon.
Wenn ich allerdings die Config Anhand deinem Beispiel abändere, funktioniert das nicht mehr.Code:[keyboards] onboardpins = piface [onboardpins_InputPins] 0 = call:**620 [onboardpins_keyboard] bouncetime = 10000 polarity = 0 pressed_on_keydown = True
Die Einträge sehen dann so aus:
Code:[keyboards] onboardpins = piface [onboardpins_InputPins] 0=Klingel #Klingel [EVENT_OnKeyUp_onboardpins.0] #10=take_snapshot #20=mailto:xxx.yyy@meinMailProvider.de,DoorPi,Kinge l,True 40=call:**620 #60=os_execute:/usr/local/etc/DoorPi/scripts/LoxoneNotify.py
Ein Auszug wenn ich Taster "0" drücke:
Code:2016-05-01 09:21:26,537 [INFO] [doorpi.sipphone.from_linphone] channel [0x10c75d0] [747] bytes parsed 2016-05-01 09:21:26,538 [INFO] [doorpi.sipphone.from_linphone] Found transaction matching response. 2016-05-01 09:21:26,539 [INFO] [doorpi.sipphone.from_linphone] Changing [client] [REGISTER] transaction [0x10edd80], from state [TRYING] to [COMPLETED] 2016-05-01 09:21:26,540 [INFO] [doorpi.sipphone.from_linphone] Refresher [0x10c25c8]: has no contact for request [0x10f1198]. 2016-05-01 09:21:26,541 [INFO] [doorpi.sipphone.from_linphone] Refresher: scheduling next timer in 270000 ms 2016-05-01 09:21:26,541 [INFO] [doorpi.sipphone.from_linphone] Register refresher [200] reason [OK] for proxy [sip:192.168.2.1] 2016-05-01 09:21:26,542 [INFO] [doorpi.sipphone.from_linphone] Proxy config [0x10ecdb0] for identity ["DoorPi" <sip:622@192.168.2.1>] moving from state [LinphoneRegistrationProgress] to [LinphoneRegistrationOk] 2016-05-01 09:21:26,543 [DEBUG] [doorpi.sipphone.from_linphone] [PYLINPHONE] >>> pylinphone_Core_callback_registration_state_changed(0x10b00d8, 0x10ecdb0, 2, "Registration successful") 2016-05-01 09:21:26,544 [DEBUG] [doorpi.sipphone.from_linphone] [PYLINPHONE] <<< pylinphone_Core_callback_registration_state_changed 2016-05-01 09:21:26,544 [INFO] [doorpi.sipphone.from_linphone] Linphone core [0x10b00d8] notifying [registration_state_changed] 2016-05-01 09:21:31,517 [INFO] [doorpi.sipphone.from_linphone] Changing [client] [REGISTER] transaction [0x10f0b98], from state [COMPLETED] to [TERMINATED] 2016-05-01 09:21:31,519 [INFO] [doorpi.sipphone.from_linphone] Client internal REGISTER transaction [0x10f0b98] terminated 2016-05-01 09:21:31,571 [INFO] [doorpi.sipphone.from_linphone] Changing [client] [REGISTER] transaction [0x10edd80], from state [COMPLETED] to [TERMINATED] 2016-05-01 09:21:31,572 [INFO] [doorpi.sipphone.from_linphone] Client internal REGISTER transaction [0x10edd80] terminated 2016-05-01 09:21:32,928 [TRACE] [doorpi.action.handler] fire Event OnKeyDown from doorpi.keyboard.from_piface asyncron 2016-05-01 09:21:32,931 [TRACE] [doorpi.action.handler] fire Event OnKeyDown_0 from doorpi.keyboard.from_piface asyncron 2016-05-01 09:21:32,933 [DEBUG] [doorpi.action.handler] no actions for event OnKeyDown - skip fire_event OnKeyDown from doorpi.keyboard.from_piface 2016-05-01 09:21:32,936 [TRACE] [doorpi.action.handler] fire Event OnKeyDown_onboardpins.0 from doorpi.keyboard.from_piface asyncron 2016-05-01 09:21:32,938 [DEBUG] [doorpi.action.handler] no actions for event OnKeyDown_0 - skip fire_event OnKeyDown_0 from doorpi.keyboard.from_piface 2016-05-01 09:21:32,941 [TRACE] [doorpi.action.handler] fire Event OnKeyPressed from doorpi.keyboard.from_piface asyncron 2016-05-01 09:21:32,942 [DEBUG] [doorpi.action.handler] no actions for event OnKeyDown_onboardpins.0 - skip fire_event OnKeyDown_onboardpins.0 from doorpi.keyboard.from_piface 2016-05-01 09:21:32,947 [TRACE] [doorpi.action.handler] fire Event OnKeyPressed_0 from doorpi.keyboard.from_piface asyncron 2016-05-01 09:21:32,950 [TRACE] [doorpi.action.handler] fire Event OnKeyPressed_onboardpins.0 from doorpi.keyboard.from_piface asyncron 2016-05-01 09:21:32,952 [DEBUG] [doorpi.action.handler] no actions for event OnKeyPressed - skip fire_event OnKeyPressed from doorpi.keyboard.from_piface 2016-05-01 09:21:32,953 [DEBUG] [doorpi.action.handler] no actions for event OnKeyPressed_0 - skip fire_event OnKeyPressed_0 from doorpi.keyboard.from_piface 2016-05-01 09:21:32,957 [DEBUG] [doorpi.action.handler] no actions for event OnKeyPressed_onboardpins.0 - skip fire_event OnKeyPressed_onboardpins.0 from doorpi.keyboard.from_piface
Gruß
Danke Marcus für den Tip. Mit den Einstellungen klappt der Call.
Hab nun das script für Loxone eingebunden und erhalte folgenden Meldung:
Kannst Du damit was anfangen, hab die "LoxoneNotify.py" von Dir übernommen....und die IP angepaßt..Code:2016-05-01 22:54:56,146 [DEBUG] [doorpi.action.handler] no actions for event OnKeyPressed_0 - skip fire_event OnKeyPressed_0 from doorpi.keyboard.from_piface 2016-05-01 22:54:56,147 [TRACE] [doorpi.action.handler] fire Event OnKeyPressed_onboardpins.0 from doorpi.keyboard.from_piface asyncron 2016-05-01 22:54:56,151 [DEBUG] [doorpi.action.handler] [BL6QTV] fire for event OnKeyPressed_onboardpins.0 this actions [<doorpi.action.SingleActions.os_execute.OsExecuteAction instance at 0x745b0418>, <doorpi.action.SingleActions.sleep.SleepAction instance at 0x745b0490>] 2016-05-01 22:54:56,152 [TRACE] [doorpi.action.handler] [BL6QTV] try to fire action OsExecuteAction with args () and kwargs {'command': '/usr/local/etc/DoorPi/scripts/LoxoneNotify.py'} 2016-05-01 22:54:56,153 [TRACE] [doorpi.action.base] run OsExecuteAction with args () and kwargs {'command': '/usr/local/etc/DoorPi/scripts/LoxoneNotify.py'} 2016-05-01 22:54:56,287 [TRACE] [doorpi.action.handler] [BL6QTV] try to fire action SleepAction with args (0.0,) and kwargs {} 2016-05-01 22:54:56,288 [TRACE] [doorpi.action.base] run SleepAction with args (0.0,) and kwargs {} 2016-05-01 22:54:56,289 [TRACE] [doorpi.action.handler] [BL6QTV] finished fire_event for event_name OnKeyPressed_onboardpins.0Zuletzt geändert von Rik; 01.05.2016, 21:57. -
Scheint übrigens ein Bug zu sein in Verbindung mit der GPIO Beschaltung. Es gibt anscheinend schon mal ein Problem mit der Verknüpfung von Events und Actions
-
Wenn du dir das Log ansiehst, dann liest du dort, dass er keine Aktionen für dienEvents findet. Ins Script komm er also gar nicht. Mach mal das, was ich klenn eben empfohlen habe und stell auf andere events um. OnKeyPressed und/oder OnKeyDown -
Alleine läuft das Script jetzt! Danke schön... allerdings nicht aus dem DoorPi raus:
[doorpi.action.handler] fire Event OnKeyUp from doorpi.keyboard.from_gpio asyncron
2016-05-01 12:55:21,620 [TRACE] [doorpi.action.handler] fire Event OnKeyUp_22 from doorpi.keyboard.from_gpio asyncron
2016-05-01 12:55:21,622 [DEBUG] [doorpi.action.handler] no actions for event OnKeyUp - skip fire_event OnKeyUp from doorpi.keyboard.from_gpio
2016-05-01 12:55:21,624 [TRACE] [doorpi.action.handler] fire Event OnKeyUp_onboardpins.22 from doorpi.keyboard.from_gpio asyncron
2016-05-01 12:55:21,625 [DEBUG] [doorpi.action.handler] no actions for event OnKeyUp_22 - skip fire_event OnKeyUp_22 from doorpi.keyboard.from_gpio
2016-05-01 12:55:21,628 [DEBUG] [doorpi.action.handler] no actions for event OnKeyUp_onboardpins.22 - skip fire_event OnKeyUp_onboardpins.22 from doorpi.keyboard.from_gpio
Habe ich vielleicht noch nen Fehler in dieser Zeile:
10=os_execute:/usr/local/etc/DoorPi/scripts/LoxoneNotify.py -
Du brauchst einen Zeilenumbruch nach dem import Socket. Mein Fehler, sorry :-( Ich hänge mein Script mal im Original an meinen zweiten Post. Wichtig ist auch, dass du die Datei UNIX Konform mit einem Editor abspeicherst (Notepad++ kann das z. B.) oder am besten direkt mit einem Editor wie nano auf dem Raspi erstellt. Du kannst das Script ja auch erstmal von Hand testen. Im scripts Verzeichnis einfach ''./LoxoneNotify.py'' eingeben. Dann sollte es an der Loxone klingelnZuletzt geändert von MarcusS; 02.05.2016, 10:11. -
Jetzt bin ich schon mal einen Schritt weiter, Übergabe an Loxone klappt aber nach wie vor nicht:
Ich habe das Python-Script vom Anfang 1:1 übernommen, bekomme aber eine "invalid syntax" Meldung über doorpi_cli --trace:
2016-05-01 12:09:57,364 [TRACE] [doorpi.action.handler] fire Event OnKeyUp from doorpi.keyboard.from_gpio asyncron
2016-05-01 12:09:57,368 [TRACE] [doorpi.action.handler] fire Event OnKeyUp_22 from doorpi.keyboard.from_gpio asyncron
2016-05-01 12:09:57,369 [DEBUG] [doorpi.action.handler] no actions for event OnKeyUp - skip fire_event OnKeyUp from doorpi.keyboard.from_gpio
2016-05-01 12:09:57,373 [TRACE] [doorpi.action.handler] fire Event OnKeyUp_onboardpins.22 from doorpi.keyboard.from_gpio asyncron
2016-05-01 12:09:57,374 [DEBUG] [doorpi.action.handler] no actions for event OnKeyUp_22 - skip fire_event OnKeyUp_22 from doorpi.keyboard.from_gpio
2016-05-01 12:09:57,378 [DEBUG] [doorpi.action.handler] [JTBF3V] fire for event OnKeyUp_onboardpins.22 this actions [<doorpi.action.SingleActions.os_execute.OsExecuteA ction instance at 0x7469fe40>]
2016-05-01 12:09:57,379 [TRACE] [doorpi.action.handler] [JTBF3V] try to fire action OsExecuteAction with args () and kwargs {'command': '/usr/local/etc/DoorPi/scripts/LoxoneNotify.py'}
2016-05-01 12:09:57,380 [TRACE] [doorpi.action.base] run OsExecuteAction with args () and kwargs {'command': '/usr/local/etc/DoorPi/scripts/LoxoneNotify.py'}
File "/usr/local/etc/DoorPi/scripts/LoxoneNotify.py", line 3
import socket s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
^
SyntaxError: invalid syntax
2016-05-01 12:09:57,509 [TRACE] [doorpi.action.handler] [JTBF3V] finished fire_event for event_name OnKeyUp_onboardpins.22
Das Script sieht genau so aus:
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import socket s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
s.sendto("? #50 ?", ("192.168.1.10", 7111))
Kann ehrlich gesagt keinen Fehler im Script erkennen
Gruß
JörgEinen Kommentar schreiben:
-
Verwende mal das Event ''OnKeyPressed'' oder ''OnKeyDown'' anstatt ''OnKeyUp''. Im Log ist auch noch die 622 as Anmeldename zu sehen, Bitte ändern in einen gültigen Anmeldenamen auf der FB
#Klingel
[EVENT_OnKeyPressed_onboardpins.0]Zuletzt geändert von MarcusS; 17.11.2017, 19:57. -
so es ist mir gelungen den trace mit 2> in eine datei zu schieben
glaube ich installiere mal neu:-)
Code:2016-05-01 10:12:32,851 [INFO] [doorpi.sipphone.from_linphone] Could not find encoder for SILK 2016-05-01 10:12:32,851 [INFO] [doorpi.sipphone.from_linphone] Could not find decoder for SILK 2016-05-01 10:12:32,852 [INFO] [doorpi.sipphone.from_linphone] Codec speex/16000 fmtp=[vbr=on] number=-1, enabled=1) added to default capabilities. 2016-05-01 10:12:32,852 [INFO] [doorpi.sipphone.from_linphone] Codec speex/8000 fmtp=[vbr=on] number=-1, enabled=1) added to default capabilities. 2016-05-01 10:12:32,853 [INFO] [doorpi.sipphone.from_linphone] Codec PCMU/8000 fmtp=[] number=0, enabled=1) added to default capabilities. 2016-05-01 10:12:32,854 [INFO] [doorpi.sipphone.from_linphone] Codec PCMA/8000 fmtp=[] number=8, enabled=1) added to default capabilities. 2016-05-01 10:12:32,854 [INFO] [doorpi.sipphone.from_linphone] Codec t140/1000 fmtp=[] number=96, enabled=1) added to default capabilities. 2016-05-01 10:12:32,854 [INFO] [doorpi.sipphone.from_linphone] Codec red/1000 fmtp=[] number=97, enabled=1) added to default capabilities. 2016-05-01 10:12:32,855 [INFO] [doorpi.sipphone.from_linphone] Codec GSM/8000 fmtp=[] number=3, enabled=0) added to default capabilities. 2016-05-01 10:12:32,855 [INFO] [doorpi.sipphone.from_linphone] Codec G722/8000 fmtp=[] number=9, enabled=0) added to default capabilities. 2016-05-01 10:12:32,856 [INFO] [doorpi.sipphone.from_linphone] Could not find encoder for iLBC 2016-05-01 10:12:32,856 [INFO] [doorpi.sipphone.from_linphone] Could not find decoder for iLBC 2016-05-01 10:12:32,857 [INFO] [doorpi.sipphone.from_linphone] Could not find encoder for AMR 2016-05-01 10:12:32,857 [INFO] [doorpi.sipphone.from_linphone] Could not find decoder for AMR 2016-05-01 10:12:32,858 [INFO] [doorpi.sipphone.from_linphone] Could not find encoder for AMR-WB 2016-05-01 10:12:32,859 [INFO] [doorpi.sipphone.from_linphone] Could not find decoder for AMR-WB 2016-05-01 10:12:32,859 [INFO] [doorpi.sipphone.from_linphone] Could not find encoder for G729 2016-05-01 10:12:32,860 [INFO] [doorpi.sipphone.from_linphone] Could not find decoder for G729 2016-05-01 10:12:32,860 [INFO] [doorpi.sipphone.from_linphone] Could not find encoder for mpeg4-generic 2016-05-01 10:12:32,861 [INFO] [doorpi.sipphone.from_linphone] Could not find decoder for mpeg4-generic 2016-05-01 10:12:32,862 [INFO] [doorpi.sipphone.from_linphone] Could not find encoder for mpeg4-generic 2016-05-01 10:12:32,862 [INFO] [doorpi.sipphone.from_linphone] Could not find decoder for mpeg4-generic 2016-05-01 10:12:32,863 [INFO] [doorpi.sipphone.from_linphone] Could not find encoder for mpeg4-generic 2016-05-01 10:12:32,863 [INFO] [doorpi.sipphone.from_linphone] Could not find decoder for mpeg4-generic 2016-05-01 10:12:32,864 [INFO] [doorpi.sipphone.from_linphone] Could not find encoder for mpeg4-generic 2016-05-01 10:12:32,865 [INFO] [doorpi.sipphone.from_linphone] Could not find decoder for mpeg4-generic 2016-05-01 10:12:32,865 [INFO] [doorpi.sipphone.from_linphone] Could not find encoder for mpeg4-generic 2016-05-01 10:12:32,866 [INFO] [doorpi.sipphone.from_linphone] Could not find decoder for mpeg4-generic 2016-05-01 10:12:32,866 [INFO] [doorpi.sipphone.from_linphone] Could not find encoder for iSAC 2016-05-01 10:12:32,867 [INFO] [doorpi.sipphone.from_linphone] Could not find decoder for iSAC 2016-05-01 10:12:32,867 [INFO] [doorpi.sipphone.from_linphone] Codec speex/32000 fmtp=[vbr=on] number=-1, enabled=0) added to default capabilities. 2016-05-01 10:12:32,868 [INFO] [doorpi.sipphone.from_linphone] Could not find encoder for SILK 2016-05-01 10:12:32,869 [INFO] [doorpi.sipphone.from_linphone] Could not find decoder for SILK 2016-05-01 10:12:32,870 [INFO] [doorpi.sipphone.from_linphone] Could not find encoder for SILK 2016-05-01 10:12:32,870 [INFO] [doorpi.sipphone.from_linphone] Could not find decoder for SILK 2016-05-01 10:12:32,871 [INFO] [doorpi.sipphone.from_linphone] Could not find encoder for SILK 2016-05-01 10:12:32,871 [INFO] [doorpi.sipphone.from_linphone] Could not find decoder for SILK 2016-05-01 10:12:32,872 [INFO] [doorpi.sipphone.from_linphone] Could not find encoder for G726-16 2016-05-01 10:12:32,872 [INFO] [doorpi.sipphone.from_linphone] Could not find decoder for G726-16 2016-05-01 10:12:32,872 [INFO] [doorpi.sipphone.from_linphone] Could not find encoder for G726-24 2016-05-01 10:12:32,873 [INFO] [doorpi.sipphone.from_linphone] Could not find decoder for G726-24 2016-05-01 10:12:32,874 [INFO] [doorpi.sipphone.from_linphone] Could not find encoder for G726-32 2016-05-01 10:12:32,874 [INFO] [doorpi.sipphone.from_linphone] Could not find decoder for G726-32 2016-05-01 10:12:32,875 [INFO] [doorpi.sipphone.from_linphone] Could not find encoder for G726-40 2016-05-01 10:12:32,875 [INFO] [doorpi.sipphone.from_linphone] Could not find decoder for G726-40 2016-05-01 10:12:32,876 [INFO] [doorpi.sipphone.from_linphone] Could not find encoder for AAL2-G726-16 2016-05-01 10:12:32,876 [INFO] [doorpi.sipphone.from_linphone] Could not find decoder for AAL2-G726-16 2016-05-01 10:12:32,877 [INFO] [doorpi.sipphone.from_linphone] Could not find encoder for AAL2-G726-24 2016-05-01 10:12:32,878 [INFO] [doorpi.sipphone.from_linphone] Could not find decoder for AAL2-G726-24 2016-05-01 10:12:32,878 [INFO] [doorpi.sipphone.from_linphone] Could not find encoder for AAL2-G726-32 2016-05-01 10:12:32,879 [INFO] [doorpi.sipphone.from_linphone] Could not find decoder for AAL2-G726-32 2016-05-01 10:12:32,880 [INFO] [doorpi.sipphone.from_linphone] Could not find encoder for AAL2-G726-40 2016-05-01 10:12:32,880 [INFO] [doorpi.sipphone.from_linphone] Could not find decoder for AAL2-G726-40 2016-05-01 10:12:32,881 [INFO] [doorpi.sipphone.from_linphone] Could not find encoder for CODEC2 2016-05-01 10:12:32,881 [INFO] [doorpi.sipphone.from_linphone] Could not find decoder for CODEC2 2016-05-01 10:12:32,882 [INFO] [doorpi.sipphone.from_linphone] Codec VP8/90000 fmtp=[] number=-1, enabled=1) added to default capabilities. 2016-05-01 10:12:32,882 [INFO] [doorpi.sipphone.from_linphone] Could not find encoder for H264 2016-05-01 10:12:32,883 [INFO] [doorpi.sipphone.from_linphone] Could not find decoder for H264 2016-05-01 10:12:32,883 [INFO] [doorpi.sipphone.from_linphone] Could not find encoder for MP4V-ES 2016-05-01 10:12:32,884 [INFO] [doorpi.sipphone.from_linphone] Could not find encoder for H263-1998 2016-05-01 10:12:32,884 [INFO] [doorpi.sipphone.from_linphone] Could not find encoder for H263 2016-05-01 10:12:32,885 [INFO] [doorpi.sipphone.from_linphone] Could not find encoder for 1016 2016-05-01 10:12:32,885 [INFO] [doorpi.sipphone.from_linphone] Could not find decoder for 1016 2016-05-01 10:12:32,885 [INFO] [doorpi.sipphone.from_linphone] Could not find encoder for G723 2016-05-01 10:12:32,886 [INFO] [doorpi.sipphone.from_linphone] Could not find decoder for G723 2016-05-01 10:12:32,886 [INFO] [doorpi.sipphone.from_linphone] Could not find encoder for LPC 2016-05-01 10:12:32,887 [INFO] [doorpi.sipphone.from_linphone] Could not find decoder for LPC 2016-05-01 10:12:32,888 [INFO] [doorpi.sipphone.from_linphone] Codec L16/44100 fmtp=[] number=10, enabled=0) added to default capabilities. 2016-05-01 10:12:32,888 [INFO] [doorpi.sipphone.from_linphone] Codec L16/44100 fmtp=[] number=11, enabled=0) added to default capabilities. 2016-05-01 10:12:32,889 [INFO] [doorpi.sipphone.from_linphone] Could not find encoder for CN 2016-05-01 10:12:32,889 [INFO] [doorpi.sipphone.from_linphone] Could not find decoder for CN 2016-05-01 10:12:32,890 [INFO] [doorpi.sipphone.from_linphone] Could not find encoder for G729 2016-05-01 10:12:32,891 [INFO] [doorpi.sipphone.from_linphone] Could not find decoder for G729 2016-05-01 10:12:32,891 [INFO] [doorpi.sipphone.from_linphone] Could not find encoder for H261 2016-05-01 10:12:32,892 [INFO] [doorpi.sipphone.from_linphone] Could not find decoder for H261 2016-05-01 10:12:32,892 [INFO] [doorpi.sipphone.from_linphone] Could not find encoder for MPV 2016-05-01 10:12:32,893 [INFO] [doorpi.sipphone.from_linphone] Could not find decoder for MPV 2016-05-01 10:12:32,894 [INFO] [doorpi.sipphone.from_linphone] Could not find encoder for H263
Einen Kommentar schreiben:
-
Ich habe das PiFacae selber nicht im Einsatz, kann also nur raten. Weil das noch zu wenig Info sind, mal ein paar Fragen:- Ist das PiFace denn überhaupt aktiv in der raspi-config, also ansprechbar und du kannst IOs auswerten bzw die Relais ansprechen?
- Hast du ein Internes Telefon mit der Nummer und ist es von einem anderen Tel aus anrufbar unter dieser Nummer **620?
- passiert denn was am Eventhandler? Kannst du z.B. ein Script ausführen, eine Mail schicken oder irgend eine andere Aktion ausführen?
und dann 5 Sekunden warten undCode:sudo service doorpi stop
Ach ja, und deine vollständige doorpi.ini ohne Passwörter gerneCode:sudo doorpi_cli --trace
Grüße
Marcus
Hi Marcus,
sorry für die Verwirrung....
Mit diesen Einträgen in der Config funktioniert der Anruf vom DoorPi aus aufs Telefon, d.h wenn ich den Taster "0" am PiFace drücke klingelt das Telefon.
Wenn ich allerdings die Config Anhand deinem Beispiel abändere, funktioniert das nicht mehr.Code:[keyboards] onboardpins = piface [onboardpins_InputPins] 0 = call:**620 [onboardpins_keyboard] bouncetime = 10000 polarity = 0 pressed_on_keydown = True
Die Einträge sehen dann so aus:
Code:[keyboards] onboardpins = piface [onboardpins_InputPins] 0=Klingel #Klingel [EVENT_OnKeyUp_onboardpins.0] #10=take_snapshot #20=mailto:xxx.yyy@meinMailProvider.de,DoorPi,Kinge l,True 40=call:**620 #60=os_execute:/usr/local/etc/DoorPi/scripts/LoxoneNotify.py
Ein Auszug wenn ich Taster "0" drücke:
Code:2016-05-01 09:21:26,537 [INFO] [doorpi.sipphone.from_linphone] channel [0x10c75d0] [747] bytes parsed 2016-05-01 09:21:26,538 [INFO] [doorpi.sipphone.from_linphone] Found transaction matching response. 2016-05-01 09:21:26,539 [INFO] [doorpi.sipphone.from_linphone] Changing [client] [REGISTER] transaction [0x10edd80], from state [TRYING] to [COMPLETED] 2016-05-01 09:21:26,540 [INFO] [doorpi.sipphone.from_linphone] Refresher [0x10c25c8]: has no contact for request [0x10f1198]. 2016-05-01 09:21:26,541 [INFO] [doorpi.sipphone.from_linphone] Refresher: scheduling next timer in 270000 ms 2016-05-01 09:21:26,541 [INFO] [doorpi.sipphone.from_linphone] Register refresher [200] reason [OK] for proxy [sip:192.168.2.1] 2016-05-01 09:21:26,542 [INFO] [doorpi.sipphone.from_linphone] Proxy config [0x10ecdb0] for identity ["DoorPi" <sip:622@192.168.2.1>] moving from state [LinphoneRegistrationProgress] to [LinphoneRegistrationOk] 2016-05-01 09:21:26,543 [DEBUG] [doorpi.sipphone.from_linphone] [PYLINPHONE] >>> pylinphone_Core_callback_registration_state_changed(0x10b00d8, 0x10ecdb0, 2, "Registration successful") 2016-05-01 09:21:26,544 [DEBUG] [doorpi.sipphone.from_linphone] [PYLINPHONE] <<< pylinphone_Core_callback_registration_state_changed 2016-05-01 09:21:26,544 [INFO] [doorpi.sipphone.from_linphone] Linphone core [0x10b00d8] notifying [registration_state_changed] 2016-05-01 09:21:31,517 [INFO] [doorpi.sipphone.from_linphone] Changing [client] [REGISTER] transaction [0x10f0b98], from state [COMPLETED] to [TERMINATED] 2016-05-01 09:21:31,519 [INFO] [doorpi.sipphone.from_linphone] Client internal REGISTER transaction [0x10f0b98] terminated 2016-05-01 09:21:31,571 [INFO] [doorpi.sipphone.from_linphone] Changing [client] [REGISTER] transaction [0x10edd80], from state [COMPLETED] to [TERMINATED] 2016-05-01 09:21:31,572 [INFO] [doorpi.sipphone.from_linphone] Client internal REGISTER transaction [0x10edd80] terminated 2016-05-01 09:21:32,928 [TRACE] [doorpi.action.handler] fire Event OnKeyDown from doorpi.keyboard.from_piface asyncron 2016-05-01 09:21:32,931 [TRACE] [doorpi.action.handler] fire Event OnKeyDown_0 from doorpi.keyboard.from_piface asyncron 2016-05-01 09:21:32,933 [DEBUG] [doorpi.action.handler] no actions for event OnKeyDown - skip fire_event OnKeyDown from doorpi.keyboard.from_piface 2016-05-01 09:21:32,936 [TRACE] [doorpi.action.handler] fire Event OnKeyDown_onboardpins.0 from doorpi.keyboard.from_piface asyncron 2016-05-01 09:21:32,938 [DEBUG] [doorpi.action.handler] no actions for event OnKeyDown_0 - skip fire_event OnKeyDown_0 from doorpi.keyboard.from_piface 2016-05-01 09:21:32,941 [TRACE] [doorpi.action.handler] fire Event OnKeyPressed from doorpi.keyboard.from_piface asyncron 2016-05-01 09:21:32,942 [DEBUG] [doorpi.action.handler] no actions for event OnKeyDown_onboardpins.0 - skip fire_event OnKeyDown_onboardpins.0 from doorpi.keyboard.from_piface 2016-05-01 09:21:32,947 [TRACE] [doorpi.action.handler] fire Event OnKeyPressed_0 from doorpi.keyboard.from_piface asyncron 2016-05-01 09:21:32,950 [TRACE] [doorpi.action.handler] fire Event OnKeyPressed_onboardpins.0 from doorpi.keyboard.from_piface asyncron 2016-05-01 09:21:32,952 [DEBUG] [doorpi.action.handler] no actions for event OnKeyPressed - skip fire_event OnKeyPressed from doorpi.keyboard.from_piface 2016-05-01 09:21:32,953 [DEBUG] [doorpi.action.handler] no actions for event OnKeyPressed_0 - skip fire_event OnKeyPressed_0 from doorpi.keyboard.from_piface 2016-05-01 09:21:32,957 [DEBUG] [doorpi.action.handler] no actions for event OnKeyPressed_onboardpins.0 - skip fire_event OnKeyPressed_onboardpins.0 from doorpi.keyboard.from_piface
Gruß
Einen Kommentar schreiben:
-
Ich gelobe Besserung
Sah in der Vorschau noch komplett anders aus.
Hier der Inhalt der INI - mein Taster hängt an GPIO 25 (Pin 22), Pull-Up-Widerstand ist drin:
[DoorPi]
base_path = /usr/local/etc/DoorPi
eventlog = !BASEPATH!/conf/eventlog.db
is_alive_led =
snapshot_path = /home/pi/snapshots
number_of_snapshots = 5
snapshot_size = 1280x720
[DoorPiWeb]
indexfile = index.html
ip =
loginfile = login.html
online_fallback = http://motom001.github.io/DoorPiWeb
port = 80
public = AREA_public
www = !BASEPATH!/../DoorPiWeb
[AREA_public]
.*
[AdminNumbers]
* = active
[User]
pi=door
[Group]
Administrators= pi
[WritePermission]
administrators = installer, dashboard, config
[ReadPermission]
guests = dashboard
administrators = dashboard,status,config
[EVENT_OnStartup]
10 = sleep:1
[SIP-Phone]
firewallpolicy = PolicyNoFirewall
audio_codecs = PCMA,PCMU
call_timeout = 15
capture_device = ALSA: C-Media USB Audio Device
dialtone = !BASEPATH!/media/ShortDialTone.wav
dialtone_renew_every_start = False
dialtone_volume = 35
echo_cancellation_enabled = True
identity = DoorPi
local_port = 5060
max_call_time = 240
playback_device = ALSA: C-Media USB Audio Device
record_while_dialing = False
records = !BASEPATH!/records/%Y-%m-%d_%H-%M-%S.wav
sipphonetyp = linphone
sipserver_password = **********
sipserver_realm = fritz.box
sipserver_server = 192.168.0.1
sipserver_username = 620
stun_server =
ua.max_calls = 2
video_codecs = VP8
video_device = StaticImage: Static picture
video_display_enabled = False
video_size = vga
[keyboards]
onboardpins = gpio
#Klingeltaster und am gpio des raspi
[onboardpins_InputPins]
22=Klingel
[onboardpins_keyboard]
bouncetime=2000
#Klingel
[EVENT_OnKeyUp_onboardpins.22]
10=take_snapshot
20=os_execute:/usr/local/etc/DoorPi/scripts/LoxoneNotify.py -
ich muss mir mal den trace in eine datei schreiben lassen der rennt so schnell übers bild da bekomme ich nix mit
danke marcus für deine hilfe
ich geh mal ein feierabend bier trinken
Einen Kommentar schreiben:
Einen Kommentar schreiben: