# movids

> Command line tool and library for fetching records of IP cameras by motion detection

Latest version **2.4.0** (published 2026-10-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install movids
pnpm add movids
yarn add movids
bun add movids
```

Provides the command `movids`.

## Health

**Score 60/100 (C)** — status: active.

Positive: esm support; no vulnerabilities; recently updated; high maintenance score.

Warnings: low downloads; no types.

## Facts

| | |
|---|---|
| Version | 2.4.0 |
| Published | 2026-10-26 |
| First published | 2022-07-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 5 |
| Unpacked size | 16.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Thorsten A. Weintz |
| Maintainers | aoephtua |

## Links

- npm: https://www.npmjs.com/package/movids
- Repository: https://github.com/aoephtua/movids
- Homepage: https://github.com/aoephtua/movids#readme
- Issues: https://github.com/aoephtua/movids/issues
- npm.io page: https://npm.io/package/movids

## Dependencies (5)

- [axios](https://npm.io/package/axios.md) ^1.20.0
- [chalk](https://npm.io/package/chalk.md) ^6.0.1
- [moment](https://npm.io/package/moment.md) ^2.31.0
- [ipcamsd](https://npm.io/package/ipcamsd.md) ^2.4.0
- [commander](https://npm.io/package/commander.md) ^15.0.0

## Recent versions

- 2.4.0 (latest) — 2026-10-26
- 2.3.0 — 2025-07-01
- 2.2.0 — 2025-04-08
- 2.1.0 — 2025-04-07
- 2.0.0 — 2025-03-13
- 1.9.0 — 2025-03-04
- 1.8.0 — 2025-03-04
- 1.7.0 — 2025-03-04
- 1.6.0 — 2024-12-05
- 1.5.0 — 2024-05-13
- 1.4.0 — 2024-05-13
- 1.3.0 — 2024-05-13
- 1.2.0 — 2024-05-13
- 1.1.0 — 2024-04-04
- 1.0.0 — 2024-04-04
- … 9 more at https://npm.io/package/movids/versions

## README

# movids

[![npm](https://img.shields.io/npm/v/movids)](https://www.npmjs.com/package/movids)
![npm](https://img.shields.io/npm/dw/movids?label=↓)
[![License](https://img.shields.io/badge/License-MIT-blue.svg)](https://github.com/aoephtua/movids/blob/master/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](https://github.com/aoephtua/movids/blob/master/LICENSE).

---
_Source: https://npm.io/package/movids · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
