DietPiCam Jessie : Motion.php broken.

Having issues with your DietPi installation, or, found a bug? Post it here.
Rich.T.
Posts: 14
Joined: Mon Nov 16, 2015 3:02 am

Re: DietPiCam Issues

Post by Rich.T. »

Right. So I spent most of the day troubleshooting this stuff. I tried out multiple installs and various configurations and came to several conclusions:

Firstly, RPi-Cam-Web-Interface and therefore DietPiCam is pretty badly broken under Raspbian Jessie and seems to need a lot of reconfiguring on the fly to get it going. Things seem to have broken on the webserver side in both Apache and Nginx as well as in PHP. Default directories have changed and permissions and security settings have been screwed around with.

I haven't gotten the chance to try out DietPiCam on DietPi-Wheezy yet, but I did install the full RPi-Cam-Web-Interface (on a full Raspbian-Wheezy) from the official GitHub repo (testing it under both Apache and Nginx options) and it pretty much worked straight away, without any fuss.

The one major problem I am still having is in getting motion to detect movement and trigger a recording.
I tried the suggestions laid out in the Troubleshooting -> Motion Detection section at the bottom of the wiki page (http://elinux.org/RPi-Cam-Web-Interface ... _Detection) but, although I got stop messages on shutdown, was unable to get the thing to trigger a start event at all.

I was all set to give up on it entirely (for today, at least) when I thought I'd have another try at it's experimental, internal motion detection method. It worked! (It, however, did not work on DietPiCam last time i tried it.) :(
I'll give it another try, but in DietPi-Wheezy this time, ASAP.

Looking at http://www.lavrsen.dk/foswiki/bin/view/ ... ningMotion I figured that this might be a good way of getting Motion configured, but alas, I hit a dead end there as well; It wouldn't detect the camera. :evil:

If it could be made to work with RPiCam/DietPiCam, this might be a great help.

I'll leave it there for the moment, but hopefully this will help with the diagnosis.

Rich.
User avatar
Fourdee
Site Admin
Posts: 2782
Joined: Tue Feb 06, 2007 1:36 pm

Re: DietPiCam Issues

Post by Fourdee »

Hi Rich,

Yep, motion.php appears broken on Jessie.

I'll try installation on Wheezy and see if that works. Either way, I'll also look at updating DietPi-Cam to latest RPi-cam-web version.
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
User avatar
Fourdee
Site Admin
Posts: 2782
Joined: Tue Feb 06, 2007 1:36 pm

Re: DietPiCam Issues

Post by Fourdee »

Fourdee wrote:Hi Rich,

Yep, motion.php appears broken on Jessie.

I'll try installation on Wheezy and see if that works. Either way, I'll also look at updating DietPi-Cam to latest RPi-cam-web version.
Confirmed working on Wheezy. Appears to be a bug in RPi-cam-web-interface on Jessie.

Will attempt to update DietPi-Cam version to latest RPi-cam-web-interface version for a resolution. After v102 is released.
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
TokoDude

Re: DietPiCam loading error, Motion Issue.

Post by TokoDude »

I sent out a buggraport a couple of weeks ago, when this problem started at the newest update.
I used another piece of software in the meantime named: Motionpie, another handy piece of software which supports motion detection and it works really great!

The only downsides compared to dietpicam are:
You can set your resolution MAX to 1600x900
There are not many options available like in dietpicam.

I 'm looking forward to update 102. Hopefully I can use motion detection :D

Info about motionpie:
https://github.com/ccrisan/motionpie
Rich.T.
Posts: 14
Joined: Mon Nov 16, 2015 3:02 am

Re: DietPiCam Issues

Post by Rich.T. »

Fourdee wrote:
Fourdee wrote:Hi Rich,

Yep, motion.php appears broken on Jessie.

I'll try installation on Wheezy and see if that works. Either way, I'll also look at updating DietPi-Cam to latest RPi-cam-web version.
Confirmed working on Wheezy. Appears to be a bug in RPi-cam-web-interface on Jessie.

Will attempt to update DietPi-Cam version to latest RPi-cam-web-interface version for a resolution. After v102 is released.
Thanks.

I just tried DietPi-Cam on DietPi Wheezy again and can confirm that the motion.php page still displays there, although I can't get any sort of motion detection working.

However, as I mentioned above, I was able to get the "Internal" motion detection method to work right away on RPi-cam-web-interface on Raspbian Wheezy, but this does not seem to work on DietPi Wheezy.

Can anyone else confirm this?
TokoDude wrote:I sent out a buggraport a couple of weeks ago, when this problem started at the newest update.
Where did you file the bug report?
TokoDude wrote:I used another piece of software in the meantime named: Motionpie, another handy piece of software which supports motion detection and it works really great!

The only downsides compared to dietpicam are:
You can set your resolution MAX to 1600x900
There are not many options available like in dietpicam.

I 'm looking forward to update 102. Hopefully I can use motion detection :D

Info about motionpie:
https://github.com/ccrisan/motionpie
I had a brief look at this when I was first researching my RasPi CCTV project, but decided that it was a bit too limited (as you mentioned) and instead focussed on the RPi-cam-web-interface project.
I brought this up on the https://www.raspberrypi.org/forums/view ... f815a29728 thread and Dan put it straight into the DietPi project.
Thanks so much, Dan!
User avatar
Fourdee
Site Admin
Posts: 2782
Joined: Tue Feb 06, 2007 1:36 pm

Re: DietPiCam Issues

Post by Fourdee »

Rich.T. wrote: I brought this up on the https://www.raspberrypi.org/forums/view ... f815a29728 thread and Dan put it straight into the DietPi project.
Thanks so much, Dan!
My "ToDo" list was a lot smaller back then lol :)

Keep the info coming, i'll try and get this resolved for v102 but it may to wait until the next release. I need to finish up a few things 1st, then I can give it my full attention.
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
Zombievirus
Posts: 119
Joined: Sun Sep 20, 2015 2:07 am

Re: DietPiCam Jessie : Motion.php broken.

Post by Zombievirus »

I need to finish up a few things 1st, then I can give it my full attention.
I hope DietPiCam also gets updated to the latest version then :D
User avatar
Fourdee
Site Admin
Posts: 2782
Joined: Tue Feb 06, 2007 1:36 pm

Re: DietPiCam Jessie : Motion.php broken.

Post by Fourdee »

Zombievirus wrote:
I need to finish up a few things 1st, then I can give it my full attention.
I hope DietPiCam also gets updated to the latest version then :D
For DietPi v103:
I've updated DietPiCam to match the current RPi cam control (v6.0.19), but, still having a blank page on jessie for motion.

Turns out this is a known issue for Jessie: https://github.com/silvanmelchior/RPi_C ... -152719047
Looks like the cause is with the motion package installation. No doubt the libraries are different to Wheezy.

https://github.com/Fourdee/DietPi/issue ... -162020517
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
Zombievirus
Posts: 119
Joined: Sun Sep 20, 2015 2:07 am

Re: DietPiCam Jessie : Motion.php broken.

Post by Zombievirus »

Fourdee wrote: I've updated DietPiCam to match the current RPi cam control (v6.0.19), but, still having a blank page on jessie for motion.
I tried Jessie for about a week and had bunch of troubles with it. Everything went back to normal and super stable after i downgraded to Wheezy.

Jessie is evil :evil: Wheezy is still the best ;)

That is why i have NO plans of upgrading to Jessie! I am more than happy with Wheezy. The day you drop support for Wheezy will be the day i upgrade to Jessie. Not before that!

I hope DietPiCam 6.0.19 and motion detection works fine with Wheezy though.

Thank You very much for your efforts FourDee. Maintaining all of this beside a normal life must be very difficult and frustrating. Sometimes i am happy that i am not as intelligent and talented as people like you LOL.

Regards
User avatar
Fourdee
Site Admin
Posts: 2782
Joined: Tue Feb 06, 2007 1:36 pm

Re: DietPiCam Jessie : Motion.php broken.

Post by Fourdee »

Zombievirus wrote:That is why i have NO plans of upgrading to Jessie! I am more than happy with Wheezy. The day you drop support for Wheezy will be the day i upgrade to Jessie. Not before that!

I hope DietPiCam 6.0.19 and motion detection works fine with Wheezy though.

Regards
Motion on Wheezy should be fine, next time I run a Wheezy installation, i'll test it.

The only time we will drop support for Wheezy, is when/if Raspbian drops the support for Wheezy. I still love a Wheezy installation now and then, its proven its stability over the years. Jessie is great, but its new and still has alot of "teething" issues and developers are still adjusting to its new ways.
Thank You very much for your efforts FourDee. Maintaining all of this beside a normal life must be very difficult and frustrating. Sometimes i am happy that i am not as intelligent and talented as people like you LOL.
No worries, although it keeps me busy, i enjoy doing DietPi. Its also an excuse for me to obtain lots of single-board computers lol :)
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
Post Reply