Open-Source-Videos / Matrix-surveillance-camera-controller

This is the software installed on raspberry pi
MIT License
13 stars 1 forks source link

Not sending alerts or pics #12

Open johncarterofmars opened 8 months ago

johncarterofmars commented 8 months ago

Hello. I think I have everything installed correctly. Motioneye is working with 2 cameras and the ossc client is running. When it starts up, I receive the following message in the room in Element: {"type" : "list-recording-reply", "content" : "{'date_range': '2023-12-21T00:00:00, 2023-12-22T15:00:30', 'recordings': []}", "requestor_id" : "@REDACTED:matrix.org"} However, after this, I don't receive any messages.

I checked the logs for ossc and this is what I see: <DirCreatedEvent: event_type=created, src_path='/var/lib/motioneye/Camera2/2023-12-27', is_directory=True> 2023-12-27 20:17:35,443 - <DirCreatedEvent: event_type=created, src_path='/var/lib/motioneye/Camera2/2023-12-27', is_directory=True> <FileCreatedEvent: event_type=created, src_path='/var/lib/motioneye/Camera2/2023-12-27/20-17-25.mp4', is_directory=False> 2023-12-27 20:17:35,443 - <FileCreatedEvent: event_type=created, src_path='/var/lib/motioneye/Camera2/2023-12-27/20-17-25.mp4', is_directory=False>

Any suggestions to get this to send alerts on motion detection?

I appreciate it

johncarterofmars commented 8 months ago

I have some more information on this. I set up another test on a RPi and it works correctly. It took some work to get Motioneye working since Python2 isn't really available anymore, but the new branch works with Python3. However, the original set up with Ubuntu 22.04 still doesn't work. It sees the directories where the camera is dropping in pics. It even states in the logs it sees the DATE.jpg files. But it never does beyond that.

The logs show no errors. It just doesn't seem to be picking up the thumb files to send.

I don't know if this project is monitored anymore. If someone could suggest a solution, I would appreciate it. A suggestion - modify the script to also send the DATE.jpg files, since Motioneye can make its own motion-activated pics.