Skip to content

Commit

Permalink
Change to "Twinkly Plus" as new packages
Browse files Browse the repository at this point in the history
  • Loading branch information
Theo van Hoesel authored and Theo van Hoesel committed Dec 25, 2022
1 parent 502e46b commit 4517a88
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 19 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# homebridge-twinkly
# homebridge-twinkly-plus

[![verified-by-homebridge](https://badgen.net/badge/homebridge/verified/purple)](https://github.com/homebridge/homebridge/wiki/Verified-Plugins)

Expand All @@ -17,7 +17,7 @@ A simple command line tool is also included.

1. First set up [Homebridge](http://github.com/nfarina/homebridge).
2. Configure Twinkly using the iOS or Android app and make sure it's connected to the same network.
3. Install `homebridge-twinkly` using [homebridge-config-ui-x](https://github.com/oznu/homebridge-config-ui-x) or manually using `sudo npm install -g homebridge-twinkly`.
3. Install `homebridge-twinkly-plus` using [homebridge-config-ui-x](https://github.com/oznu/homebridge-config-ui-x) or manually using `sudo npm install -g homebridge-twinkly-plus`.

### Configuration options

Expand All @@ -37,7 +37,7 @@ The options can be configured using the UI or manually in a config.json.
"name": ""
},
"platforms": [{
"platform": "Twinkly",
"platform": "TwinklyPlus",
"allowBrightnessControl": true,
"allowColorControl": true,
"removeUnreachableDeviceMinutes": 0
Expand All @@ -55,7 +55,7 @@ You'll need to find the IP address of each light using the Twinkly app. It might

| Value | Default | Description |
|------------------------|---------------|-------------------------------------------------------------|
| accessory | (required) | Identifies module and must be `"Twinkly"` |
| accessory | (required) | Identifies module and must be `"TwinklyPlus"` |
| name | (required) | The name for light as it will appear in HomeKit |
| ip | (required) | The IP address of the lights. |
| allowBrightnessControl | true | Adds a brightness control instead of a simple on/off switch |
Expand All @@ -72,7 +72,7 @@ Multiple lights are can be added as individual accessories.
"name": ""
},
"accessories": [{
"accessory": "Twinkly",
"accessory": "TwinklyPlus",
"name": "Christmas Lights",
"ip": "192.168.4.1",
"allowBrightnessControl": true
Expand Down
4 changes: 2 additions & 2 deletions config.schema.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"pluginAlias": "Twinkly",
"pluginAlias": "TwinklyPlus",
"pluginType": "platform",
"singular": true,
"headerDisplay": "Configure Twinkly using the iOS or Android app and make sure it's connected to the same network",
"footerDisplay": "https://github.com/nschum/homebridge-twinkly",
"footerDisplay": "https://github.com/vanHoesel/homebridge-twinkly-plus",
"schema": {
"type": "object",
"properties": {
Expand Down
10 changes: 5 additions & 5 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
const {Twinkly} = require("./lib/Twinkly");
const {Discoverer} = require("./lib/Discoverer");

const PLUGIN_NAME = "homebridge-twinkly";
const ACCESSORY_NAME = "Twinkly";
const PLATFORM_NAME = "Twinkly";
const PLUGIN_NAME = "homebridge-twinkly-plus";
const ACCESSORY_NAME = "TwinklyPlus";
const PLATFORM_NAME = "TwinklyPlus";
const MS_PER_MINUTE = 60_000;

let hap, Service, Characteristic;

// "accessories": [{
// "accessory": "Twinkly",
// "accessory": "TwinklyPlus",
// "name": "Christmas Tree",
// "ip": "192.168.4.1",
// "allowBrightnessControl": true,
Expand All @@ -26,7 +26,7 @@ class TwinklyHomebridge extends Twinkly {
let name = config["name"];
if (!name) {
log("No name specified");
name = "Twinkly";
name = "TwinklyPlus";
}
this.name = name;
this.isBrightnessControlEnabled = config["allowBrightnessControl"];
Expand Down
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "homebridge-twinkly",
"version": "0.4.1",
"description": "Homebridge plugin for Twinkly christmas lights",
"name": "homebridge-twinkly-plus",
"version": "0.5.0",
"description": "Homebridge plugin for Twinkly Lights",
"main": "index.js",
"bin": {
"twinkly": "bin/twinkly"
Expand All @@ -19,7 +19,7 @@
},
"repository": {
"type": "git",
"url": "git+https://github.com/nschum/homebridge-twinkly.git"
"url": "git+https://github.com/vanHoesel/homebridge-twinkly-plus.git"
},
"keywords": [
"homebrige",
Expand All @@ -30,10 +30,10 @@
"node": ">=14.5.0",
"homebridge": ">=1.1.6"
},
"author": "Nikolaj Schumacher",
"author": "Theo van Hoesel",
"license": "MIT",
"bugs": {
"url": "https://github.com/nschum/homebridge-twinkly/issues"
"url": "https://github.com/vanHoesel/homebridge-twinkly-plus/issues"
},
"homepage": "https://github.com/nschum/homebridge-twinkly#readme"
"homepage": "https://github.com/vanHoesel/homebridge-twinkly-plus#readme"
}

0 comments on commit 4517a88

Please sign in to comment.