Code: Select all
sudo vi /etc/motion/motion.conf
From:
Code: Select all
on_event_end echo 'ca 0' > /var/www/FIFO
Code: Select all
on_event_end echo 'ca 0' > /var/www/FIFO && mv /var/www/media/* /mydestdir
Code: Select all
sudo vi /etc/motion/motion.conf
Code: Select all
on_event_end echo 'ca 0' > /var/www/FIFO
Code: Select all
on_event_end echo 'ca 0' > /var/www/FIFO && mv /var/www/media/* /mydestdir
Only I do not have access to this file?unnamed7 wrote:http://grid.stronazen.pl/rpi/rpi-cam-visual-pack.zip
just upload contents of .zip to var/www and delete default index.html
i haven't really tested it in all browsers but it should be ok since it's based on twitter bootstrap.
hope you like it
Code: Select all
403 Forbidden
Access to this resource on the server is denied!
I tried this tonight, and it looks like a really nice UI. Only one problem, which I hadn't anticipated, is that once the files are in place, the old HTML index page no longer works! The page shows, but the images are not shown and there is no control.unnamed7 wrote:http://grid.stronazen.pl/rpi/rpi-cam-visual-pack.zip
just upload contents of .zip to var/www and delete default index.html
i haven't really tested it in all browsers but it should be ok since it's based on twitter bootstrap.
hope you like it
Code: Select all
...
<div class="row">
<div class="col-xs-12 controls">
<div class="btn-group">
<button id="video_button" class="btn btn-default"></button>
<button id="image_button" class="btn btn-default"></button>
<button id="md_button" class="btn btn-default"></button>
<button id="halt_button" class="btn btn-default"></button>
</div>
</div>
</div>
Code: Select all
<div class="row">
<div class="col-xs-12 controls">
<div class="btn-group">
<button id="video_button" class="btn btn-default"></button>
<button id="image_button" class="btn btn-default"></button>
<button id="md_button" class="btn btn-default"></button>
<button id="halt_button" class="btn btn-default"></button>
</div>
</div>
</div>
<script>
var lapsrunning=0;
var autoStopTime=0;
var lapsTimer;
var stopTimer;
function setlaps(){
if(lapsrunning==0){
document.getElementById('startstopLaps').innerHTML='Stop Timelapse';
var e=document.getElementById("lapsInterval");
lapsrunning=e.options[e.selectedIndex].value;
lapsrunning=parseFloat(lapsrunning)*1000;
[...]and so on... until [...]
<br>Time left: <span id='test'>0</span> minutes
<script>calcStop();</script>
</div>
<script src="https://code.jquery.com/jquery.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="script.js"></script>
</body>
</html>
I switched your code to run on nginx and removed apache. Is there a way to update the project without doing a full reinstall?silvanmelchior wrote:Update: It's now possible to view the full sesor area as preview with 15 fps. I added a new button "change mode to image". In image mode, you can't record videos, but you see the right preview for the images. The update is online, so just run the installer again and let me know if it works.
Thanks for the confirmation, poing. I'll see if there is some way round the raspistill/raspivid issue as i's pretty useless for my purposes now.poing wrote:I think something changed in raspistill/vid itself, not so much in raspimjpeg. I too get less night exposure.
Code: Select all
while true; do
echo "im" > /var/www/FIFO
sleep 10
done
Thank you Silvanmelchior, the full FOV works really well and it makes a huge difference being able to see more with the camera now!!silvanmelchior wrote:Update: It's now possible to view the full sesor area as preview with 15 fps. I added a new button "change mode to image". In image mode, you can't record videos, but you see the right preview for the images. The update is online, so just run the installer again and let me know if it works.
If you have the camera auto-starting after a reboot, then you can add this command to the /etc/rc.local file after the raspimjpeg command:Trixster wrote:Now we just need to find a way to make this FOV the default.
Code: Select all
echo 'pm' > /var/www/FIFO
Code: Select all
raspimjpeg -w 512 -h 288 -wp 512 -hp 384 -d 1 -q 25 -of /dev/shm/mjpeg/cam.jpg -cf /var/www/FIFO -sf /var/www/status_mjpeg.txt -vf /var/www/media/video_%04d_%04d%02d%02d_%02d%02d%02d.mp4 -if /var/www/media/image_%04d_%04d%02d%02d_%02d%02d%02d.jpg -p -ic $image -vc $video > /dev/null &
echo 'pm' > /var/www/FIFO
exit 0
Code: Select all
echo 'pm' > /var/www/FIFO
sleep 1
echo 'ro 270' > /var/www/FIFO
Same here, night exposure mode is really dark now compared to how it was before.xzanfr wrote:Thanks for the confirmation, poing. I'll see if there is some way round the raspistill/raspivid issue as i's pretty useless for my purposes now.poing wrote:I think something changed in raspistill/vid itself, not so much in raspimjpeg. I too get less night exposure.
I am not sure if you mean resolution of the MJPEG stream served through the Apache2 webserver, or the H.264 video saved locally to SD card. The resolution specified in the /etc/rc.local is the MJPEG stream (individual JPEG images) that shows up as the live image in the browser window, and not the 1920x1080 H.264 format video recorded on the Pi. As far as I know the H.264 video resolution is set in the raspimjpeg code so you would need to recompile it to change that. But if you are streaming MJPEG, by default the resolution is only 512 x 288. I've never tried viewing the MJPEG stream on a second R-Pi, even that relatively low resolution might well run the CPU to 100% in a browser. I cannot believe the R-Pi web browser can display MJPEG at 1920x1080 25 fps because the ARM is not fast enough for that.Marcos.Scholl wrote:How do I change the resolution of the image?
I tried changing the rc.local, the raspimjpeg command, but I keep getting a 1920x1080 video at 25fps.
I wish I had a video with resolution as 800x600 and 25fps, because when I stream between two RPI, which receives the transmission, keeps the CPU at 100% due to the Broswer.