Skip to content

TomHumphries/rtsp-snapshots

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

1 Commit
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ“ธ RTSP feed snapshots

Building

Run:

npm run build

to generate the JavaScript files in ./build.

About

๐Ÿ’พ app.js saves an image of the rtsp feeds configured in feeds.json to:

  1. latest.jpg (which is overwritten every time)
  2. a file with the current time as the name e.g. 20241027T210005.jpg

๐Ÿ“ The images are saved to the directories configured for each feed in the feeds.json file.

๐Ÿ“† The saving is triggered using a cronjob, which can be edited using:

crontab -e

๐Ÿ• For example, to save a snapshot every hour, the line should be added:

0 * * * * /path/to/node /path/to/build/save.js

Releases

No releases published

Packages

No packages published