Difference between
modified post 13fa3775 by Anonymous on Thu 10th Aug 2017 15:39
original post f4f7 by Anonymous on Sun 2nd Apr 2017 03:48
Download diff
Show
old version |
new version |
both versions
| 1 | 1 | Raspi video at 1 fps over web browser. | |
| 2 | 2 | ||
| 3 | 3 | ###/home/pi/php/index.php | |
| 4 | 4 | <head> | |
| 5 | 5 | <nometa http-equiv="refresh" content="2" /> | |
| 6 | 6 | </head> | |
| 7 | 7 | <body> | |
| 8 | 8 | <img src="frame.jpg" id="yourimage"> | |
| 9 | 9 | <script> | |
| 10 | 10 | window.setInterval(function() | |
| 11 | 11 | { | |
| 12 | 12 | document.getElementById('yourimage').src = "frame.jpg?random="+new Date().getTime(); | |
| 13 | 13 | }, 1000); | |
| 14 | 14 | </script> | |
| 15 | 15 | </body> | |
| 16 | 16 | ||
| 17 | 17 | ###/home/pi/php/startvideo.sh | |
| 18 | 18 | #!/bin/bash | |
| 19 | 19 | cd /home/pi/php | |
| 20 | 20 | php -S 0.0.0.0:8000 -t /home/pi/php/ | |
| 21 | 21 | raspistill -t 0 -tl 2000 -w 640 -h 480 -o frame.jpg & | |
| 22 | 22 | ||
| 23 | 23 | ||
| 24 | - | ||
| 24 | + | #!/bin/bash | |
| 25 | - | ||
| 25 | + | cd /home/pi/php | |
| 26 | - | ||
| 26 | + | nohup php -S 0.0.0.0:8000 -t /home/pi/php/ >/dev/null & | |
| 27 | - | ||
| 27 | + | #nohup raspistill -t 0 -tl 2000 -w 640 -h 480 -o frame.jpg >/dev/null & | |
| 28 | - | ||
| 28 | + | nohup raspistill -a "Door #1" -a 12 -t 0 -tl 2000 -w 640 -h 480 -o frame.jpg >/dev/null & | |
| 29 | 29 | ||
| 30 | 30 |
Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.
blankb.kpaste.net RSS