Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • getsdcard - get information about the map, returns the response in the form

    Code Block
    <sdcard state="normal" mpoint="/media/sdcard-sd54a1" fullsize="7808156" freesize="7806524" lifetime="31536000" enablelog="1" enablelogvideo="1" />

    , where:

    • state - the state of the medium:
      • normal - the operating state, the carrier is installed;
      • not connected - the medium is not installed or removed from the connector;
      • off - the media is unmounted with the umount command;
    • mpoint - mount point of the medium in the system;
    • fullsize - total amount of memory, in KB;
    • freesize - the amount of free memory in KB;
    • lifetime - the lifetime of the files, in seconds (the default is 7 days, ie 604800 seconds);
    • enablelog - logging to this media is enabled or disabled  (0 - disabled, 1 - enabled);
    • enablelogvideo - saving of video files to this media is enable or disable  (0 - disabled, 1 - enabled);
  • setsdcard - set the logging parameters on the SD card. Extra options are:
    • cmd - command; it's possible values are:
      • umount - unmount the file system for safe extraction;
      • restart - restart, close current log and dump files and create new files;
    • lifetime - the lifetime of the files, in seconds (minimum 3 hours, maximum 1 year);
    • enablelog - enable / disable the logging process to this media (0 - disabled, 1 - enabled);
    • enablelogvideo - enable / disable saving of video to this media (0 - disabled, 1 - enabled);

...

  • getusbflash - get information about the flash drive, returns the response as

    Code Block
    <usbflash state="normal" mpoint="/media/usbhd-sda1" fullsize="7808156" freesize="7806524" lifetime="31536000" enablelog="1" enablelogvideo="1" />

    , where:

    • state - USB Flash Drive status:
      • normal - working state, the flash drive is installed;
      • not connected - the flash drive is not installed or removed from the connector;
      • off - the flash drive is unmounted by the umount command;
      mpoint - mount point for USB Flash Drive in the system
      • ;
    • fullsize - total amount of memory, in KB;
    • freesize - the amount of free memory in KB;
    • lifetime - the lifetime of the files, in seconds (the default is 7 days, ie 604800 seconds);
    • enablelog - logging to flash is enabled or disabled  (0 - disabled, 1 - enabled);
    • enablelogvideo - saving of video files to this media is enabled or disabled (0 - disabled, 1 - enabled);
  • setusbflash - set the parameters of the log on the USB flash drive. Extra options are:
    • cmd - command; it's  possible values are:
      • umount - unmount the file system for safe extraction;
      • restart - restart, close current log and dump files and create new files;
    • lifetime - the lifetime of the files, in seconds (minimum 3 hours, maximum 1 year);
    • enablelog - logging process on the USB flash drive is enabled or disabled (0 - disabled, 1 - enabled);
    • enablelogvideo - saving video to USB flash drive enabled or disabled (0 - disabled, 1 - enabled).

...

  • getsatahdd - get information about the drive, returns the response as

    Code Block
    <satahdd state="normal" mpoint="/tmp/mnt/satahdd" fullsize="7808156" freesize="7806524" lifetime="31536000" enablelog="1" enablelogvideo="1" />

    , where:

    • state - HDD status:
      • normal - working state, the drive is installed;
      • not connected - the drive is not installed or removed from the connector;
      • off - the drive is unmounted by the umount command;
      mpoint - mount point for HDD in the system
      • ;
    • fullsize - total amount of memory, in MB;
    • freesize - the amount of free memory in MB;
    • lifetime - the lifetime of the files, in seconds (the default is 7 days, ie 604800 seconds);
    • enablelog - logging to disk is enabled or disabled  (0 - disabled, 1 - enabled);
    • enablelogvideo - saving of video files to this media is enabled or disabled (0 - disabled, 1 - enabled);
  • setsatahdd - set the parameters of the log on the drive. Extra options are:
    • lifetime - the lifetime of the files, in seconds (minimum 3 hours, maximum 1 year);
    • enablelog - logging process on the drive is enabled or disabled (0 - disabled, 1 - enabled);
    • enablelogvideo - saving video to drive enabled or disabled (0 - disabled, 1 - enabled).

...