Go to advanced search

by Fox Mulder
Wed Apr 04, 2018 5:19 pm
Forum: Camera board
Topic: PiKrellCam: motion vector detect + OSD web interface
Replies: 1485
Views: 365532

Re: PiKrellCam: motion vector detect + OSD web interface

Hi, i have a little annoying problem when using pikrellcam with an read-only file-system. I mounted all necessary directories as tmpfs and the root file-system as read only so i can shut down the rpi with no data loss. The live video works fine as long as i mount the root fs writeable. But as soon a...
by Fox Mulder
Thu Apr 27, 2017 6:41 pm
Forum: Camera board
Topic: PiKrellCam: motion vector detect + OSD web interface
Replies: 1485
Views: 365532

Re: PiKrellCam: motion vector detect + OSD web interface

Here is an example for a standard email relay configuration if you have an existing email address at the provider gmx.net for example. Let's say you have an email account at gmx.net like [email protected].net . Then your email provider gmx has a smtp server available to accept emails from you at mail.gmx.net...
by Fox Mulder
Tue Apr 25, 2017 10:59 pm
Forum: Camera board
Topic: PiKrellCam: motion vector detect + OSD web interface
Replies: 1485
Views: 365532

Re: PiKrellCam: motion vector detect + OSD web interface

I now know whats causing this "invaild Email Address", its the 'From' address that is using the [email protected].com which is failing to send to outlook.com becuase the email doesnt exist. I never set this address up until it appeared in the error log when using Mutt instead of Mpack. Mpack just tells me...
by Fox Mulder
Sat Apr 22, 2017 8:47 am
Forum: Camera board
Topic: PiKrellCam: motion vector detect + OSD web interface
Replies: 1485
Views: 365532

Re: PiKrellCam: motion vector detect + OSD web interface

Do i need to require a registered domain name for my network in order to setup Postfix? [email protected].com... No. You have to configure postfix to just relay emails to your email provider. There are different kind of setups and you have to use the right one. You can also configure postfix to act ...
by Fox Mulder
Tue Apr 18, 2017 11:41 am
Forum: Camera board
Topic: PiKrellCam: motion vector detect + OSD web interface
Replies: 1485
Views: 365532

Re: PiKrellCam: motion vector detect + OSD web interface

I edited smtp.conf and replaced the mpack script with this as i assume would be correct. # EMAIL_JPEG=$THUMB_JPEG # Edit MY_EMAIL to your email address to email the preview jpeg. # ## [email protected].com ## mpack -s [email protected]$HOSTNAME $EMAIL_JPEG $MY_EMAIL ## echo "mpack -s pikr...
by Fox Mulder
Tue Apr 18, 2017 9:46 am
Forum: Camera board
Topic: PiKrellCam: motion vector detect + OSD web interface
Replies: 1485
Views: 365532

Re: PiKrellCam: motion vector detect + OSD web interface

I went back into it to get another try, i got it to work but only for ssmtp command below that sent to my Outlook account successfully... i used App passwords for thr Auth section in ssmtp.conf. STARTTLS and port 587. However, it seems to not work with mpack test command in order to send the jpeg m...
by Fox Mulder
Fri Apr 14, 2017 9:11 am
Forum: Camera board
Topic: PiKrellCam: motion vector detect + OSD web interface
Replies: 1485
Views: 365532

Re: PiKrellCam: motion vector detect + OSD web interface

314_PIE wrote:Is it worth setting up SSL for Nginx? Im not going to be accessing it from outside of the network.
If the pi is not reachable from the internet you don't need to bother with SSL. Else i would use it just to be sure that no one can sniff your data. ;)
by Fox Mulder
Thu Apr 13, 2017 9:47 am
Forum: Camera board
Topic: PiKrellCam: motion vector detect + OSD web interface
Replies: 1485
Views: 365532

Re: PiKrellCam: motion vector detect + OSD web interface

I created a script: #!/bin/bash # # Nginx directory is created after every reboot with the use of crontab (@reboot) # sudo mkdir -p /var/log/nginx # # sudo touch /var/log/nginx/error.log # # sudo touch /var/log/nginx/access.log # exit 0 I don't think you need to create the *.log files because these...
by Fox Mulder
Wed Apr 12, 2017 11:00 pm
Forum: Camera board
Topic: PiKrellCam: motion vector detect + OSD web interface
Replies: 1485
Views: 365532

Re: PiKrellCam: motion vector detect + OSD web interface

Geez, this is not good... dont know what i did wrong, theres something wrong with tmpfs that fails to start nginx and removed the nginx log file by the looks of it.. I read your post and edited before proceeding to reboot.. yesterday, pikrellcam was working as expected after a reinstall, did couple...
by Fox Mulder
Wed Apr 12, 2017 9:20 am
Forum: Camera board
Topic: PiKrellCam: motion vector detect + OSD web interface
Replies: 1485
Views: 365532

Re: PiKrellCam: motion vector detect + OSD web interface

Yea i guess i don't really need old system logs, but i dont seem to understand how ramdisk can clear the actual logs in the .log files which i think removes the whole /var/log directory because it is stored in ramdisk. then after reboot things stop functioning because they cant store their logs. Th...
by Fox Mulder
Tue Apr 11, 2017 9:51 am
Forum: Camera board
Topic: PiKrellCam: motion vector detect + OSD web interface
Replies: 1485
Views: 365532

Re: PiKrellCam: motion vector detect + OSD web interface

Im confused about this size=4096M, i assume its the amount of virtual ram as my Pi Zero is 512mb. Maybe my options weren't optimal as example. It was from my main pc and not the Rpi. That's why i have a size of 4096MB. ;) The tutorial you wrote up awhile back, was this your own or was it from a tut...
by Fox Mulder
Fri Apr 07, 2017 1:20 pm
Forum: Camera board
Topic: PiKrellCam: motion vector detect + OSD web interface
Replies: 1485
Views: 365532

Re: PiKrellCam: motion vector detect + OSD web interface

Whats stored in your /tmp? Anything related to nginx stored in it? I would have to add a maximum size to the /tmp directory in fstab which isn't included in what i searched online, only for /var/log. proc /proc proc defaults 0 0 /dev /mmcblk0p1 /bootvfat defaults 0 2 /dev /mmcblk0p2 /ext4 defaults,...
by Fox Mulder
Fri Apr 07, 2017 10:10 am
Forum: Camera board
Topic: PiKrellCam: motion vector detect + OSD web interface
Replies: 1485
Views: 365532

Re: PiKrellCam: motion vector detect + OSD web interface

I checked the status: [email protected]:~ $ sudo systemctl status tmp.mount ● tmp.mount - /tmp Loaded: loaded (/etc/fstab; enabled) Active: active (mounted) since Thu 2017-04-06 18:50:58 AEST; 24h ago Where: /tmp What: tmpfs Docs: man:fstab(5) man:systemd-fstab-generator(8) Apr 06 18:50:58 PiZeroW systemd...
by Fox Mulder
Fri Apr 07, 2017 8:22 am
Forum: Camera board
Topic: PiKrellCam: motion vector detect + OSD web interface
Replies: 1485
Views: 365532

Re: PiKrellCam: motion vector detect + OSD web interface

Tried starting tmp.mount with systemctl start tmp.mount, but tmp.mount isn't located in /usr/share/systemd/ directory. I think i need to remove tmp from fstab. It could be that the file is not located at the mentioned location anymore (outdated documentation). I think i remember copying it from ano...
by Fox Mulder
Thu Apr 06, 2017 11:08 pm
Forum: Camera board
Topic: PiKrellCam: motion vector detect + OSD web interface
Replies: 1485
Views: 365532

Re: PiKrellCam: motion vector detect + OSD web interface

For Debian or Raspbian there is a predefined systemd task for using a ramdisk for /tmp. https://wiki.debian.org/SSDOptimization#Reduction_of_SSD_write_frequency_via_RAMDISK For /sys/log on tmpfs i wrote a little script which automatically syncs the content to the sd-card and back within certain inte...
by Fox Mulder
Mon Mar 27, 2017 9:14 am
Forum: Camera board
Topic: PiKrellCam: motion vector detect + OSD web interface
Replies: 1485
Views: 365532

Re: How to run a Python script on motion detect?

Can someone give me the best method for running a custom Python script after the video is captured? I have a script that can upload files to my Google Drive that I want to use for my videos. Also, is there an easy way to start PiKrellCam with a delay, say 5min, so that it doesn't capture me leaving...
by Fox Mulder
Sun Feb 05, 2017 5:27 pm
Forum: Camera board
Topic: PiKrellCam: motion vector detect + OSD web interface
Replies: 1485
Views: 365532

Re: PiKrellCam: motion vector detect + OSD web interface

Last Thursday (2017-02-02) evening, I tried a downgrade issuing the command sudo BRANCH=next rpi-update ff8b6b07ec8f203e04bb4a7b67e1fdb5e91f98b7 That one is from 2016-09-07 and boots from USB (hence the "BRANCH=next"). The system has been running since then (three full days) without the image freez...
by Fox Mulder
Wed Jan 25, 2017 7:28 pm
Forum: Camera board
Topic: PiKrellCam: motion vector detect + OSD web interface
Replies: 1485
Views: 365532

Re: PiKrellCam: motion vector detect + OSD web interface

I have a little question to the author of pikrellcam. What formula do you use to calculate sunrise, sunset, dusk, dawn times which i can use in the at-commands and what location do you use for the calculation? Because i wrote a little python script and calculated these times with help of the package...
by Fox Mulder
Sat Jan 14, 2017 7:56 pm
Forum: Camera board
Topic: PiKrellCam: motion vector detect + OSD web interface
Replies: 1485
Views: 365532

Re: PiKrellCam: motion vector detect + OSD web interface

Anothrer way to roll back only these libraries is to download the wanted versions form https://archive.raspberrypi.org/debian/pool/main/r/raspberrypi-firmware/ and install them with dpkg. So if you want to downgrade to 20161125 download the following libraries: libraspberrypi0_1.20161125-1_armhf.deb...
by Fox Mulder
Sat Jan 14, 2017 9:22 am
Forum: Camera board
Topic: PiKrellCam: motion vector detect + OSD web interface
Replies: 1485
Views: 365532

Re: PiKrellCam: motion vector detect + OSD web interface

Now pikrellcam is running for over 19 hours and works as expected without freezing. Seems the latest rpi updates broke or changed something with respect to the camera stream. If you want to try it yourself you can download the older libraries for raspbian from https://archive.raspberrypi.org/debian/...
by Fox Mulder
Fri Jan 13, 2017 3:52 pm
Forum: Camera board
Topic: PiKrellCam: motion vector detect + OSD web interface
Replies: 1485
Views: 365532

Re: PiKrellCam: motion vector detect + OSD web interface

Because pikrellcam seems to work normally and only the video stream is frozen i suspected some other changes in the system. So i tried downgrading the Raspberry Pi special packages in raspbian. The interesting packages, which are related to the native camera interface are the following (installed) o...
by Fox Mulder
Tue Jan 10, 2017 4:02 pm
Forum: Camera board
Topic: PiKrellCam: motion vector detect + OSD web interface
Replies: 1485
Views: 365532

Re: PiKrellCam: motion vector detect + OSD web interface

pikrellcam froze again after about only 30 minutes.
Now i did a complete gdb trace of all threads like mentioned.
The results are here: http://pastebin.com/KnL25Js9

Ciao,
Rainer
by Fox Mulder
Tue Jan 10, 2017 1:55 pm
Forum: Camera board
Topic: PiKrellCam: motion vector detect + OSD web interface
Replies: 1485
Views: 365532

Re: PiKrellCam: motion vector detect + OSD web interface

The problem seems to appear faster. First the image was frozen after a few days but now it freezes just a few hours after the last restart. Restarting pikrellcam or rebooting the whole pi doesn't seem to help at all. Strange thing is that i use the same hardware since a few months and it worked with...
by Fox Mulder
Sun Jan 08, 2017 4:11 pm
Forum: Camera board
Topic: PiKrellCam: motion vector detect + OSD web interface
Replies: 1485
Views: 365532

Re: PiKrellCam: motion vector detect + OSD web interface

Hi again, it did it again this morning. The mjpeg.jpg file is not changing (same size) when checked as you outlined. What's next billw? If pikrellcam is still running (you verified with ps -C pikrellcam?) then look at: 1) The last lines in the log. 2) Do a df to see if any filesystems are full. 3) ...
by Fox Mulder
Wed Jan 04, 2017 9:55 am
Forum: Camera board
Topic: PiKrellCam: motion vector detect + OSD web interface
Replies: 1485
Views: 365532

Re: reliable storage for stills and video

I moved /tmp and /var/log to a ramdisk because these are the most frequent written directories for the native linux system. How did you do this? For all the following commands you have to be root . Therefor i didn't add any sudo prefix to the commands. For the /tmp directory there exists a finished...

Go to advanced search