- capture displays with one command (useful for multiple screens)
- periodic capture using pm2
- Mac Only
node dist/index.js # or 'npm start'
find out files under ~/Pictures/desktop-cctv/
➜ cd ~/Pictures/desktop-cctv
➜ desktop-cctv tree
.
└── 2021
└── 05
└── 19
├── 08_44_36-Color\ LCD.png
└── 08_44_37-DELL\ U2717D.png
3 directories, 2 files
- ensure pm2 has installed
- ensure pm2 has installed as a start-up script
pm2 start dist/index.js --name desktop-cctv --cron '0 * * * * *' --no-autorestart
pm2 save