Quantcast
Channel: Manual & FAQ
Viewing all articles
Browse latest Browse all 31

External command execution examples

$
0
0
  • Cmd box must contain the full path to the executable that has to be run
  • Params box can include the following case sensitive variables
    %sec% the second of the recording/snapshot (two digits)
    %min% the minute of the recording/snapshot (two digits)
    %hour% the hour of the recording/snapshot (two digits)
    %day% the day of the recording/snapshot (01..31)
    %month% the month of the recording/snapshot (01..12)
    %year% the year of the recording/snapshot (four digits)
    %full% the absolute path to the recording/snapshot
    %small% the absolute path to the small/thumbnail version of the recording/snapshot

1. Play a sound when recording starts

  • Download and install VLC
  • Cmd
    C:\Program Files (x86)\VideoLAN\VLC\vlc.exe or C:\Program Files\VideoLAN\VLC\vlc.exe
  • Params
    -I dummy --dummy-quiet --play-and-exit --no-loop --no-repeat "C:\test.wav"
    Attention: replace "C:\test.wav" with the path to your audio file which must include the file extension (like .mp3 or .wav for example) and be enclosed in double quotes!
  • For automatic doorbell only usage, uncheck Save Full Video, uncheck Save Small Video and set Drop detections shorter than to 0 seconds.

ring

2. FTP, SFTP, FTPS upload recordings

  • Download and install WinSCP
  • Cmd
    C:\Program Files (x86)\WinSCP\WinSCP.exe or C:\Program Files\WinSCP\WinSCP.exe
  • Params
    /ini=nul /command "open ftp://USERNAME:PASSWORD@SERVERNAME" "put ""%full%"" ""/MY CAM/%year%/%month%/%day%/""" "put ""%small%"" ""/MY CAM/%year%/%month%/%day%/""" "exit"
    Attention: paths with spaces are surrounded by double double-quotes!
  • Passive mode is enabled by default, to use the active mode provide the parameter
    /passive=off
  • Params (the following pops-up a console window to be able to test the settings)
    /ini=nul /console /command "open ftp://USERNAME:PASSWORD@SERVERNAME" "put ""%full%"" ""/MY CAM/%year%/%month%/%day%/""" "put ""%small%"" ""/MY CAM/%year%/%month%/%day%/"""

3. FTP, SFTP, FTPS upload live snapshots

  • Download and install WinSCP
  • Cmd
    C:\Program Files (x86)\WinSCP\WinSCP.exe or C:\Program Files\WinSCP\WinSCP.exe
  • Params
    /ini=nul /command "open ftp://USERNAME:PASSWORD@SERVERNAME" "put ""%full%"" ""/MY CAM/my snapshot.jpg""" "put ""%small%"" ""/MY CAM/my snapshot thumb.jpg""" "exit"
    Attention: paths with spaces are surrounded by double double-quotes!
  • Passive mode is enabled by default, to use the active mode provide the parameter
    /passive=off
  • Params (the following pops-up a console window to be able to test the settings)
    /ini=nul /console /command "open ftp://USERNAME:PASSWORD@SERVERNAME" "put ""%full%"" ""/MY CAM/my snapshot.jpg""" "put ""%small%"" ""/MY CAM/my snapshot thumb.jpg"""

Viewing all articles
Browse latest Browse all 31

Trending Articles