Code: Select all
raspistill -n -o image_%04d.jpg -tl 60000 -l new.jpg -t 3600000 &Code: Select all
#!/bin/bash
<command to take a single pic>
rsync -a /path/to/pic.jpg user@host:/path/to/webshare/filename.jpg
Just send the image file to the webserver. Do you want your Pi to be the webserver or is it to be remote? If it is local you can just copy the file to the appropriate directory, if remote you can send the photos via FTP or some other scheme.eccentricdyslexic wrote: ↑Tue Sep 17, 2019 1:15 pmHow can one then display the latest image on a webpage?
Cheers
Steve
Code: Select all
-l new.jpgCode: Select all
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Show latest picture</title>
<body>
<h1>Show new.jpg</h1>
<a href="new.jpg">new.jpg</a>
</body>
</html>sudo apt install apache2 apache2-doceccentricdyslexic wrote: ↑Tue Sep 17, 2019 3:40 pmI'd rather the pi act as a webserver, so as not too use all my bandwidth (internet very poor here).
Any good guides to setting up a webserver?
Code: Select all
ls -tr image*.jpg | tail -1Code: Select all
os.system("raspistill -o /home/pi/image%s.jpg"%(imageNumber)) # -rot 270 need for cam on sideCode: Select all
os.system("raspistill -l /home/pi/new.jpg -o /home/pi/image%s.jpg"%(imageNumber))
Code: Select all
sudo apt update
sudo apt upgrade
sudo apt install -y apache2Buster would be better.eccentricdyslexic wrote: ↑Wed Sep 18, 2019 2:42 pmLooks like i have to upgrade to Jessie...hope it doesn't break things... either that or skip hosting and upload the pic every minute..
Code: Select all
Version Code name Toy Story character
7 Wheezy Wheezy the penguin
8 Jessie Jessie the cowgirl
9 Stretch Rubber octopus from Toy Story 3
10 Buster Andy's pet dog