I tried to install a node called node-red-contrib-generic-ble and failed to notice that it had a bluetooth dependency that I had not resolved. The installation failed, but then also caused all of my flows to stop with the error, "Flows stopped due to missing node types". I've tried to disable and delete the node but I get "type in use" (its actually not used in any flows now).
Post the node red log that you get from a node red restart. Paste it here starting from the Welcome to node red message. If you are on a Pi then you can show the log by running node-red-log then restarting node red in another terminal.
(and just to be clear, just solving this dependency is non-trivial -- at this point I'd rather just get rid of this node and get my flows running again)
Welcome to Node-RED
===================
5 Nov 08:57:17 - [info] Node-RED version: v0.19.5
5 Nov 08:57:17 - [info] Node.js version: v8.12.0
5 Nov 08:57:17 - [info] Linux 4.15.0-38-generic x64 LE
5 Nov 08:57:17 - [info] Loading palette nodes
5 Nov 08:57:18 - [warn] rpi-gpio : Raspberry Pi specific node set inactive
5 Nov 08:57:20 - [warn] ------------------------------------------------------
5 Nov 08:57:20 - [warn] [node-red-contrib-generic-ble/generic-ble] Error: Cannot find module 'bluetooth-hci-socket'
5 Nov 08:57:20 - [warn] ------------------------------------------------------
5 Nov 08:57:20 - [info] Settings file : /etc/node-red/config.js
5 Nov 08:57:20 - [info] Context store : 'default' [module=memory]
5 Nov 08:57:20 - [info] User directory : /config/node-red/
5 Nov 08:57:20 - [warn] Projects disabled : editorTheme.projects.enabled=false
5 Nov 08:57:20 - [info] Flows file : /config/node-red/flows.json
5 Nov 08:57:20 - [info] Server now running at https://127.0.0.1:1880/
5 Nov 08:57:20 - [info] Waiting for missing types to be registered:
5 Nov 08:57:20 - [info] - Generic BLE
I deduce from that that you have already tried installing the missing bits. There is probably a config node or something in the flow still. You could edit the flow file with a text editor (it is just a json file so with care can be editted) and search for ble or similar strings to find it, then manually delete it from the file. Make a backup of the file first of course. Alternatively it might be simpler just to go back your most recent backup of the flow file and go from there.
If the editor is working then @knolleary's suggestion is the one to follow (as usual). If you still can't find the problem nodes then the search feature may help.
Hello jmesberg,
Did you ever get this Bluetooth LE to work for you. I am trying it out and having similar problems. If you got it to configure ok and deploy, could you possibly post you flow? I am experimenting with one of the bluefruit nrf52's.
I never did get the Bluetooth LE working, but I think its due to some hardware issues on my NUC (or lack of ability on my part to deal with configuring Bluetooth properly on the NUC).
I do also have NUC (intel) with Windows 10 installed and I've got the same issues with all the bluetooth nodes from the market . Nodes just disapear after the first deploy, getting Unknown.
14 Feb 00:05:11 - [warn] [node-red-contrib-generic-ble/generic-ble] Error: Cannot find module 'bluetooth-hci-socket'
14 Feb 00:05:11 - [info] Waiting for missing types to be registered:
14 Feb 00:05:11 - [info] - Generic BLE
14 Feb 00:05:11 - [info] - Generic BLE in
I tried install the missing bluetooth-hci-socket module, but it fails on finding python. I'll try it tomorrow.