Last active
December 18, 2015 00:08
-
-
Save kumekay/5694036 to your computer and use it in GitHub Desktop.
Web-camera auto shot every minute and copy it to dropbox
+ web page to see it
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:sleep | |
ping 127.0.0.1 -n %1 -w 1000 > NUL | |
:top | |
set time_stamp=%DATE:~0,2%%DATE:~3,2%%DATE:~6,4%_%TIME:~0,2%%TIME:~3,2%%TIME:~6,2% | |
"C:\Program Files (x86)\VideoLAN\VLC\vlc" --dshow-vdev="Logitech HD Webcam C510" --dshow-size=1280x720 --dshow-aspect-ratio=16\:9 -V dummy --intf=dummy --dummy-quiet --video-filter=scene --no-audio --scene-path=F:\cherem --scene-format=jpeg --scene-prefix=%time_stamp% --scene-replace --run-time=1 --scene-ratio=24 "dshow://" vlc://quit | |
copy f:\cherem\%time_stamp%.jpeg c:\users\ku\Dropbox\Public\cherem.jpg | |
CALL :sleep 60 | |
goto top | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<head> | |
<meta charset="utf-8" /> | |
<title>Черемуха в шеклопряде</title> | |
<link href='http://fonts.googleapis.com/css?family=Open+Sans:800' rel='stylesheet' type='text/css'> | |
<script type="text/javascript" src="http://yandex.st/share/share.js" charset="utf-8"></script> | |
<script> | |
function refreshIt() { | |
if (!document.images) return; | |
document.getElementById("cam").src = 'https://dl.dropboxusercontent.com/u/210773/cherem.jpg?' + Math.random(); | |
setTimeout('refreshIt()',60000); // refresh every 60 secs | |
} | |
</script> | |
</head> | |
<body onLoad=" setTimeout('refreshIt()',5000)"> | |
<div style="position: absolute; top: 0; left: 0; width: 100%; height: auto; min-height: 100%; min-width: 700px; padding: 0; margin: 0; "> | |
<img src="https://dl.dropboxusercontent.com/u/210773/cherem.jpg" id="cam" style="width: 100%; height: auto;"> | |
</div> | |
<div style="font-family: 'Open Sans', sans-serif; color:#fff; position: absolute; top: 1em; left: 1em; background-color:rgba(0,0,0,0.5); padding: 0.3em;"> | |
<h2 style="font-size: 4em; padding: 0; margin: 0;">Черемуха в шелкопряде</h2> | |
<div> | |
Поделиться: | |
<span class="yashare-auto-init" data-yashareL10n="ru" | |
data-yashareType="none" data-yashareQuickServices="vkontakte,facebook,twitter,gplus" | |
></span> | |
<span style="color: #999;">Обновление каждую минуту</span> | |
</div> | |
</div> | |
<!-- Yandex.Metrika counter --> | |
<script type="text/javascript"> | |
(function (d, w, c) { | |
(w[c] = w[c] || []).push(function() { | |
try { | |
w.yaCounter21418162 = new Ya.Metrika({id:21418162, | |
webvisor:true, | |
clickmap:true, | |
trackLinks:true, | |
accurateTrackBounce:true}); | |
} catch(e) { } | |
}); | |
var n = d.getElementsByTagName("script")[0], | |
s = d.createElement("script"), | |
f = function () { n.parentNode.insertBefore(s, n); }; | |
s.type = "text/javascript"; | |
s.async = true; | |
s.src = (d.location.protocol == "https:" ? "https:" : "http:") + "//mc.yandex.ru/metrika/watch.js"; | |
if (w.opera == "[object Opera]") { | |
d.addEventListener("DOMContentLoaded", f, false); | |
} else { f(); } | |
})(document, window, "yandex_metrika_callbacks"); | |
</script> | |
<noscript><div><img src="//mc.yandex.ru/watch/21418162" style="position:absolute; left:-9999px;" alt="" /></div></noscript> | |
<!-- /Yandex.Metrika counter --> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment