Skip to content

Commit

Permalink
prep 6.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
bwp91 committed Apr 5, 2023
1 parent 3816e2b commit 92a84b9
Show file tree
Hide file tree
Showing 7 changed files with 64 additions and 75 deletions.
6 changes: 3 additions & 3 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
blank_issues_enabled: false
contact_links:
- name: 🌍 My Discord Server
url: https://discord.gg/cMGhNtZ3tW
about: Join my personal Discord server where you can post messages in the plugin channels or message me directly. This is often easier and quicker than creating an issue on here.
- name: 🌍 Homebridge Discord Server
url: https://discord.gg/bHjKNkN
about: Please ask and answer questions here.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@

All notable changes to homebridge-wemo will be documented in this file.

## BETA
## 6.0.1 (2023-04-05)

### Changed

- Simplify log welcome messages
- Bump `node` recommended versions to v16.20.0 or v18.15.0

### Fixed

Expand Down
14 changes: 6 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,11 @@

Homebridge plugin to integrate Wemo devices into HomeKit

[![verified-by-homebridge](https://badgen.net/badge/homebridge/verified/purple)](https://github.com/homebridge/homebridge/wiki/Verified-Plugins)
[![hoobs-certified](https://badgen.net/badge/HOOBS/certified/yellow)](https://plugins.hoobs.org/plugin/homebridge-wemo)
[![npm](https://img.shields.io/npm/v/homebridge-wemo/latest?label=latest)](https://www.npmjs.com/package/homebridge-wemo)
[![npm](https://img.shields.io/npm/v/homebridge-wemo/latest?label=latest)](https://www.npmjs.com/package/homebridge-wemo)
[![npm](https://img.shields.io/npm/v/homebridge-wemo/beta?label=beta)](https://github.com/bwp91/homebridge-wemo/wiki/Beta-Version)
[![npm](https://img.shields.io/npm/dt/homebridge-wemo)](https://www.npmjs.com/package/homebridge-wemo)
[![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)
[![Discord](https://img.shields.io/discord/784827113378676736?color=728ED5&logo=discord&label=bwp91-discord)](https://discord.com/channels/784827113378676736/784827113378676739)
[![verified-by-homebridge](https://badgen.net/badge/homebridge/verified/purple)](https://github.com/homebridge/homebridge/wiki/Verified-Plugins)
[![hoobs-certified](https://badgen.net/badge/HOOBS/certified/yellow?label=hoobs)](https://plugins.hoobs.org/plugin/homebridge-wemo)
[![npm](https://img.shields.io/npm/dt/homebridge-wemo)](https://www.npmjs.com/package/homebridge-wemo)
[![Discord](https://img.shields.io/discord/432663330281226270?color=728ED5&logo=discord&label=hb-discord)](https://discord.com/channels/432663330281226270/742733745743855627)

</span>
Expand All @@ -28,8 +26,8 @@ Homebridge plugin to integrate Wemo devices into HomeKit
### Prerequisites

- To use this plugin, you will need to already have:
- [Homebridge](https://homebridge.io): v1.6 or [HOOBS](https://hoobs.org): v4.3 installed - refer to the links for more information and installation instructions.
- Node: latest version of v16 or v18 - any other major version is not supported.
- [Node](https://nodejs.org): latest version of v16 or v18 - any other major version is not supported.
- [Homebridge](https://homebridge.io): v1.6 - refer to link for more information and installation instructions.
- For the UPnP connection, make sure your Homebridge instance has an allocated IP from the same IP network or VLAN as your Wemo devices. Otherwise, you should disable the UPnP connection to avoid connection errors.

### Setup
Expand Down
9 changes: 2 additions & 7 deletions lib/platform.js
Original file line number Diff line number Diff line change
Expand Up @@ -469,13 +469,8 @@ export default class {
ssdpClient = new ssdp(this.config.wemoClient.discover_opts);
}

// Log that the plugin setup has been successful with a welcome message
const randIndex = Math.floor(Math.random() * platformLang.zWelcome.length);

// Set a small timeout so the message should appear after the listener port log entry
setTimeout(() => {
this.log('%s. %s', platformLang.complete, platformLang.zWelcome[randIndex]);
}, 2000);
// Setup successful
this.log('%s. %s', platformLang.complete, platformLang.welcome);

// Perform the first discovery run and set up the interval for subsequent runs
this.discoverDevices();
Expand Down
14 changes: 1 addition & 13 deletions lib/utils/lang-en.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,17 +121,5 @@ export default {
upnpFail: 'upnp error (will be re-attempted)',
upnpGood: 'upnp has been established',
viaAL: 'via adaptive lighting',
zWelcome: [
'Don\'t forget to ☆ this plugin on GitHub if you\'re finding it useful!',
'Have a feature request? Visit https://bit.ly/hbwemo-issues to ask!',
'Interested in sponsoring this plugin? https://github.com/sponsors/bwp91',
'Join the plugin\'s Discord community! https://discord.gg/cMGhNtZ3tW',
'Thanks for using this plugin, I hope you find it helpful!',
'This plugin has been made with ♥ by bwp91 from the UK!',
'Check out my other Homebridge plugins! https://github.com/bwp91',
'Have time to give this plugin a review? https://bit.ly/hbwemo-review',
'This plugin currently has a 5☆ rating on HOOBS! https://bit.ly/hbwemo-review',
'Want to see this plugin in your own language? Let me know!',
'Want to beta test Homebridge 2.0? https://github.com/homebridge/homebridge/wiki/Homebridge-Beta-Testing',
],
welcome: 'This plugin has been made with ♥ by bwp91, please consider a ☆ on GitHub if you are finding it useful!',
};
83 changes: 43 additions & 40 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
},
"engines": {
"homebridge": "^1.6.0 || 2.0.0-beta.0",
"node": "^16.19.1 || ^18.15.0"
"node": "^16.20.0 || ^18.15.0"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -55,7 +55,7 @@
],
"dependencies": {
"@homebridge/plugin-ui-utils": "^0.0.19",
"axios": "^1.3.4",
"axios": "^1.3.5",
"ip": "^2.0.0",
"node-ssdp": "^4.0.1",
"p-queue": "^7.3.4",
Expand All @@ -67,6 +67,6 @@
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-import-newlines": "^1.3.1",
"eslint-plugin-sort-exports": "^0.8.0",
"eslint": "^8.36.0"
"eslint": "^8.37.0"
}
}

0 comments on commit 92a84b9

Please sign in to comment.