Difference between revisions of "How to view the latest frame of a camera"
From ZoneMinder Wiki
Jump to navigationJump to search
(Created page with "This is adapted from the forum post (src: https://forums.zoneminder.com/viewtopic.php?p=130513), but for redundancy will be put here: ZM has a number of command line tools which do various swiss army like tasks for zm. Try typing zm, then hitting 'tab' for autocomplete in bash, to get a list of them. One of them, zmu, can give you a screenshot of a monitor. Such as: zmu -v -m ## -i -U username -P password. See zmu -h for more details. ===Webpage to update a camera ima...") |
|||
Line 26: | Line 26: | ||
</body> | </body> | ||
</pre> | </pre> | ||
==See Also== | |||
* https://wiki.zoneminder.com/External_Live_Stream#Refresh_Page_Periodically |
Revision as of 15:12, 11 May 2023
This is adapted from the forum post (src: https://forums.zoneminder.com/viewtopic.php?p=130513), but for redundancy will be put here:
ZM has a number of command line tools which do various swiss army like tasks for zm. Try typing zm, then hitting 'tab' for autocomplete in bash, to get a list of them. One of them, zmu, can give you a screenshot of a monitor. Such as:
zmu -v -m ## -i -U username -P password.
See zmu -h for more details.
Webpage to update a camera image
<head> <title>Camera</title> <script type="text/javascript" > setInterval(function() { var myImageElement = document.getElementById('myImage'); myImageElement.src = 'Monitor4.jpg?rand=' + Math.random(); }, 5000); </script> </head> <body> <h1 style="text-align: center">Camera <a href="URL">URL</a> <div align="center"> <img id="myImage" src="Monitor4.jpg" /> </div> </body>