Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
homebridge-website-to-camera
Advanced tools
Homebridge plugin for displaying a Website (intended for Google Maps-->Traffic) as Camera
Make sure you have homebridge installed.
sudo apt-get install chromium-browser
chromium-browser
, output should be similar to (chromium-browser:30533): Gtk-WARNING **: cannot open display
sudo npm install -g homebridge-website-to-camera
config.json
using the sample below (append in the block 'platforms' not 'accessories')Update your config similar to this:
"platforms": [
{
"platform": "website-camera",
"cameras": [
{
"name": "Website 1",
"url": "http://github.com",
"chromiumPath": "/usr/bin/chromium-browser"
}
]
}
]
You can add multiple cameras!
Take a look at the example config.json
Fields:
name
name of the camera (required)id
unique(!) identifier for that specific camera (optional)url
the URL of the website that is to be captured (required)scale
HomeApp requests an (probably device dependent) size for the preview-image.
With e.g. scale
set to 2
(default) the virtual browser window is set to this size. Best is to skip this field.width
/ height
the width/height of the virtual browser window. This is optional and overrides scale
.chromiumPath
path to chromium-executable (defaults to "/usr/bin/chromium-browser")timeout
timeout in ms for waiting until the page has no more pending requests. resembles to puppeteer.goto() (defaults to 10000 --> 10s)renderTimeout
timeout in ms for waiting AFTER the page has loaded before taking the screenshot. userful for PWAs. (defaults to 1ms)In some cases, the camera is not visible in Home-App:
Add device
Code missing
The plugin uses Puppeteer/Chrome headless to capture the screenshots. The Browser instance stays open all the time for better performance and less CPU/Mem consumption.
FAQs
shows the screenshot of a website as camera (image)
The npm package homebridge-website-to-camera receives a total of 44 weekly downloads. As such, homebridge-website-to-camera popularity was classified as not popular.
We found that homebridge-website-to-camera demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.