< Back

Get-MJWebCamImage

Sat Jan 11, 2020 3:53 am

NAME Get-MJWebCamImage



SYNOPSIS

Connects to webbcams and downloads an image.





SYNTAX

Get-MJWebCamImage [-WebcamIP] <String> [-Destination] <String> [[-SnapshotURL] <String>] [[-Filename] <String>]

[-RequireLogin] [[-CamCredential] <PSCredential>] [<CommonParameters>]





DESCRIPTION

Connects to webcams and downloads an image to local drive.

Currently supports login and costume filename.



Created by Ispep

WWW.Automatiserar.se





PARAMETERS

-WebcamIP <String>

Provide an IP to the camera you would like to download an image from.



Required? true

Position? 1

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-Destination <String>



Required? true

Position? 2

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-SnapshotURL <String>



Required? false

Position? 3

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Filename <String>

Provide a path to the url in the camera where the image is available



Required? false

Position? 4

Default value CameraImage

Accept pipeline input? false

Accept wildcard characters? false



-RequireLogin [<SwitchParameter>]

This will be the first part of the name of the image.



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-CamCredential <PSCredential>

If you require your controller to apply login use this switch and provide credential to your vera..



Required? false

Position? 5

Default value

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



NOTES





This component requires you to have a webcamera.



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Get-MJWebCamImage -WebcamIP 10.20.30.40 -Destination C:\\Temp -SnapshotURL "image/jpeg.cgi"



WebcamIP : 10.20.30.40

Destination : C:\\Temp

SnapshotURL : image/jpeg.cgi

Filename : CameraImage

RequireLogin : True

WebCamSource : http://10.20.30.40/image/jpeg.cgi

SavePath : C:\\Temp\\CameraImage_2016-06-08_21-04-22.jpg

FileSize : 47619









-------------------------- EXAMPLE 2 --------------------------



PS C:\\># Rhis will use login on cameras



Get-MJWebCamImage -WebcamIP 10.20.30.40 -Destination C:\\Temp -SnapshotURL "image/jpeg.cgi" -RequireLogin

-CamCredential (Get-Credential)



WebcamIP : 10.20.30.40

Destination : C:\\Temp

SnapshotURL : image/jpeg.cgi

Filename : CameraImage

RequireLogin : True

WebCamSource : http://10.20.30.40/image/jpeg.cgi

SavePath : C:\\Temp\\CameraImage_2016-06-08_21-04-22.jpg

FileSize : 47619











RELATED LINKS