Hi,
it's my first attempt to write in this forum.
I am testing DoorPi for few weeks now and I have successfully managed to place a call through SIP.
I am very excited with this project and I want to thank all of you for your great effort creating it, since I was looking for this quite sometime now.
Although, I still have a problem since I can not use any output pin on my Raspberry Pi 1 board.
I get the following error when I'm pressing on output activation key on my phone dial:
Code
2016-05-24 22: 51: 28,874 [ERROR] [doorpi.action.handler] [Z2BORL] error while fire action OutTriggeredAction with args () and kwargs { 'stop_pin': 'NoStopPinSet', 'END_VALUE': '0' , 'timeout' 3.0, 'pin', '12', 'START_VALUE': '1'} for event_name OnDTMF _ "#"
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/doorpi/action/handler.py", line 284, in fire_event_synchron
result = action.run (silent)
File "/usr/local/lib/python2.7/dist-packages/doorpi/action/base.py", line 48, in run
return self .__ callback (** self .__ kwargs)
File "/usr/local/lib/python2.7/dist-packages/doorpi/action/SingleActions/out_triggered.py", line 14, in out_triggered
keyboard.set_output doorpi.DoorPi (). (Pin, START_VALUE)
File "/usr/local/lib/python2.7/dist-packages/doorpi/keyboard/KeyboardInterface.py", line 133, in set_output
raise UnknownOutputPin ( 'output pin with name% s is unknown% s'% (pin, self .__ Output Mapping Table))
UnknownOutputPin: output pin with 12 name is unknown { 'Entry Door': 'onboardpins'}
Alles anzeigen
I am using the Following:
Raspberry Pi Model B (Rev 2.0, 512Mb)
Raspbian Jessie lite
DoorPi 2.5.0.2
and my config is:
Code
[DTMF]
"#" = Out: 12,1,0,3
[DoorPi]
base_path = / usr / local / etc / DoorPi
eventlog =! BASEPATH! /conf/eventlog.db
is_alive_led =
last_snapshot =
snapshot_path =
[DoorPiWeb]
indexfile = index.html
ip =
login file = login.html
online_fallback = http://motom001.github.io/DoorPiWeb
port = 80
public = AREA_public
www =! BASEPATH! /../ DoorPiWeb
[EVENT_OnStartup]
10 = sleep: 1
[Group]
administrator = door
[SIP Phone]
firewall policy = PolicyNoFirewall
audio_codecs = PCMA, PCMU
call_timeout = 15
capture_device = ALSA: USB PnP Sound Device
dialtone =! BASEPATH! /media/ShortDialTone.wav
dialtone_renew_every_start = False
dialtone_volume = 35
echo_cancellation_enabled = False
identity = DoorPi
local_port = 5060
max_call_time = 120
playback_device = ALSA: USB PnP Sound Device
record_while_dialing = False
records =! BASEPATH! /records/%Y-%m-%d_%H-%M-%S.wav
sipphonetyp = linphone
sipserver_password = ****
sipserver_realm =
sipserver_server = sip. ****. com
sipserver_username = ****
stun_server =
ua.max_calls = 2
video_codecs = VP8
video_device = Static Image: Static picture
video_display_enabled = False
video_size = vga
[User]
door = pi
[Write Permission]
administrator = installer
[Keyboards]
onboardpins = gpio
[Onboardpins_InputPins]
11 = call: ****
[Onboardpins_OutputPins]
12 = Entry Door
[Onboardpins_keyboard]
bouncetime = 200
mode = BOARD
polarity = 0
pressed_on_keydown = True
pull_up_down = PUD_DOWN
Alles anzeigen
Thank you for your time and effort