Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
@hyperlink/garage-door-monitor
Advanced tools
Automatic notification if garage door is open or closed using JavaScript and ML
Readme
Our garage door was left open all night because my kids were playing outside and forgot to close it. That seemed really unsafe to me and since I don't have one of those fancy smart garage doors I created this.
ffmpeg
to get frames of video from an RTSP streamExport
panel click on Tensorflow.js
and Download
brew install ffmpeg
You can setup a ramdisk to prevent unessasary wear on your SSD from images being downloaded and deleted frequently. If you're on the Mac it will automatically do this for you.
diskutil erasevolume HFS+ "RAMDisk" `hdiutil attach -nomount ram://4096`
There are different ways to run this app.
I used PM2 the Node Js process manager to run this service. Git clone this module and create ecosystem.config.js
module.exports = {
apps: [{
name: 'Garage Door Monitor',
script: 'src/index.ts',
time: true,
log_date_format: 'YYYY-MM-DD HH:mm Z',
instances: 0,
env: { // required environment variables
RTSP_URL: 'rtsp://192.168.0.101/camera',
MODEL_PATH: '<model dir>',
PUSHOVER_TOKEN: '<PUSHOVER TOKEN>',
PUSHOVER_USER: '<PUSHOVER USER>',
TF_CPP_MIN_LOG_LEVEL: '3',
// Optional defaults
IMAGE_PATH: '/Users/xiaoxin/dev/garage-door-monitor/last-shot.jpg', // only provide this if you don't intend to use the ramdisk
GARAGE_CHECK_INTERVAL: '30s', // timeformat https://www.npmjs.com/package/ms
RAM_DISK_SIZE: '2' // size in MB
}
}]
};
pm2 install typescript
pm2 start ecosystem.config.js
pm2 startup
pm2 save
npm install -g @hyperlink/garage-door-monitor
Make sure you set the documented environment above when running.
FAQs
Automatic notification if garage door is open or closed using JavaScript and ML
The npm package @hyperlink/garage-door-monitor receives a total of 2 weekly downloads. As such, @hyperlink/garage-door-monitor popularity was classified as not popular.
We found that @hyperlink/garage-door-monitor demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.