https://github.com/aoephtua/movids
Node.js command line tool and library for fetching records of IP cameras by motion detection
https://github.com/aoephtua/movids
es6 ip-camera javascript motion-detection nodejs
Last synced: 1 day ago
JSON representation
Node.js command line tool and library for fetching records of IP cameras by motion detection
- Host: GitHub
- URL: https://github.com/aoephtua/movids
- Owner: aoephtua
- License: mit
- Created: 2022-07-05T08:17:11.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2025-07-01T12:22:01.000Z (12 months ago)
- Last Synced: 2025-10-22T23:18:24.112Z (8 months ago)
- Topics: es6, ip-camera, javascript, motion-detection, nodejs
- Language: JavaScript
- Homepage:
- Size: 121 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# movids
[](https://www.npmjs.com/package/movids)

[](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 start date of records
--start-time start time of records
--end-date end date of records
--end-time 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).