#' @export
initCams <- function(cameras) {
lapply(cameras, function(x) {
RCurl::getURL(paste0("http://", x, "/cam.cgi?mode=camcmd&value=recmode"))
})
NULL
}
#' @export
grabPictures <- function(cameras) {
lapply(cameras, function(x) {
RCurl::getURL(paste0("http://", x, "/cam.cgi?mode=camcmd&value=capture"))
})
NULL
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.