pastebin - collaborative debugging tool
blankb.kpaste.net RSS

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

    
11
Raspi video at 1 fps over web browser.
22
33
###/home/pi/php/index.php
44
<head>
55
 <nometa http-equiv="refresh" content="2" />
66
</head>
77
<body>
88
 <img src="frame.jpg" id="yourimage">
99
<script>
1010
window.setInterval(function()
1111
{
1212
    document.getElementById('yourimage').src = "frame.jpg?random="+new Date().getTime();
1313
}, 1000);
1414
</script>
1515
</body>
1616
1717
###/home/pi/php/startvideo.sh
1818
#!/bin/bash
1919
cd /home/pi/php
2020
php -S 0.0.0.0:8000 -t /home/pi/php/
2121
raspistill -t 0 -tl 2000 -w 640 -h 480 -o frame.jpg &
2222
2323
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 &
2929
3030

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.

Syntax highlighting:

To highlight particular lines, prefix each line with {%HIGHLIGHT}




All content is user-submitted.
The administrators of this site (kpaste.net) are not responsible for their content.
Abuse reports should be emailed to us at