From 263031d6c72a887707f02f1644a7234f349f0863 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nathana=C3=ABl=20L=C3=A9caud=C3=A9?= Date: Thu, 6 May 2021 10:06:57 -0400 Subject: [PATCH] node-red-node-physical-web: make it work with newer versions (#799) * Added msg.advertising = true/false to enable/disable advertising * Fixed comparison with bool * physical- web: Added status Added status (lost, updated, found) as msg.topic. Added checkbox to allow duplicates or not. * Re-added optional topic to avoid breaking compatibility * Cleaner topic slection * node-red-node-wol: added address field * node-red-node-wol: remove warning * node-red-node-wol: bump version * node-red-node-wol: typo in version * Ensure service is stopped before being created * Bump version of node-red-node-discovery to 0.0.19 * node-red-node-discovery: correction to Readme * node-red-node-discovery: Add stop method and show status * node-red-node-discovery: bump version to 0.0.20 * node-red-node-discovery: remove status text * serial: ensure serialReconnectTime has a default value * physical-web: update dependencies to make it work with recent node versions * physical-web: update package.json --- hardware/physical-web/package.json | 8 ++++---- hardware/physical-web/physical-web.js | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/hardware/physical-web/package.json b/hardware/physical-web/package.json index 83062f6d..f3d48bdd 100644 --- a/hardware/physical-web/package.json +++ b/hardware/physical-web/package.json @@ -1,6 +1,6 @@ { "name": "node-red-node-physical-web", - "version": "0.0.15", + "version": "0.0.16", "description": "Node-RED nodes to interact with the Physical Web", "main": "physical-web.js", "scripts": { @@ -14,7 +14,7 @@ "ble" ], "node-red": { - "nodes" : { + "nodes": { "physical-web": "physical-web.js" } }, @@ -29,7 +29,7 @@ }, "license": "APACHE-2.0", "dependencies": { - "eddystone-beacon": "~1.0.4", - "eddystone-beacon-scanner": "~3.0.0" + "eddystone-beacon": "natcl/node-eddystone-beacon", + "@abandonware/eddystone-beacon-scanner": "3.0.1-2" } } diff --git a/hardware/physical-web/physical-web.js b/hardware/physical-web/physical-web.js index 3631b598..0fa6043f 100644 --- a/hardware/physical-web/physical-web.js +++ b/hardware/physical-web/physical-web.js @@ -2,7 +2,7 @@ module.exports = function(RED) { "use strict"; var eddystoneBeacon = require('eddystone-beacon'); - var EddystoneBeaconScanner = require('eddystone-beacon-scanner'); + var EddystoneBeaconScanner = require('@abandonware/eddystone-beacon-scanner'); var eddyBeacon = false; var checkLength = function(text) {