Go to advanced search

by mugurdi
Sun Feb 17, 2019 7:07 am
Forum: Beginners
Topic: I can not start motion as daemon
Replies: 20
Views: 5779

Re: I can not start motion as daemon

Hello, I continue with my problem: A) In /etc/default/motion file is set daemon yes # set to 'yes' to enable the motion daemon start_motion_daemon=yes B) To avoid problems of permissions, I have executed: sudo chown motion:motion /var/run/motion sudo chown motion:motion /var/log/motion sudo chown mo...
by mugurdi
Wed Nov 21, 2018 5:29 am
Forum: General discussion
Topic: Where are errors stored when executing a Python program?
Replies: 3
Views: 429

Re: Where are errors stored when executing a Python program?

Thanks! I send it to a website that is private of mine . I created an FTP account there. I send it from the main program that collects weather data: subprocess.Popen(["python3", "/home/pi/xxxx/send_FTP_yesyerday.py"]) The strange thing is that some voices send well, and other days it does not send t...
by mugurdi
Tue Nov 20, 2018 5:39 am
Forum: General discussion
Topic: Where are errors stored when executing a Python program?
Replies: 3
Views: 429

Where are errors stored when executing a Python program?

Hello I have a Raspberry connected to the home wifi, and sends to a web, via FTP, a file with the daily meteorological data of the previous day when the new day begins. For this I use a program in python. The problem that I have is that some days the file arrives well to the server, other days the f...
by mugurdi
Wed Jul 25, 2018 4:31 am
Forum: Beginners
Topic: Know how a process has been started
Replies: 2
Views: 267

Re: Know how a process has been started

Thanks!
by mugurdi
Wed Jul 25, 2018 4:29 am
Forum: Beginners
Topic: I can not start motion as daemon
Replies: 20
Views: 5779

Re: I can not start motion as daemon

Hello,
I deleted /var/log/motion/motion.log, I made reboot and no file called motion.log is created.

I'm thinking about reinstalling everything: in addition to motion what should I reinstall: ffmpeg? More things?

I appreciate your help, because I'm lost.
by mugurdi
Tue Jul 24, 2018 4:05 am
Forum: Beginners
Topic: Know how a process has been started
Replies: 2
Views: 267

Know how a process has been started

Hello, I have a python program weather.py that I want to run at the beginning, it collects the weather data from some sensors. In /etc/rc.local I wrote the line: sudo python3 /home/pi/weather/weather.py & When I look at the processes, I see two processes: pi @ raspberrypi: ~ $ ps -ef | grep weather ...
by mugurdi
Tue Jul 24, 2018 2:55 am
Forum: Beginners
Topic: I can not start motion as daemon
Replies: 20
Views: 5779

Re: I can not start motion as daemon

I think that in /etc/motion/motion.conf configuration file everything is fine: ############################################################ # Daemon ############################################################ # Start in daemon (background) mode and release terminal (default: off) daemon on # File t...
by mugurdi
Tue Jul 24, 2018 2:49 am
Forum: Beginners
Topic: I can not start motion as daemon
Replies: 20
Views: 5779

Re: I can not start motion as daemon

Hello,
I do not understand anything...
I have done what you suggest: I have deleted /var/log/syslog and I have done reboot
Then with grep motion /var/log/syslog no line comes out, and the new syslog has about 600 lines.

I think this file is correct

Image
by mugurdi
Mon Jul 23, 2018 5:07 am
Forum: Beginners
Topic: I can not start motion as daemon
Replies: 20
Views: 5779

Re: I can not start motion as daemon

I rebooted (no motion started) $ ps -ef | grep motion pi 1259 1210 0 06:54 pts/1 00:00:00 grep --color=auto motion $ tail -n 100 /var/log/syslog Jul 23 06:34:11 raspberrypi bluetoothd[676]: sap-server: Operation not permitted (1) Jul 23 06:34:11 raspberrypi bluetoothd[676]: Endpoint registered: send...
by mugurdi
Sun Jul 22, 2018 3:45 am
Forum: Beginners
Topic: I can not start motion as daemon
Replies: 20
Views: 5779

Re: I can not start motion as daemon

If in the console I type

Code: Select all

:~ $ motion
the two errors happen

If I type

Code: Select all

:~ $ sudo motion
the program starts normally.
by mugurdi
Sun Jul 22, 2018 3:06 am
Forum: Beginners
Topic: I can not start motion as daemon
Replies: 20
Views: 5779

Re: I can not start motion as daemon

Thanks, lmarmisa the blank spaces are introduced by the Google translator when some text with non-alphanumeric characters is pasted in the source window ... I forgot to correct it. In fact, the syntax is fine in the motion file. My problem is the permissions. How can I avoid "problem creating direct...
by mugurdi
Sat Jul 21, 2018 4:50 am
Forum: Beginners
Topic: I can not start motion as daemon
Replies: 20
Views: 5779

Re: I can not start motion as daemon

Hello, I have permission problems. what should I do? Change permissions to the /var/run/ folder? What permissions should I put? [0:motion] [NTC] [ALL] [Jul 20 16:45:14] become_daemon: Motion going to daemon mode [0:motion] [ERR] [ALL] [Jul 20 16:45:14] create_path: Problem creating directory /var/ru...
by mugurdi
Fri Jul 20, 2018 3:06 am
Forum: Beginners
Topic: I can not start motion as daemon
Replies: 20
Views: 5779

Re: I can not start motion as daemon

Thank you very much for your responses. Imarmisa : in file/etc/default/motion I have written "start_motion_daemon = yes" But when executing systemctl status motion The answer is : Unit motion.service could not be found. DougieLawson : I executed the following and this has been the answer: sudo updat...
by mugurdi
Thu Jul 19, 2018 5:06 am
Forum: Beginners
Topic: I can not start motion as daemon
Replies: 20
Views: 5779

I can not start motion as daemon

Hello, I have motion installed with a picamera. If I start motion from the console, it's fine. but I can not configure it as a daemon. I enabled motion to run as a daemon, editing "/etc/default/motion" file and setting start_motion_daemon = yes I enabled motion by the command: sudo systemctl enable ...
by mugurdi
Sat Jun 09, 2018 3:14 am
Forum: Weather station
Topic: Weatherproof box for the Raspberry with camera
Replies: 5
Views: 6395

Re: Weatherproof box for the Raspberry with camera

Thank you for your answers.
I do not understand very well the question about the use of the EEPROM. I will use an Arduino under Raspberry to collect the data every 10 sec, and the Motion software will be in charge of the camera.
by mugurdi
Fri Jun 08, 2018 4:36 am
Forum: Weather station
Topic: Weatherproof box for the Raspberry with camera
Replies: 5
Views: 6395

Weatherproof box for the Raspberry with camera

Hello, I want to build a weather station with the raspberry pi enclosed in a waterproof box that is used for electrical connections on the outside. I want to add a pi camera for the surveillance of the garden, making a small window to the box. My questions: - What transparent material is the best: g...
by mugurdi
Thu Mar 15, 2018 4:52 am
Forum: General discussion
Topic: How can I limit the number of emails when motion is detected?
Replies: 3
Views: 534

Re: How can I limit the number of emails when motion is detected?

Hello, The code to send email I got it from here: https://github.com/mattgmg1990/raspberrypi_security_cam/blob/master/email_on_motion.py I will have to add some delay after sending the message? #! /usr/bin/python import smtplib import os from email.mime.image import MIMEImage from email.mime.text im...
by mugurdi
Wed Mar 14, 2018 6:19 am
Forum: General discussion
Topic: How can I limit the number of emails when motion is detected?
Replies: 3
Views: 534

How can I limit the number of emails when motion is detected?

Hello, I have a Raspberry 3 with its camera. I installed motion. When it detects motion, it saves 3-4 images in the target directory for pictures, but sends many emails, sometimes up to 20 or more. I have configured it like this: on_motion_detected python /home/pi/motion/email_on_motion.py %f How ca...
by mugurdi
Tue Mar 13, 2018 4:08 am
Forum: General discussion
Topic: I can not stream and motion detection simultaneously
Replies: 2
Views: 418

Re: I can not stream and motion detection simultaneously

Thank you for your advice.
The advantage that I see these two scripts that I mentioned above is that they are very simple for me (I am not an expert in python) and I can easily adapt them to my needs.
by mugurdi
Mon Mar 12, 2018 6:53 am
Forum: General discussion
Topic: I can not stream and motion detection simultaneously
Replies: 2
Views: 418

I can not stream and motion detection simultaneously

Hello, I have two programs in python that work well for me: 1) motion.py python based motion detection based on http://geek-university.com/raspberry-pi/motion-detector/ 2) stream.py from http://picamera.readthedocs.io/en/latest/recipes2.html#web-streaming I can get stream at http://192.168.1.19:8000...
by mugurdi
Sun Feb 18, 2018 3:23 am
Forum: General discussion
Topic: I can not change log folder permissions
Replies: 2
Views: 1922

Re: I can not change log folder permissions

Thanks for your answer.
I think I've found out the reason: once thinking about eliminating some permissions problem, I changed the permissions to the folder / etc
Now I have executed

Code: Select all

phexec chmod 0440 /etc/sudoers
And problem solved!
by mugurdi
Sat Feb 17, 2018 5:34 am
Forum: General discussion
Topic: I can not change log folder permissions
Replies: 2
Views: 1922

I can not change log folder permissions

Hello, I installed Motion on my new Raspberry Pi. When I try to execute it by typing motion -n I get permission error in a log file. I try to change permissions, but I can not, nor using sudo. In my PC I have Mint 18, really the permissions are much easier using sudo. What I can do? (I'm connected t...
by mugurdi
Tue Feb 06, 2018 6:29 am
Forum: General discussion
Topic: I can not edit 'rc.local' with leafpad text editor
Replies: 6
Views: 1029

Re: I can not edit 'rc.local' with leafpad text editor

Thanks!

Code: Select all

$ gksudo leafpad /etc/rc.local
works well
by mugurdi
Tue Feb 06, 2018 4:23 am
Forum: General discussion
Topic: I can not edit 'rc.local' with leafpad text editor
Replies: 6
Views: 1029

Re: I can not edit 'rc.local' with leafpad text editor

Hello,
My question was not entirely accurate: I am connected to RPi from my Mint PC with a VNC interface (tigthvnc-jviewer) and when I tray to use leafpad, I get this error:

Code: Select all

pi@raspberrypi:~ $ sudo leafpad /etc/rc.local
Client is not authorized to connect to Serverleafpad: Cannot open display: 
by mugurdi
Mon Feb 05, 2018 3:47 pm
Forum: General discussion
Topic: I can not edit 'rc.local' with leafpad text editor
Replies: 6
Views: 1029

I can not edit 'rc.local' with leafpad text editor

Hello,
The nano editor seems uncomfortable. How can I edit files like "rc.local" with a friendlier text editor?

Go to advanced search