Changeset 873 for trunk/Modules/WebCam/webcam_refresh.php
- Timestamp:
- Apr 6, 2020, 11:17:40 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/WebCam/webcam_refresh.php
r738 r873 3 3 4 4 $Config['Web']['ShowPHPError'] = true; 5 while (1)5 while (1) 6 6 { 7 7 $ModifyTime = filemtime('webcam.jpg'); 8 if ((time() - $Config['Web']['WebcamRefresh']) >= $ModifyTime)8 if ((time() - $Config['Web']['WebcamRefresh']) >= $ModifyTime) 9 9 { 10 10 // $Output = shell_exec('wget "http://kamera-stred/Webcam.jpg?MobilePass='.$Config['Web']['WebcamPassword'].'&V=2&Q=2&B=2&U=0" -O webcam_cache.jpg -T '.($Config['Web']['WebcamRefresh']).' --limit-rate=200k'); 11 11 $Output = shell_exec('wget "http://kamera-knihovna/cgi-bin/viewer/video.jpg" -O webcam_cache.jpg -T '.($Config['Web']['WebcamRefresh']).' --limit-rate=200k'); 12 12 13 if ((strpos($Output, 'failed') === false) and (strpos($Output, 'error') === false))13 if ((strpos($Output, 'failed') === false) and (strpos($Output, 'error') === false)) 14 14 shell_exec('mv -f webcam_cache.jpg webcam.jpg'); 15 15 }
Note:
See TracChangeset
for help on using the changeset viewer.