Hello
I have successful install doorpi all work fine but on the output pin i want define a stop_pins but it doesn't work.
I have found on bug in tyhe source code in out_triggered.py (replace if len(parameters) == 5: by if len(parameter_list) == 5:)
Config load ok but when i whant use the stop pin it doesnt work.
My config file
Code: doorpi.ini
[DoorPi]
base_path = /usr/local/etc/DoorPi
eventlog = !BASEPATH!/conf/eventlog.db
is_alive_led =
last_snapshot = !BASEPATH!/../DoorPiWeb/snapshots/%Y-%m-%d_%H-%M-%S.jpg
snapshot_path = !BASEPATH!/../DoorPiWeb/snapshots/
number_of_snapshots = 5
[DoorPiWeb]
indexfile = index.html
ip =
loginfile = login.html
online_fallback = http://motom001.github.io/DoorPiWeb
port = 80
public = AREA_public
www = !BASEPATH!/../DoorPiWeb
[SIP-Phone]
firewallpolicy = PolicyNoFirewall
audio_codecs = PCMA,PCMU
call_timeout = 15
capture_device = ALSA: USB Device 0x46d:0x802
dialtone = !BASEPATH!/media/ShortDialTone.wav
dialtone_renew_every_start = False
dialtone_volume = 35
echo_cancellation_enabled = False
identity = DoorPi
local_port = 5062
max_call_time = 120
playback_device = ALSA: default device
record_while_dialing = False
records = !BASEPATH!/records/%Y-%m-%d_%H-%M-%S.wav
sipphonetyp = linphone
sipserver_password = raspberry
sipserver_realm = 1000
sipserver_server = 192.168.1.67
sipserver_username = 1000
stun_server =
ua.max_calls = 2
video_codecs = VP8
video_device = StaticImage: Static picture
#video_device = V4L2: /dev/video0
video_display_enabled = False
video_size = vga
[AdminNumbers]
1010 = active
1011 = active
1012 = active
1013 = active
1014 = active
1015 = active
[SMTP]
server = smtp.gmail.com
port = 465
need_login = True
username = xxxxxxxxxxxxxxxxxx
password = xxxxxxxxxxxxxxxxxx
use_tls = True
#from = xxxxxxxxxxxxxxxxxxxx
from = xxxxxxxxxxxxxxx
#========= Configuration du Clavier ====================
[keyboards]
onboardpins = gpio
fsio = filesystem
#------------- Debut Configuuration du clavier Virtuel --------
[fsio_keyboard]
reset_input = True
pressed_on_keydown = True
base_path_input = /usr/local/etc/DoorPi/fs_io/
base_path_output = /usr/local/etc/DoorPi/fs_io/
[fsio_InputPins]
21 = sleep:0.1
#15 = sleep:0.1
20 = sleep:0.1
test = out:Spot,1,0,300,fsio.21
[fsio_OutputPins]
16 = Virtual_Portail
18 = Virtual_Spot
#------------- Fin Configuration du clavier Virtuel --------
#------------- Debut Configuuration du clavier GPIO --------
[onboardpins_keyboard]
pull_up_down = PUD_UP
bouncetime = 100
polarity = 1
pressed_on_keydown = True
mode = BOARD
[onboardpins_InputPins]
11 = sleep:0.1
#11 = sleep:0.1
#13 = sleep:0.1
#15 = sleep:0.1
[onboardpins_OutputPins]
16 = Portail
18 = Spot
#38 = Gong-Andreas
#40 = Blink LED
#------------- Fin Configuuration du clavier GPIO --------
[DTMF]
#ck evtl. mit wget, wie aus beispiel im forum ca seite 75
#1 = os_execute:/usr/local/etc/DoorPi/ck.sh
#"1" = out:Portail,1,0,3
"1"
"2"
#====================== Configuration des evenements ===================
[EVENT_OnKeyPressed_20]
10 = take_snapshot:http://127.0.0.1:9000/?action=snapshot
[EVENT_OnKeyPressed_fsio.15]
10 = call:2001
20 = take_snapshot:http://127.0.0.1:9000/?action=snapshot
30 = mailto:xxxxxxxxx@gmail.com,Portail ,On sonne a la porte à %H:%M le %d/%m/%Y.,true
[EVENT_OnKeyPressed_onboardpins.11]
10 = call:2001
20 = take_snapshot:http://127.0.0.1:9000/?action=snapshot
30 = mailto:xxxxxxxx@gmail.com,Portail ,On sonne a la porte à %H:%M le %d/%m/%Y.,true
[EVENT_OnDTMF_"1"]
#10 = os_execute:/usr/bin/pico2wave -l fr-FR -w /tmp/lookdave.wav "Le portaille souvre vous pouvez entrer ." && aplay /tmp/lookdave.wav
10 = out:Portail,1,0,3
20 = out:Virtual_Portail,1,0,3
30 = take_snapshot:http://127.0.0.1:9000/?action=snapshot
40 = mailto:xxxxxxx@gmail.com,Portail ,Ouverture portail voiture à %H:%M le %d/%m/%Y.,true
50 = hangup:5
[EVENT_OnDTMF_"3"]
#10 = os_execute:/usr/bin/pico2wave -l fr-FR -w /tmp/lookdave.wav "Le portaille souvre vous pouvez entrer ." && aplay /tmp/lookdave.wav
10 = out:Portail,1,0,6
20 = out:Virtual_Portail,1,0,6
30 = take_snapshot:http://127.0.0.1:9000/?action=snapshot
40 = mailto:xxxxxxxx@gmail.com,Portail,Ouverture portail pieton à %H:%M le %d/%m/%Y.,true
50 = hangup:5
[EVENT_OnDTMF_"2"]
#10 = os_execute:/usr/bin/pico2wave -l fr-FR -w /tmp/lookdave.wav "Le portaille souvre vous pouvez entrer ." && aplay /tmp/lookdave.wav
10 = out:Spot,1,0,300,20
20 = out:Virtual_Spot,1,0,300,20
30 = take_snapshot:http://127.0.0.1:9000/?action=snapshot
40 = mailto:xxxx@gmail.com,Portail,Allumage du Spot à %H:%M le %d/%m/%Y.,true
[EVENT_OnShutdown]
10 = take_snapshot:http://127.0.0.1:9000/?action=snapshot
20 = mailto:xxxx@gmail.com,Portail,Extinction du portier video à %H:%M le %d/%m/%Y.,false
30 = out:Portail,0
40 = out:Virtual_Portail,0
50 = out:Spot,0
60 = out:Virtual_Spot,0
[EVENT_OnStartup]
10 = sleep:1
20 = take_snapshot:http://127.0.0.1:9000/?action=snapshot
30 = mailto:xxx@gmail.com,Portail,Allumage du portier video à %H:%M le %d/%m/%Y.,false
Alles anzeigen
please help me