movids

1.5.0 • Public • Published

movids

npm npm License

Node.js command line tool and library for fetching records of IP cameras by motion detection.

Detected dates are fetched over HTTP requests and can be stored in databases.

Installation

$ npm install -g movids

Usage

Command

Transfers and converts records of the specified parameters.

$ movids --start-date [YYYYMMDD|today|yesterday] --start-time [HHMM] --end-date [YYYYMMDD|today|yesterday] --end-time [HHMM]

General Options

Options:
  -v, --version                            output the version number
  --start-date <yyyymmdd|today|yesterday>  start date of records
  --start-time <hhmm>                      start time of records
  --end-date <yyyymmdd|today|yesterday>    end date of records
  --end-time <hhmm>                        end time of records
  --no-snapshots                           skip fetching snapshots
  --no-videos                              skip fetching videos
  -h, --help                               display help for command

Configuration

const config = {
    restApi: {
        baseUrl: 'http://192.168.178.96:8000',
        endpoints: {
            motions: {
                path: 'api/motions',
                count: 'count',
                entries: 'data',
                reverse: true,
                utc: true,
                keys: {
                    date: 'date',
                    endDate: 'endDate'
                },
                snapshots: {
                    key: 'snapshots',
                    id: '_id',
                    name: 'name',
                    getPath: id => `media/motion/snapshot/${id}`,
                    ext: 'jpg'
                },
                queryParams: {
                    device: '63f47d4503961d23f1ea98f2'
                },
                limit: 0
            }
        }
    },
    ipcamsd: {
        cameras: [{
            host: '192.168.178.30',
            username: 'admin',
            password: 'admin'
        }, {
            host: '192.168.178.31',
            username: 'admin',
            password: 'admin'
        }],
        minutesIfEndDateIsNull: 3
    },
    format: {
        date: 'YYYYMMDD',
        time: 'HHmmss'
    }
};

License

This project is licensed under MIT.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.5.03latest

Version History

VersionDownloads (Last 7 Days)Published
1.5.03
1.4.01
1.3.01
1.2.01
1.1.01
1.0.01
0.9.01
0.8.01
0.7.01
0.6.00
0.5.00
0.4.00
0.3.00
0.2.00
0.1.01

Package Sidebar

Install

npm i movids

Weekly Downloads

12

Version

1.5.0

License

MIT

Unpacked Size

16.6 kB

Total Files

6

Last publish

Collaborators

  • aoephtua