Hallo zusammen,
ich bin neu hier und habe gleich ein Problem: Mein doorPI reagiert nicht auf die Klingel und ich weiß nicht, warum nicht. Bisher hatte ich das Klingelprojekt der c't am laufen, da ich mehr will, möchte ich mit dem hardwareseitigen Aufbau zu doorPI wechseln. Zur Info: der DoorPI ist ein Zero W mit aktuellem Raspbian, angesteuert wird über die GPIOs, doorPI wurde problemlos aufgesetzt, kommuniziert mit der Fritzbox ebenso ohne Probleme und öffnet schon mal die Tür.
Vermutlich habe ich Tomaten auf den Augen, daher hier mal meine doorpi.in mit der Bitte um Hilfei:
Code
[DoorPi]
base_path = /usr/local/etc/DoorPi
eventlog = !BASEPATH!/conf/eventlog.db
is_alive_led =
last_snapshot =
[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]
.*
[AREA_config]
/control/config_value_get
/control/config_value_set
/control/config_value_delete
/control/config_save
/control/config_get_configfile
[AREA_dashboard]
/dashboard/pages/.*html
[AREA_status]
/status
/mirror
[AREA_control]
.*
[User]
admin = admin
visitor = visitor
[Group]
administrators = admin
guests = visitor
[WritePermission]
administrators = dashboard,status,config
[ReadPermission]
guests = dashboard
[EVENT_OnStartup]
40 = out:Klingel,0,0,0.5
50 = out:Tueroeffner,0,1,3
[SIP-Phone]
sipphonetyp = linphone
sipserver_username = 622
sipserver_password = Geheim
local_port = 5060
sipserver_realm = 192.168.178.1
sipserver_server = 192.168.178.1
stun_server =
#
max_call_time = 10
call_timeout = 10
ua.max_calls = 2
#
[AdminNumbers]
**2 = active
**621 = active
**620 = active
**610 = active
call_timeout = 40
[keyboards]
onboardpins = gpio
[onboardpins_keyboard]
bouncetime = 200
[onboardpins_InputPins]
8 = call:**9
[onboardpins_OutputPins]
5 = Tueroeffner
8 = Klingel
[DTMF]
0 = out:Tueroeffner,0,1,3
[EVENT_OnSipPhoneMakeCall]
10 = out:Klingel,0,1,0.5
20 = out:Klingel,0,1,1
30 = out:Klingel,0,1,1
Alles anzeigen
Hier die Logdatei:
Code
2018-03-05 16:38:40,160 [INFO] [doorpi.conf.config_object] use configfile: /usr/local/etc/DoorPi/conf/doorpi.ini
2018-03-05 16:38:40,854 [INFO] [doorpi.status.webserver] Initiating WebService at ip and port 80
2018-03-05 16:38:41,181 [INFO] [doorpi.keyboard.KeyboardInterface] using multi-keyboard mode (keyboards: onboardpins)
2018-03-05 16:38:41,184 [INFO] [doorpi.keyboard.KeyboardInterface] trying to add keyboard 'onboardpins' to handler
2018-03-05 16:38:42,659 [INFO] [doorpi.sipphone.SipphoneInterface] found installed sipphone "linphone" and use this as default
2018-03-05 16:38:43,899 [INFO] [doorpi.sipphone.from_linphone] found 2 possible sounddevices:
2018-03-05 16:38:43,986 [INFO] [doorpi.sipphone.from_linphone] found 1 possible videodevices:
2018-03-05 16:38:44,026 [INFO] [doorpi.sipphone.from_linphone] using DoorPi with SIP-Server
2018-03-05 16:38:44,056 [INFO] [doorpi.doorpi] found EVENT_ section 'EVENT_OnSipPhoneMakeCall' in configfile
2018-03-05 16:38:44,091 [INFO] [doorpi.doorpi] registering action '10' for event 'OnSipPhoneMakeCall'
2018-03-05 16:38:44,123 [INFO] [doorpi.doorpi] registering action '20' for event 'OnSipPhoneMakeCall'
2018-03-05 16:38:44,146 [INFO] [doorpi.doorpi] registering action '30' for event 'OnSipPhoneMakeCall'
2018-03-05 16:38:44,162 [INFO] [doorpi.doorpi] found EVENT_ section 'EVENT_OnStartup' in configfile
2018-03-05 16:38:44,167 [INFO] [doorpi.doorpi] registering action '40' for event 'OnStartup'
2018-03-05 16:38:44,188 [INFO] [doorpi.doorpi] registering action '50' for event 'OnStartup'
2018-03-05 16:38:47,930 [INFO] [doorpi.doorpi] DoorPi started successfully
2018-03-05 16:38:47,933 [INFO] [doorpi.doorpi] BasePath is /usr/local/etc/DoorPi
2018-03-05 16:38:47,936 [INFO] [doorpi.doorpi] Weburl is http://klingel/
Alles anzeigen
Hier noch die Ausgabe von gpio readall:
Code
+-----+-----+---------+------+---+-Pi ZeroW-+---+------+---------+-----+-----+
| BCM | wPi | Name | Mode | V | Physical | V | Mode | Name | wPi | BCM |
+-----+-----+---------+------+---+----++----+---+------+---------+-----+-----+
| | | 3.3v | | | 1 || 2 | | | 5v | | |
| 2 | 8 | SDA.1 | IN | 1 | 3 || 4 | | | 5v | | |
| 3 | 9 | SCL.1 | OUT | 1 | 5 || 6 | | | 0v | | |
| 4 | 7 | GPIO. 7 | IN | 1 | 7 || 8 | 1 | IN | TxD | 15 | 14 |
| | | 0v | | | 9 || 10 | 1 | IN | RxD | 16 | 15 |
| 17 | 0 | GPIO. 0 | IN | 0 | 11 || 12 | 0 | IN | GPIO. 1 | 1 | 18 |
| 27 | 2 | GPIO. 2 | IN | 0 | 13 || 14 | | | 0v | | |
| 22 | 3 | GPIO. 3 | IN | 0 | 15 || 16 | 0 | IN | GPIO. 4 | 4 | 23 |
| | | 3.3v | | | 17 || 18 | 0 | IN | GPIO. 5 | 5 | 24 |
| 10 | 12 | MOSI | IN | 0 | 19 || 20 | | | 0v | | |
| 9 | 13 | MISO | IN | 0 | 21 || 22 | 0 | IN | GPIO. 6 | 6 | 25 |
| 11 | 14 | SCLK | IN | 0 | 23 || 24 | 1 | IN | CE0 | 10 | 8 |
| | | 0v | | | 25 || 26 | 1 | IN | CE1 | 11 | 7 |
| 0 | 30 | SDA.0 | IN | 1 | 27 || 28 | 1 | IN | SCL.0 | 31 | 1 |
| 5 | 21 | GPIO.21 | IN | 1 | 29 || 30 | | | 0v | | |
| 6 | 22 | GPIO.22 | IN | 1 | 31 || 32 | 0 | IN | GPIO.26 | 26 | 12 |
| 13 | 23 | GPIO.23 | IN | 0 | 33 || 34 | | | 0v | | |
| 19 | 24 | GPIO.24 | IN | 0 | 35 || 36 | 0 | IN | GPIO.27 | 27 | 16 |
| 26 | 25 | GPIO.25 | IN | 0 | 37 || 38 | 0 | IN | GPIO.28 | 28 | 20 |
| | | 0v | | | 39 || 40 | 0 | IN | GPIO.29 | 29 | 21 |
+-----+-----+---------+------+---+----++----+---+------+---------+-----+-----+
| BCM | wPi | Name | Mode | V | Physical | V | Mode | Name | wPi | BCM |
+-----+-----+---------+------+---+-Pi ZeroW-+---+------+---------+-----+-----+
Alles anzeigen