homebridge-website-to-camera
Homebridge plugin for displaying a Website (intended for Google Maps-->Traffic) as Camera
Installation
- Install Homebridge using:
(sudo) npm install -g --unsafe-perm homebridge
if you haven't already - Install this plugin using:
(sudo) npm install -g homebridge-website-to-camera
- Update your Homebridge
config.json
using the sample below (append in the block 'platforms' not 'accessories') - 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 capturedwidth
the width of the virtual browser windowheight
the height of the virtual browser windowrenderDelay
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