Changeset 738 for trunk/Modules/WebCam
- Timestamp:
- Apr 14, 2015, 10:20:16 PM (10 years ago)
- Location:
- trunk/Modules/WebCam
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/WebCam/WebCam.php
r586 r738 6 6 var $ShortTitle = 'Kamera'; 7 7 var $ParentClass = 'PagePortal'; 8 8 9 9 function Show() 10 10 { … … 17 17 var theTimer = setTimeout("reloadImage()", 1); 18 18 19 function reloadImage() 19 function reloadImage() 20 20 { 21 21 theDate = new Date(); … … 57 57 $this->SupportedModels = array(); 58 58 } 59 59 60 60 function DoStart() 61 61 { 62 62 $this->System->Pages['webcam'] = 'PageWebcam'; 63 } 63 } 64 64 65 65 function ShowImage() … … 71 71 $Output .= '<a href="http://www.zdechov.net/kamery/?id=3"><img alt="Skiareál, motokrosová grapa" width="140" height="79" src="http://www.zdechov.net/images/webcam/webcam3.jpg" /></a>'; 72 72 $Output .= '<a href="http://www.zdechov.net/kamery/?id=4"><img alt="Fotbalové hřiště" width="140" height="79" src="http://www.zdechov.net/images/webcam/webcam4.jpg" /></a>'; 73 return($Output);74 } 73 return($Output); 74 } 75 75 } -
trunk/Modules/WebCam/webcam_refresh.php
r579 r738 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 13 if((strpos($Output, 'failed') === false) and (strpos($Output, 'error') === false)) 12 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.