homebridge-website-to-camera
Advanced tools
Comparing version 1.0.1 to 1.0.8
{ | ||
"name": "homebridge-website-to-camera", | ||
"version": "1.0.1", | ||
"version": "1.0.8", | ||
"description": "shows the screenshot of a website as camera (image)", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -12,21 +12,53 @@ # homebridge-website-to-camera | ||
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](https://github.com/fg2it/phantomjs-on-raspberry) | ||
1. (Install Homebridge using: `(sudo) npm install -g --unsafe-perm homebridge` if you haven't already) | ||
## Raspberry Pi and any other ARM | ||
Currently I couldn't find a proper solution for installing the plugin on raspberry-pi (Help wanted!) so unfortunately you have to | ||
use this hacky workaround | ||
2. Download the latest [phantomjs-on-raspberry](https://github.com/fg2it/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` | ||
3. Find your npm-root: | ||
* `npm root -g` | ||
* probably the output will be `/usr/lib/node_modules` | ||
3. Install this plugin with git: | ||
* `cd /usr/lib/node_modules` | ||
* `sudo git clone https://github.com/werthdavid/homebridge-website-to-camera.git` | ||
* `cd homebridge-website-to-camera` | ||
* `sudo npm install` | ||
4. Update your Homebridge `config.json` using the sample below (append in the block 'platforms' not 'accessories') | ||
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 | ||
## x86/x64 | ||
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') | ||
# Configuration | ||
Update your config similar to this: | ||
```json | ||
"platforms":[ | ||
{ | ||
"platform":"website-camera", | ||
"cameras":[ | ||
{ | ||
"name":"Website 1", | ||
"url":"http://github.com", | ||
"width":800, | ||
"height":400, | ||
"renderDelay":1500 | ||
} | ||
] | ||
} | ||
] | ||
``` | ||
## Config file | ||
@@ -47,2 +79,10 @@ | ||
# Usage | ||
In some cases, the camera is not visible in Home-App: | ||
* Press + on top right corner in Home-App | ||
* Press `Add device` | ||
* Press `Code missing` | ||
* Select Camera | ||
# TODO | ||
@@ -49,0 +89,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1809550
89