Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

homebridge-website-to-camera

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

homebridge-website-to-camera

shows the screenshot of a website as camera (image)

  • 1.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
48
increased by433.33%
Maintainers
1
Weekly downloads
 
Created
Source

homebridge-website-to-camera

Homebridge plugin for displaying a Website (intended for Google Maps-->Traffic) as Camera

NPM version Dependency Status PRs Welcome Downloads

Installation

  1. Install Homebridge using: (sudo) npm install -g --unsafe-perm homebridge if you haven't already
  2. Install this plugin using: (sudo) npm install -g homebridge-website-to-camera
  3. Update your Homebridge config.json using the sample below (append in the block 'platforms' not 'accessories')
  4. If you're using this on ARM/Raspberry Pi: Download the latest phantomjs-on-raspberry
  • wget https://github.com/fg2it/phantomjs-on-raspberry/releases/download/v2.1.1-wheezy-jessie-armv6/phantomjs_2.1.1_armhf.deb
  • sudo dpkg -i phantomjs_2.1.1_armhf.deb

In some cases, the camera is not visible in Home-App:

  • Press + on top right corner in Home-App
  • Press Add device
  • Pres Code missing
  • Select Camera

Configuration

Config file

Take a look at the example config.json

Fields:

  • name name of the camera (required)
  • url the URL of the website that is to be captured
  • width the width of the virtual browser window
  • height the height of the virtual browser window
  • renderDelay time in ms that is waited after loading the URL before screenshot is taken (increase if image is incomplete)

TODO

  • Probably we should use Chrome-Headless/Puppeteer in later versions
  • Live-Video not working yet

Keywords

FAQs

Package last updated on 27 Jun 2018

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc