
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
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 8 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.
Security News
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.