Hallo ich habe auch so meine Probleme gehabt. Mitlerweile bekomme ich bei erzeugen eines Snapshots immernoch Fehlermeldungen, trotzdem werden diese als JPG erstellt und auch an der richtigen Stelle abgelegt.
Habe zum testen extra 2 Snapshots auf ein Event gelegt.
Vielleicht weiß jemand ne Antowort auf das Problem.
Ich nutze übrigens Skretch.
Code: doorpi.ini
[DoorPi]
base_path = /usr/local/etc/DoorPi
eventlog = !BASEPATH!/conf/eventlog.db
is_alive_led = blinking_led
snapshot_path = /home/doorpi/records
number_of_snapshots = 10
snapshot_size = 1280x720
[DoorPiWeb]
indexfile = index.html
ip =
loginfile = login.html
online_fallback = http://motom001.github.io/DoorPiWeb
port = 80
public = AREA_public
www = /home/doorpi/records
[AREA_public]
.*
[AREA_config]
.*
[AREA_dashboard]
.*
[AREA_status]
.*
[User]
door = pi
visitor = visitor
[Group]
administrators = door
guests = visitor
[WritePermission]
administrators = dashboard,status,config
[ReadPermission]
guests = dashboard
[AdminNumbers]
* = active
[DTMF]
[SIP-Phone]
firewallpolicy = PolicyNoFirewall
audio_codecs = PCMA,PCMU
call_timeout = 15
capture_device = ALSA: USB Audio 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 Audio Device
record_while_dialing = False
records = /home/doorpi/records/%Y-%m-%d_%H-%M-%S.wav
sipphonetyp = linphone
sipserver_password = passwort
sipserver_realm = fritz.box
sipserver_server = 1192.168.0.1
sipserver_username = username
stun_server =
ua.max_calls = 2
video_codecs = VP8
video_device = StaticImage: Static picture
video_display_enabled = False
video_size = vga
[keyboards]
onboardpins = piface
webservice = filesystem
[webservice_keyboard]
base_path_input = /home/doorpi/keyboard/inputs/
base_path_output = /home/doorpi/keyboard/outputs/
reset_input = false
[onboardpins_keyboard]
bouncetime = 200
polarity = 0
pull_up_down = PUD_UP
[onboardpins_InputPins]
0 = call:01718109355
1 = sleep:0
4 = sleep:0
5 = sleep:0
6 = sleep:0
7 = sleep:0
[onboardpins_OutputPins]
0 = door
1 = light
2 = dashlighton
3 = irlight
4 = hardlock
6 = amp
7 = blinking_led
[EVENT_OnStartup]
10 = sleep:1
20 = out:amp,1,0,2
[EVENT_OnMediaRequired]
10 = out:amp,1
[EVENT_OnMediaNotRequired]
10 = out:amp,0
[EVENT_OnKeyPressed_onboardpins.0]
10 = take_snapshot
20 = os_execute:/usr/local/etc/DoorPi/scripts/LoxoneNotifyDoorBellSignal.py
30 = take_snapshot:http://192.168.178.61:9000?action=snapshot
Alles anzeigen
Code: doorpi.log
2018-06-09 15:05:50,472 [WARNING] [doorpi.action.handler] source doorpi.sipphone.linphone_lib.Player unknown - skip fire_event OnPlayerStopped
2018-06-09 15:05:55,919 [INFO] [doorpi.conf.config_object] use configfile: /usr/local/etc/DoorPi/conf/doorpi.ini
2018-06-09 15:05:55,983 [INFO] [doorpi.status.webserver] Initiating WebService at ip and port 80
2018-06-09 15:05:55,997 [INFO] [doorpi.keyboard.KeyboardInterface] using multi-keyboard mode (keyboards: webservice, onboardpins)
2018-06-09 15:05:55,998 [INFO] [doorpi.keyboard.KeyboardInterface] trying to add keyboard 'webservice' to handler
2018-06-09 15:05:55,999 [WARNING] [root] section webservice_InputPins not found in configfile
2018-06-09 15:05:56,000 [WARNING] [root] section webservice_OutputPins not found in configfile
2018-06-09 15:05:56,149 [WARNING] [root] section webservice_OutputPins not found in configfile
2018-06-09 15:05:56,150 [INFO] [doorpi.keyboard.KeyboardInterface] trying to add keyboard 'onboardpins' to handler
2018-06-09 15:05:56,700 [INFO] [doorpi.sipphone.SipphoneInterface] found installed sipphone "linphone" and use this as default
2018-06-09 15:05:56,931 [INFO] [doorpi.sipphone.from_linphone] found 3 possible sounddevices:
2018-06-09 15:05:56,936 [INFO] [doorpi.sipphone.from_linphone] found 2 possible videodevices:
2018-06-09 15:05:56,939 [INFO] [doorpi.sipphone.from_linphone] using DoorPi with SIP-Server
2018-06-09 15:05:56,942 [INFO] [doorpi.doorpi] found EVENT_ section 'EVENT_OnMediaNotRequired' in configfile
2018-06-09 15:05:56,943 [INFO] [doorpi.doorpi] registering action '10' for event 'OnMediaNotRequired'
2018-06-09 15:05:56,950 [INFO] [doorpi.doorpi] found EVENT_ section 'EVENT_OnStartup' in configfile
2018-06-09 15:05:56,951 [INFO] [doorpi.doorpi] registering action '10' for event 'OnStartup'
2018-06-09 15:05:56,953 [INFO] [doorpi.doorpi] registering action '20' for event 'OnStartup'
2018-06-09 15:05:56,954 [INFO] [doorpi.doorpi] found EVENT_ section 'EVENT_OnMediaRequired' in configfile
2018-06-09 15:05:56,955 [INFO] [doorpi.doorpi] registering action '10' for event 'OnMediaRequired'
2018-06-09 15:05:56,956 [INFO] [doorpi.doorpi] found EVENT_ section 'EVENT_OnKeyPressed_onboardpins.0' in configfile
2018-06-09 15:05:56,957 [INFO] [doorpi.doorpi] registering action '10' for event 'OnKeyPressed_onboardpins.0'
2018-06-09 15:05:56,963 [INFO] [doorpi.doorpi] registering action '20' for event 'OnKeyPressed_onboardpins.0'
2018-06-09 15:05:56,967 [INFO] [doorpi.doorpi] registering action '30' for event 'OnKeyPressed_onboardpins.0'
2018-06-09 15:05:56,969 [WARNING] [root] section webservice_InputPins not found in configfile
2018-06-09 15:06:00,003 [INFO] [doorpi.doorpi] DoorPi started successfully
2018-06-09 15:06:00,004 [INFO] [doorpi.doorpi] BasePath is /usr/local/etc/DoorPi
2018-06-09 15:06:00,006 [INFO] [doorpi.doorpi] Weburl is http://DoorPi/
2018-06-09 15:25:23,432 [ERROR] [doorpi.action.handler] [6HOCUA] error while fire action SnapShotAction with args () and kwargs {'snapshot_path': '/home/doorpi/records'} for event_name OnKeyPressed_onboardpins.0
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/take_snapshot.py", line 49, in get_snapshot_from_picam
with picamera.PiCamera() as camera:
File "/usr/lib/python2.7/dist-packages/picamera/camera.py", line 433, in __init__
self._init_preview()
File "/usr/lib/python2.7/dist-packages/picamera/camera.py", line 513, in _init_preview
self, self._camera.outputs[self.CAMERA_PREVIEW_PORT])
File "/usr/lib/python2.7/dist-packages/picamera/renderers.py", line 558, in __init__
self.renderer.inputs[0].connect(source).enable()
File "/usr/lib/python2.7/dist-packages/picamera/mmalobj.py", line 2212, in enable
prefix="Failed to enable connection")
File "/usr/lib/python2.7/dist-packages/picamera/exc.py", line 184, in mmal_check
raise PiCameraMMALError(status, prefix)
PiCameraMMALError: Failed to enable connection: Out of resources
Alles anzeigen