darton / RPiMS

Raspberry Pi monitoring system offering: live video transmission recording the stream using UV4L, reading door, window, motion, temperature, humidity, pressure sensors, presentation of their values and sending their states to the Zabbix server. It also offers a weather station: wind speed and direction meter, rainfall meter
GNU General Public License v2.0
11 stars 5 forks source link

About camera feature. #3

Closed hasanaltin closed 2 years ago

hasanaltin commented 2 years ago

Have a good day. Thanks for the great project. I realized that there is two problem about camera. One of them is the rotation doesn't work, and the second one is when a door is opened the camera doesn't start recording. Thanks in advance.

darton commented 2 years ago

Please do a fresh installation.

hasanaltin commented 2 years ago

Thanks for the answer. This morning I made a fresh installation on RP4 and the problem is persisting when i check the http://192.168.xxx.xxx:8080/stream address. On the other hand, I stopped seeing the camera on the frontpage after your new commit. Seems you have some new ideas :)

darton commented 2 years ago

download this files: https://raw.githubusercontent.com/darton/RPiMS/master/RPiMS/videorecorder.sh https://raw.githubusercontent.com/darton/RPiMS/master/RPiMS/rpims.py https://raw.githubusercontent.com/darton/RPiMS/master/www/index_html.php

Please, check if you have ffmpeg installed, if not then install:

sudo apt install ffmpeg

and then restart rpims sudo systemctl restart rpims

hasanaltin commented 2 years ago

thanks for the new commit. ffmpeg is checked and seen that was already installed with the fresh installation. the other 3 files were changed and checked with few browsers but the result is still same.

darton commented 2 years ago

Show me please: 1. ls /lib/systemd/system |grep rpims 2. dpkg -l | grep -Eqw "gdm3|sddm|lxdm|xdm|lightdm|slim|wdm" 3. cat /etc/os-release 4. ls -la /etc/uv4l/ 5. ls -la /home/pi/Videos

darton commented 2 years ago

Clear the browser cache.

hasanaltin commented 2 years ago

Here is output of the commands as you wish.

image

darton commented 2 years ago

Please execute the following commands: sudo mv -f /etc/uv4l/uv4l-raspicam.conf /etc/uv4l/uv4l-raspicam.conf.org sudo ln -s /var/www/html/conf/uv4l-raspicam.conf /etc/uv4l/uv4l-raspicam.conf

darton commented 2 years ago

And now check if the camera parameter control works

darton commented 2 years ago

And enable the Legacy Camera support from the Interface Options menu of the following system command and reboot:

sudo raspi-config
sudo reboot
darton commented 2 years ago

Or use command: sudo raspi-config nonint do_legacy 0 sudo reboot

hasanaltin commented 2 years ago

It started working after moving the conf files to another location. Thanks for your help.

darton commented 2 years ago

Thanks for finding the bug. The installer has been improved.