homebridge-openwrt-control 0.0.2-beta.43 → 0.0.2-beta.44

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/openwrt.js +3 -3
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "displayName": "OpenWrt Control",
3
3
  "name": "homebridge-openwrt-control",
4
- "version": "0.0.2-beta.43",
4
+ "version": "0.0.2-beta.44",
5
5
  "description": "Homebridge plugin to control OpenWrt flashed devices.",
6
6
  "license": "MIT",
7
7
  "author": "grzegorz914",
package/src/openwrt.js CHANGED
@@ -98,7 +98,7 @@ class OpenWrt extends EventEmitter {
98
98
  if (this.logDebug) this.emit('debug', `System info data: ${JSON.stringify(systemInfo, null, 2)}`);
99
99
 
100
100
  //const networkInfo = await this.ubusCall('network.device', 'status', '{ "name": "eth0" }');
101
- const networkInfo = await this.ubusCall('file', 'read', { path: '/sys/class/net/eth0/address' });
101
+ //const networkInfo = await this.ubusCall('file', 'read', { path: '/sys/class/net/eth0/address' });
102
102
  if (this.logDebug) this.emit('debug', `Network info data: ${networkInfo}`);
103
103
 
104
104
  //const wirelessStatus = await this.ubusCall('network.wireless', 'status');
@@ -130,7 +130,7 @@ class OpenWrt extends EventEmitter {
130
130
 
131
131
  openWrtInfo.state = true;
132
132
  openWrtInfo.systemInfo = systemInfo;
133
- openWrtInfo.networkInfo = networkInfo;
133
+ //openWrtInfo.networkInfo = networkInfo;
134
134
  openWrtInfo.wirelessStatus = wirelessStatus;
135
135
  //openWrtInfo.wirelessRadios = wirelessRadios;
136
136
  openWrtInfo.ssids = ssids;
@@ -142,7 +142,7 @@ class OpenWrt extends EventEmitter {
142
142
 
143
143
  // emit data
144
144
  this.emit('systemInfo', systemInfo);
145
- this.emit('networkInfo', networkInfo);
145
+ //this.emit('networkInfo', networkInfo);
146
146
  this.emit('wirelessStatus', wirelessStatus);
147
147
  //this.emit('wirelessRadios', wirelessRadios);
148
148
  this.emit('ssids', ssids);