homebridge-cmd4 6.1.1 → 6.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,8 +1,8 @@
1
1
  # Homebridges-cmd4 - CMD4 Plugin for Homebridge - Supports ~All Accessory Types and now all Characteristics too!!
2
- #### 6.1.1 (2022-01-31)
2
+ #### 6.1.2 (2022-02-12)
3
3
 
4
4
  ##### Bug Fixes
5
5
 
6
- * bug [#125](https://github.com/ztalbot2000/homebridge-cmd4/pull/125) Manufacturer, serialNumber and Model not displaying in Home ([715a2127](https://github.com/ztalbot2000/homebridge-cmd4/commit/715a21275229ffb395b98a2e7c4f9f3d3fd785dd))
6
+ * bug [#127](https://github.com/ztalbot2000/homebridge-cmd4/pull/127") Resolve crash when no internet connection
7
7
 
8
8
 
package/README.md CHANGED
@@ -1,3 +1,10 @@
1
+ <span align="center">
2
+
3
+ [![npm](https://badgen.net/npm/v/homebridge-cmd4/latest?icon=npm&label)](https://www.npmjs.com/package/homebridge-cmd4)
4
+ [![npm](https://badgen.net/npm/dt/homebridge-cmd4?label=downloads)](https://www.npmjs.com/package/homebridge-cmd4)
5
+
6
+ </span>
7
+
1
8
  # Homebridges-cmd4 - CMD4 Plugin for Homebridge - Supports ~All Accessory Types and now all Characteristics, Custom Characteristics and Priority Queued Polling too!!
2
9
  <base _target="_self">
3
10
 
@@ -183,8 +190,8 @@ Based on the best of:
183
190
  * [homebridge-cmdswitch2]https://github.com/luisiam/homebridge-cmdswitch2.git
184
191
  * [homebridge-real-fake-garage-doors]https://github.com/plasticrake/homebridge-real-fake-garage-doors.git
185
192
  * [homebridge-homeseer]https://github.com/jrhubott/homebridge-homeseer.git
186
- * Thanks to TimofeyK for all his help with fakegato and for suggesting it.
187
- * Thanks to Mitch Williams for his endless encouragement.
193
+ * Thanks to [TimofeyK](https://github.com/TimofeyK) for all his help with fakegato and for suggesting it.
194
+ * Thanks to [Mitch Williams](https://github.com/mitch7391) for his endless encouragement.
188
195
  * Thanks especially to those who continue to work on Homebridge and those who make it better.
189
196
  * And most importantly my Wife.
190
197
 
@@ -3,6 +3,7 @@
3
3
  ## Homebridge UI User. Do not click on any inline links. Homebridge UI does not supprt them. Bug#1098
4
4
 
5
5
  ## ChangeLog
6
+ * <a href="#Whats-new-in-6-1-2">**Whats new in 6.1.2**</a>
6
7
  * <a href="#Whats-new-in-6-1-1">**Whats new in 6.1.1**</a>
7
8
  * <a href="#Whats-new-in-6-1-0">**Whats new in 6.1.0**</a>
8
9
  * <a href="#Whats-new-in-6-0-4">**Whats new in 6.0.4**</a>
@@ -81,6 +82,14 @@
81
82
  * <a href="#Whats-new-in-2-1">**Whats new in 2.1**</a>
82
83
  * <a href="#Whats-new-in-2-0">**Whats new in 2.0**</a>
83
84
 
85
+ <a name="Whats-new-in-6-1-2">## Whats new in 6.1.2</a>
86
+ #### 6.1.2 (2022-02-12)
87
+
88
+ ##### Bug Fixes
89
+
90
+ * bug [#127](https://github.com/ztalbot2000/homebridge-cmd4/pull/127") Resolve crash when no internet connection
91
+
92
+
84
93
  <a name="Whats-new-in-6-1-1">## Whats new in 6.1.1</a>
85
94
  #### 6.1.1 (2022-01-31)
86
95
 
@@ -7,12 +7,11 @@
7
7
  * [**Where to Begin**](#where-to-begin)
8
8
  * [**Homebridge API**](#homebridge-api)
9
9
  * [**Platform Accessories**](#platform-accessories)
10
- * [***Television Accessories***](#television-accessories)
10
+ * [**Television Accessories**](#television-accessories)
11
11
  * [**Standard Accessories**](#standard-accessories)
12
12
  * [**Cmd4 Directives**](#cmd4-directives)
13
13
  * [**Cmd4 Devices and Characteristics**](#cmd4-devices-and-characteristics)
14
14
  * [**Priority Queued Polling**](#priority-queued-polling)
15
- * [**Migrating from Homebridge-cmdswitch2**](#migrating-from-homebridge-cmdswitch2)
16
15
  * [**Developer Notes**](#developer-notes)
17
16
  * [**Adding in Fakegato history**](#adding-in-fakegato-history)
18
17
  * [**Unit Testing**](#unit-testing)
@@ -28,7 +27,8 @@
28
27
  * [**basic_ping.sh**](https://github.com/ztalbot2000/homebridge-cmd4/blob/master/Extras/Cmd4Scripts/Examples/basic_ping.sh)
29
28
  * [**advanced_ping.sh**](https://github.com/ztalbot2000/homebridge-cmd4/blob/master/Extras/Cmd4Scripts/Examples/advanced_ping.sh)
30
29
  * [**wakeonlan.sh**](https://github.com/ztalbot2000/homebridge-cmd4/blob/master/Extras/Cmd4Scripts/Examples/wakeonlan.sh)
31
- * [**cmd4-E-Zone-MyAir**](https://github.com/mitch7391/cmd4-E-Zone-MyAir/blob/master/Temperature%20Sensors/One%20Constant%20Zone/ezone.sh)
30
+ * [**homebridge-cmd4-AdvantageAir**](https://github.com/mitch7391/homebridge-cmd4-AdvantageAir/blob/master/AdvAir.sh)
31
+ * [**cmd4-HisenseTV**](https://github.com/mitch7391/cmd4-HisenseTV/blob/main/HisenseTV.sh)
32
32
 
33
33
  ## Homebridge API
34
34
  &nbsp;&nbsp;&nbsp; Cmd4 is not possible without Homebridge. Prior to Cmd4 Version 3, Cmd4 just created Standard Plugin Accessories. With Version 3 of Cmd4, Cmd4 follows the Hombridge API as defined on [Homebridge API](https://developers.homebridge.io/#/) to be followed exactly. Both Platform and Accessory Plugins can be created. In fact the examples can be recreated exactly.<BR>
package/index.js CHANGED
@@ -74,11 +74,22 @@ function checkForUpdates( )
74
74
 
75
75
  ( async( ) =>
76
76
  {
77
- let lv = await getLatestVersion( );
77
+ // Fix for #127, constant crash loops when no internet connection
78
+ // trying to get latest Cmd4 version.
79
+ // thx nano9g
80
+ try
81
+ {
82
+ let lv = await getLatestVersion( );
83
+
84
+ if ( isVersionNewerThanPackagedVersion( lv ) )
85
+ {
86
+ console.log( chalk.green( `[UPDATE AVAILABLE] ` ) + `Version ${lv} of ${myPkg.name} is available. Any release notes can be found here: ` + chalk.underline( `${myPkg.changelog}` ) );
87
+ }
78
88
 
79
- if ( isVersionNewerThanPackagedVersion( lv ) )
89
+ }
90
+ catch( error )
80
91
  {
81
- console.log( chalk.green( `[UPDATE AVAILABLE] ` ) + `Version ${lv} of ${myPkg.name} is available. Any release notes can be found here: ` + chalk.underline( `${myPkg.changelog}` ) );
92
+ console.log( chalk.yellow( `[UPDATE CHECK FAILED] ` ) + `Could not check for newer versions of ${myPkg.name} due to error ${error.name}: ${error.message}`)
82
93
  }
83
94
  })( );
84
95
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "homebridge-cmd4",
3
3
  "description": "Exec Plugin for Homebridge supporting all accessorys and characteristics",
4
- "version": "6.1.1",
4
+ "version": "6.1.2",
5
5
  "license": "MIT",
6
6
  "author": {
7
7
  "name": "John Talbot"