Das ist schon hart
Die DoorPiWeb-Dateien sind in /srv abgelegt
Hier meine doorpi.ini:
[AREA_config]
/control/config_get_configfile = None
/control/config_save = None
/control/config_value_delete = None
/control/config_value_get = None
/control/config_value_set = None
[AREA_control]
.* = None
[AREA_dashboard]
/dashboard/pages/.*html = None
[AREA_public]
.* = None
[AREA_status]
/mirror = None
/status = None
[AdminNumbers]
**610 = active
**612 = active
**613 = active
**622 = active
**623 = active
[DTMF]
"#0815" = out:Tueroeffner,1,0,2
[DoorPi]
base_path = /usr/local/etc/DoorPi
eventlog = !BASEPATH!/conf/eventlog.db
is_alive_led = blinking_led
last_snapshot = /srv/DoorPiWeb/dashboard/snapshot/2018-04-29_11-10-28.jpg
number_of_snapshots = 2
snapshot_path = /srv/DoorPiWeb/dashboard/snapshot
[DoorPiWeb]
indexfile = index.html
ip = 192.168.120.33
loginfile = login.html
online_fallback = http://motom001.github.io/DoorPiWeb
port = 80
public = AREA_public
www = /srv/DoorPiWeb
[EVENT_OnKeyPressed_prodsystem.0]
10 = take_snapshot:http://localhost:9000/?action=snapshot
20 = mailto:w.***@gmx.de,Mailversand mit Bild,Das ist das Bild als Mailtext,true
[EVENT_OnKeyPressed_prodsystem.1]
10 = take_snapshot:http://localhost:9000/?action=snapshot
20 = mailto:n.***@gmx.net,Mailversand mit Bild,Das ist das Bild als Mailtext,true
[Group]
administrator = wal
guests = visitor
[ReadPermission]
guests = dashboard
[SIP-Phone]
firewallpolicy = PolicyNoFirewall
audio_codecs = PCMA,PCMU
call_timeout = 30
capture_device = ALSA: Phnx MT202pcs
dialtone = !BASEPATH!/media/ShortDialTone.wav
dialtone_renew_every_start = False
dialtone_volume = 0
echo_cancellation_enabled = True
identity = DoorPi
local_port = 5060
max_call_time = 120
mic_gain_db = 0
playback_device = ALSA: Phnx MT202pcs
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.120.1
sipserver_username = 620
stun_server = 192.168.120.1
ua.max_calls = 2
video_codecs = VP8
video_device = StaticImage: Static picture
video_display_enabled = False
video_size = vga
[SMTP]
from = w.***@gmx.de
need_login = true
password = ********
port = 465
server = mail.gmx.net
signature = !EPILOG!
use_ssl = true
use_tls = true
username = w.***@gmx.de
[User]
visitor = visitor
walter = 0815
[WritePermission]
administrator = dashboard,status,config
[keyboards]
prodsystem = piface
[prodsystem_InputPins]
0 = call:**610#612#622#623
1 = call:**613
[prodsystem_OutputPins]
1 = Tueroeffner
2 = blinking_led
[prodsystem_keyboard]
bouncetime = 200
polarity = 0
pressed_on_keydown = True
Alles anzeigen
Meine Streamer Startdatei:
/etc/init.d/mjpg-streamer
#!/bin/sh
# /etc/init.d/mjpg_streamer
### BEGIN INIT INFO
# Provides: mjpg_streamer
# Required-Start: $all
# Required-Stop: $all
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: MJPG_Streamer_autostart
### END INIT INFO
start()
{
modprobe bcm2835-v4l2
sleep:2
echo "Starting mjpg-streamer..."
/usr/local/bin/mjpg_streamer -i "/usr/local/lib/mjpg-streamer/input_uvc.so -n -f 10 -r 640x480" -o "/usr/local/lib/mjpg-streamer/output_http.so -p 9000 -w /usr/local/www" >/dev/null 2>&1 &
}
stop()
{
echo "Stopping mjpg-streamer..."
kill -9 $(pidof mjpg_streamer) >/dev/null 2>&1
}
case "$1" in
start)
start
;;
stop)
stop
;;
restart)
stop
start
;;
*)
echo "Usage: $0 {start|stop|restart}"
;;
esac
exit 0
Alles anzeigen
Mehr habe ich nicht eingestellt und das läuft wie gesagt seit 2 Jahren.