GithubHelp home page GithubHelp logo

sakazuki / node-red-desktop Goto Github PK

View Code? Open in Web Editor NEW
68.0 7.0 25.0 2.23 MB

Node-RED Desktop

Home Page: https://sakazuki.github.io/node-red-desktop/

License: Apache License 2.0

HTML 13.61% TypeScript 77.25% JavaScript 8.68% CSS 0.45%
node-red electron

node-red-desktop's Introduction

Node-RED Desktop

This is a desktop application of Node-RED

How to install Node-RED-Desktop

  1. Download the installer from release page.
  2. Run the installer.

How to build Node-RED-Desktop

git clone https://github.com/sakazuki/node-red-desktop.git
cd node-red-desktop
npm install
npm run build

node-red-desktop's People

Contributors

marcproe avatar sakazuki avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

node-red-desktop's Issues

Idea: Dashboard on the Same App

This is just an idea, to be discussed..

Instead of launching a separate browser for the dashboard, could the IDE and the Dashboard be under the same app?

ngrok's Authtoken

Is possible to use ngrok's Authtoken?
is useful to demo web app and classroom.
thanks.

Listen Port needs checking

Hi sakazuki :)
I made a mistake and typed in 181880 instead of 11880 when I tried it and the application just sits looking like this - I think it needs some checking on the value if possible
image

Open local/public URL not working

Hi sakazuki,

thanks for your great work! I am usinf v1.2.2 and I noticed that both "Open a local URL" and "Open a pulic URL" (when connecting ngrok) are not working, sinche the browser replies with "Cannot GET /" in both cases.

Hope this may help.
Thanks in advance.
Best regards.

How to set the level of verbosity of the **debug** panel?

By default, Node-RED-Desktop prints the trace for all nodes on the debug panel,

Capture d’écran 2020-02-22 à 16 35 44

while standard Node-RED only reports the output of the debug node.

Capture d’écran 2020-02-22 à 16 37 19

How to set the level of verbosity of the debug panel for Node-RED-Desktop?

Thank you!

Some nodes missing from standard Node-RED package

I'm comparing the command-line Node-RED (left) with the Node-RED-Desktop (right).

Some nodes are missing from the Node-RED-Desktop.

  • For inputs: MQTT, UDP, UDP

Capture  2019-05-25 à 09 21 35

  • For outputs: MQTT, UDP, UDP

Capture  2019-05-25 à 09 21 43

All those nodes are part of the standard node-red package.

  • Is there a technical reason for the Node-RED-Desktop to not feature them? I'd be especially interested in the MQTT nodes.

  • How to activate them?

Flows not being saved.

If I import a flow I can deploy it successfully, I can add nodes, in fact everything appears normal. I click save to save the flow. If I then shut down Node-RED Desktop and then re-start it there are no flows. I have tried this with one flow and two flows, everything is fine until I close Node-RED Desktop down, then when I reopen it there are no flows at all. Can someone please tell me what I am doing wrong. PC is Windows 10 * 64 and I used the NRD installer to install it.

Unexpected Error from Flows that previously worked and still work on all other Node-Red Platforms

A while back I installed Node-red desktop (same version) and imported my flows. Worked fine but had an issue with getting the file menu to appear so I could save the flow. (I didn't know about the Alt key). So I uninstalled and reinstalled the same version and imported the flow again. (same notepad file). Now I can neither save nor deploy. I get the following error (screenshot attached) "Deployment failed: {"code":"unexpected_error","message": "cannot read properties of null (reading "rev")}
I have tied importing the flows in small pieces to see if I can find which node has a problem. Doesn't appear to matter. Whatever I import I get this error. Anyone have any ideas? Thank you.
nodered error.pdf

Latest install 2.1.0 : no menus visible

I've installed version 2..1.0 by running the setup.exe from the releases section - although it shows version 2.1.2 on in the app menu. I'm using Windows 64bit PC.

The File Endpoint View and Help menus are not visible.

image

Do I have to install node js before installing using the installer?

Really portable

Hello,
as I was investigating inside your code, after building it, I saw that you mention few directories:

Windows

    %USERPROFILE%\.Node-RED-Desktop\
    %USERPROFILE%\AppData\Local\Programs\Node-RED-Desktop\
    %USERPROFILE%\AppData\Roaming\Node-RED-Desktop\

But is it possible NOT to use this folders and use only subfolders inside Node-red-desktop installation folder? and make it really portable?
Many thanks.

macOS no longer supported?

The last releases 0.9.5-beta and 0.9.5-beta-2 only provide binaries for Windows.

Is macOS still supported?

Thank you!

cannot config setting.js

i want to load an external npm node and it already done in "add a remote node" but it cannot load require even i have following configuration at %USERPROFILE%\.Node-RED-Desktop\settings.js

module.exports = {
  functionGlobalContext: {
    require:require
  }
}

or can make it default or able to config at "Settings..."? thanks.

v1.0.0-beta.5 - Trying to install node-red-node-serialport fails

With release v1.0.0-beta.5, I'm facing the same error as #1.

  • Installing node-red-node-serialport from Node-RED-Desktop results in an error.
-----------------------------------------------------------
2019-11-11T08:33:59.487Z Install : node-red-node-serialport 0.8.8

2019-11-11T08:33:59.503Z /Applications/Node-RED-Desktop.app/Contents/Resources/app.asar/node_modules/npm/bin/npm-cli.js install --no-audit --no-update-notifier --save --save-prefix="~" --production [email protected]
2019-11-11T08:34:05.471Z [err] npm ERR! code EACCES
2019-11-11T08:34:05.472Z [err] npm ERR! syscall unlink
2019-11-11T08:34:05.472Z [err] npm ERR! path /Users/ReiVilo/.Node-RED-Desktop/node_modules/@serialport/.bindings.DELETE/build/Makefile
2019-11-11T08:34:05.472Z [err] npm ERR! errno -13
2019-11-11T08:34:05.473Z [err] npm ERR! Error: EACCES: permission denied, unlink '/Users/ReiVilo/.Node-RED-Desktop/node_modules/@serialport/.bindings.DELETE/build/Makefile'
2019-11-11T08:34:05.473Z [err] npm ERR!  [OperationalError: EACCES: permission denied, unlink '/Users/ReiVilo/.Node-RED-Desktop/node_modules/@serialport/.bindings.DELETE/build/Makefile'] {
2019-11-11T08:34:05.473Z [err] npm
2019-11-11T08:34:05.473Z [err]  ERR!   cause: [Error: EACCES: permission denied, unlink '/Users/ReiVilo/.Node-RED-Desktop/node_modules/@serialport/.bindings.DELETE/build/Makefile'] {
2019-11-11T08:34:05.473Z [err] npm ERR!     errno: -13,
2019-11-11T08:34:05.473Z [err] npm ERR!     code: 'EACCES',
2019-11-11T08:34:05.473Z [err] npm ERR!     syscall: 'unlink',
2019-11-11T08:34:05.473Z [err] npm ERR!     path: '/Users/ReiVilo/.Node-RED-Desktop/node_modules/@serialport/.bindings.DELETE/build/Makefile'
2019-11-11T08:34:05.473Z [err] npm ERR!   },
2019-11-11T08:34:05.473Z [err] npm ERR!   stack: "Error: EACCES: permission denied, unlink '/Users/ReiVilo/.Node-RED-Desktop/node_modules/@serialport/.bindings.DELETE/build/Makefile'",
2019-11-11T08:34:05.473Z [err] npm ERR!   errno: -13,
2019-11-11T08:34:05.473Z [err] npm ERR!   code: 'EACCES',
2019-11-11T08:34:05.473Z [err] npm ERR!   syscall: 'unlink',
2019-11-11T08:34:05.473Z [err] npm ERR!   path: '/Users/ReiVilo/.Node-RED-Desktop/node_modules/@serialport/.bindings.DELETE/build/Makefile',
2019-11-11T08:34:05.473Z [err] npm ERR!   parent: '.Node-RED-Desktop'
2019-11-11T08:34:05.473Z [err] npm ERR! }
2019-11-11T08:34:05.473Z [err] npm ERR! 
2019-11-11T08:34:05.473Z [err] npm ERR! The operation was rejected by your operating system.
2019-11-11T08:34:05.473Z [err] npm ERR! It is likely you do not have the permissions to access this file as the current user
2019-11-11T08:34:05.473Z [err] npm ERR! 
2019-11-11T08:34:05.473Z [err] npm ERR!
2019-11-11T08:34:05.476Z [err]  If you believe this might be a permissions issue, please double-check the
2019-11-11T08:34:05.476Z [err] npm ERR! permissions of the file and its containing directories, or try running
2019-11-11T08:34:05.476Z [err] npm ERR! the command again as root/Administrator.
2019-11-11T08:34:05.489Z [err] 
2019-11-11T08:34:05.489Z [err] npm ERR! A complete log of this run can be found in:
2019-11-11T08:34:05.489Z [err] npm ERR!
2019-11-11T08:34:05.489Z [err]      /Users/ReiVilo/.npm/_logs/2019-11-11T08_34_05_476Z-debug.log
2019-11-11T08:34:05.499Z rc=243
  • Installing node-red-node-serialport from command line succeeds...
ReiVilo@MacBook .Node-RED-Desktop % sudo npm i node-red-node-serialport
Password:

> @serialport/[email protected] install /Users/ReiVilo/.Node-RED-Desktop/node_modules/@serialport/bindings
> prebuild-install --tag-prefix @serialport/bindings@ || node-gyp rebuild

+ [email protected]
added 58 packages from 42 contributors, removed 1 package, updated 1 package and audited 471 packages in 2.677s
found 0 vulnerabilities

...but the Serial nodes are not available on the palette.

Capture d’écran 2019-11-11 à 09 36 02

  • So I went for the procedure for rebuilding Electron detailed in #1.

However, it fails with the following message:

Last login: Mon Nov 11 09:27:13 on ttys001
ReiVilo@MacBook ~ % cd .Node-RED-Desktop 
ReiVilo@MacBook .Node-RED-Desktop % sudo npm install -g electron-rebuild
Password:
/usr/local/bin/electron-rebuild -> /usr/local/lib/node_modules/electron-rebuild/lib/src/cli.js
+ [email protected]
updated 1 package in 3.504s
ReiVilo@MacBook .Node-RED-Desktop % sudo electron-rebuild --version 7.1.1
✖ Rebuild Failed

An unhandled error occurred inside electron-rebuild
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | darwin | x64
gyp info find Python using Python version 2.7.16 found at "/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python"
gyp info spawn /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python
gyp info spawn args [
gyp info spawn args   '/usr/local/lib/node_modules/electron-rebuild/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args   'binding.gyp',
gyp info spawn args   '-f',
gyp info spawn args   'make',
gyp info spawn args   '-I',
gyp info spawn args   '/Users/ReiVilo/.Node-RED-Desktop/node_modules/@serialport/bindings/build/config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/usr/local/lib/node_modules/electron-rebuild/node_modules/node-gyp/addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/Users/ReiVilo/.electron-gyp/7.1.1/include/node/common.gypi',
gyp info spawn args   '-Dlibrary=shared_library',
gyp info spawn args   '-Dvisibility=default',
gyp info spawn args   '-Dnode_root_dir=/Users/ReiVilo/.electron-gyp/7.1.1',
gyp info spawn args   '-Dnode_gyp_dir=/usr/local/lib/node_modules/electron-rebuild/node_modules/node-gyp',
gyp info spawn args   '-Dnode_lib_file=/Users/ReiVilo/.electron-gyp/7.1.1/<(target_arch)/node.lib',
gyp info spawn args   '-Dmodule_root_dir=/Users/ReiVilo/.Node-RED-Desktop/node_modules/@serialport/bindings',
gyp info spawn args   '-Dnode_engine=v8',
gyp info spawn args   '--depth=.',
gyp info spawn args   '--no-parallel',
gyp info spawn args   '--generator-output',
gyp info spawn args   'build',
gyp info spawn args   '-Goutput_dir=.'
gyp info spawn args ]
gyp info spawn make
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
  CXX(target) Release/obj.target/bindings/src/serialport.o
../src/serialport.cpp:329:14: error: no matching member function for call to 'Set'
    results->Set(Nan::New<v8::String>("cts").ToLocalChecked(), Nan::New<v8::Boolean>(data->cts));
    ~~~~~~~~~^~~
/Users/ReiVilo/.electron-gyp/7.1.1/include/node/v8.h:3455:37: note: candidate function not viable: requires 3 arguments, but 2 were provided
  V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
                                    ^
/Users/ReiVilo/.electron-gyp/7.1.1/include/node/v8.h:3458:37: note: candidate function not viable: requires 3 arguments, but 2 were provided
  V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
                                    ^
../src/serialport.cpp:330:14: error: no matching member function for call to 'Set'
    results->Set(Nan::New<v8::String>("dsr").ToLocalChecked(), Nan::New<v8::Boolean>(data->dsr));
    ~~~~~~~~~^~~
/Users/ReiVilo/.electron-gyp/7.1.1/include/node/v8.h:3455:37: note: candidate function not viable: requires 3 arguments, but 2 were provided
  V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
                                    ^
/Users/ReiVilo/.electron-gyp/7.1.1/include/node/v8.h:3458:37: note: candidate function not viable: requires 3 arguments, but 2 were provided
  V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
                                    ^
../src/serialport.cpp:331:14: error: no matching member function for call to 'Set'
    results->Set(Nan::New<v8::String>("dcd").ToLocalChecked(), Nan::New<v8::Boolean>(data->dcd));
    ~~~~~~~~~^~~
/Users/ReiVilo/.electron-gyp/7.1.1/include/node/v8.h:3455:37: note: candidate function not viable: requires 3 arguments, but 2 were provided
  V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
                                    ^
/Users/ReiVilo/.electron-gyp/7.1.1/include/node/v8.h:3458:37: note: candidate function not viable: requires 3 arguments, but 2 were provided
  V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
                                    ^
../src/serialport.cpp:378:14: error: no matching member function for call to 'Set'
    results->Set(Nan::New<v8::String>("baudRate").ToLocalChecked(), Nan::New<v8::Integer>(data->baudRate));
    ~~~~~~~~~^~~
/Users/ReiVilo/.electron-gyp/7.1.1/include/node/v8.h:3455:37: note: candidate function not viable: requires 3 arguments, but 2 were provided
  V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
                                    ^
/Users/ReiVilo/.electron-gyp/7.1.1/include/node/v8.h:3458:37: note: candidate function not viable: requires 3 arguments, but 2 were provided
  V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
                                    ^
4 errors generated.
make: *** [Release/obj.target/bindings/src/serialport.o] Error 1
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/electron-rebuild/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack     at ChildProcess.emit (events.js:210:5)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)
gyp ERR! System Darwin 19.0.0
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/electron-rebuild/node_modules/.bin/node-gyp" "rebuild" "--target=7.1.1" "--arch=x64" "--dist-url=https://electronjs.org/headers" "--build-from-source"
gyp ERR! cwd /Users/ReiVilo/.Node-RED-Desktop/node_modules/@serialport/bindings
gyp ERR! node -v v12.13.0
gyp ERR! node-gyp -v v5.0.5
gyp ERR! not ok 

Failed with exit code: 1

Error: gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | darwin | x64
gyp info find Python using Python version 2.7.16 found at "/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python"
gyp info spawn /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python
gyp info spawn args [
gyp info spawn args   '/usr/local/lib/node_modules/electron-rebuild/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args   'binding.gyp',
gyp info spawn args   '-f',
gyp info spawn args   'make',
gyp info spawn args   '-I',
gyp info spawn args   '/Users/ReiVilo/.Node-RED-Desktop/node_modules/@serialport/bindings/build/config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/usr/local/lib/node_modules/electron-rebuild/node_modules/node-gyp/addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/Users/ReiVilo/.electron-gyp/7.1.1/include/node/common.gypi',
gyp info spawn args   '-Dlibrary=shared_library',
gyp info spawn args   '-Dvisibility=default',
gyp info spawn args   '-Dnode_root_dir=/Users/ReiVilo/.electron-gyp/7.1.1',
gyp info spawn args   '-Dnode_gyp_dir=/usr/local/lib/node_modules/electron-rebuild/node_modules/node-gyp',
gyp info spawn args   '-Dnode_lib_file=/Users/ReiVilo/.electron-gyp/7.1.1/<(target_arch)/node.lib',
gyp info spawn args   '-Dmodule_root_dir=/Users/ReiVilo/.Node-RED-Desktop/node_modules/@serialport/bindings',
gyp info spawn args   '-Dnode_engine=v8',
gyp info spawn args   '--depth=.',
gyp info spawn args   '--no-parallel',
gyp info spawn args   '--generator-output',
gyp info spawn args   'build',
gyp info spawn args   '-Goutput_dir=.'
gyp info spawn args ]
gyp info spawn make
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
  CXX(target) Release/obj.target/bindings/src/serialport.o
../src/serialport.cpp:329:14: error: no matching member function for call to 'Set'
    results->Set(Nan::New<v8::String>("cts").ToLocalChecked(), Nan::New<v8::Boolean>(data->cts));
    ~~~~~~~~~^~~
/Users/ReiVilo/.electron-gyp/7.1.1/include/node/v8.h:3455:37: note: candidate function not viable: requires 3 arguments, but 2 were provided
  V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
                                    ^
/Users/ReiVilo/.electron-gyp/7.1.1/include/node/v8.h:3458:37: note: candidate function not viable: requires 3 arguments, but 2 were provided
  V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
                                    ^
../src/serialport.cpp:330:14: error: no matching member function for call to 'Set'
    results->Set(Nan::New<v8::String>("dsr").ToLocalChecked(), Nan::New<v8::Boolean>(data->dsr));
    ~~~~~~~~~^~~
/Users/ReiVilo/.electron-gyp/7.1.1/include/node/v8.h:3455:37: note: candidate function not viable: requires 3 arguments, but 2 were provided
  V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
                                    ^
/Users/ReiVilo/.electron-gyp/7.1.1/include/node/v8.h:3458:37: note: candidate function not viable: requires 3 arguments, but 2 were provided
  V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
                                    ^
../src/serialport.cpp:331:14: error: no matching member function for call to 'Set'
    results->Set(Nan::New<v8::String>("dcd").ToLocalChecked(), Nan::New<v8::Boolean>(data->dcd));
    ~~~~~~~~~^~~
/Users/ReiVilo/.electron-gyp/7.1.1/include/node/v8.h:3455:37: note: candidate function not viable: requires 3 arguments, but 2 were provided
  V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
                                    ^
/Users/ReiVilo/.electron-gyp/7.1.1/include/node/v8.h:3458:37: note: candidate function not viable: requires 3 arguments, but 2 were provided
  V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
                                    ^
../src/serialport.cpp:378:14: error: no matching member function for call to 'Set'
    results->Set(Nan::New<v8::String>("baudRate").ToLocalChecked(), Nan::New<v8::Integer>(data->baudRate));
    ~~~~~~~~~^~~
/Users/ReiVilo/.electron-gyp/7.1.1/include/node/v8.h:3455:37: note: candidate function not viable: requires 3 arguments, but 2 were provided
  V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
                                    ^
/Users/ReiVilo/.electron-gyp/7.1.1/include/node/v8.h:3458:37: note: candidate function not viable: requires 3 arguments, but 2 were provided
  V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
                                    ^
4 errors generated.
make: *** [Release/obj.target/bindings/src/serialport.o] Error 1
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/electron-rebuild/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack     at ChildProcess.emit (events.js:210:5)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)
gyp ERR! System Darwin 19.0.0
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/electron-rebuild/node_modules/.bin/node-gyp" "rebuild" "--target=7.1.1" "--arch=x64" "--dist-url=https://electronjs.org/headers" "--build-from-source"
gyp ERR! cwd /Users/ReiVilo/.Node-RED-Desktop/node_modules/@serialport/bindings
gyp ERR! node -v v12.13.0
gyp ERR! node-gyp -v v5.0.5
gyp ERR! not ok 

Failed with exit code: 1
    at SafeSubscriber._error (/usr/local/lib/node_modules/electron-rebuild/node_modules/spawn-rx/lib/src/index.js:267:84)
    at SafeSubscriber.__tryOrUnsub (/usr/local/lib/node_modules/electron-rebuild/node_modules/rxjs/internal/Subscriber.js:205:16)
    at SafeSubscriber.error (/usr/local/lib/node_modules/electron-rebuild/node_modules/rxjs/internal/Subscriber.js:156:26)
    at Subscriber._error (/usr/local/lib/node_modules/electron-rebuild/node_modules/rxjs/internal/Subscriber.js:92:26)
    at Subscriber.error (/usr/local/lib/node_modules/electron-rebuild/node_modules/rxjs/internal/Subscriber.js:72:18)
    at MapSubscriber.Subscriber._error (/usr/local/lib/node_modules/electron-rebuild/node_modules/rxjs/internal/Subscriber.js:92:26)
    at MapSubscriber.Subscriber.error (/usr/local/lib/node_modules/electron-rebuild/node_modules/rxjs/internal/Subscriber.js:72:18)
    at SafeSubscriber._next (/usr/local/lib/node_modules/electron-rebuild/node_modules/spawn-rx/lib/src/index.js:242:65)
    at SafeSubscriber.__tryOrUnsub (/usr/local/lib/node_modules/electron-rebuild/node_modules/rxjs/internal/Subscriber.js:205:16)
    at SafeSubscriber.next (/usr/local/lib/node_modules/electron-rebuild/node_modules/rxjs/internal/Subscriber.js:143:22)
ReiVilo@MacBook .Node-RED-Desktop % 

I'm using macOS 10.15.1 Catalina.

Environment Variables

Setting environment variables in terminal on macOS does not seem to allow incoming connections. Example:
export NRD_LISTEN_IP=0.0.0.0
followed by running the binary in the .app from the command line does not change the listening to global. MacOS does warn for accepting incoming connections, though. The port equivalent does work.

Crash auto-update

Node-red Desktop crash during autoupdate when a network change occurs.

[2021-09-16 08:07:40.461] [error] Error: Error: net::ERR_NETWORK_CHANGED
at SimpleURLLoaderWrapper. (electron/js2c/browser_init.js:105:7068)
at SimpleURLLoaderWrapper.emit (events.js:315:20)
[2021-09-16 08:07:40.463] [info] Error in auto-updater. Error: net::ERR_NETWORK_CHANGED
[2021-09-16 08:07:40.776] [error] Error: net::ERR_NETWORK_CHANGED
at SimpleURLLoaderWrapper. (electron/js2c/browser_init.js:105:7068)
at SimpleURLLoaderWrapper.emit (events.js:315:20)

after this it is no longer possible to start nodered, it is necessary to restart the computer (Windows 10)

Multiple instances

I don't know if it's been asked before, how do you run multiple instances of node-red-desktop? I tried using 2 separate folders with 2 user directories, but they seem to launch using the same default settings. Thank you.

Turn off showing linting errors as default

Hi
I just upgraded to the 2.1.0 version and wondered why I was getting so many errors showing on my nodes

Eventually, I realised they were not errors but warnings :)

Nice feature (for developers) but I think the warnings should not be enabled as a default

Menus disabled

I have been using node-red-desktop for a while on many PCs without problem. However, starting this morning, when I launched node-red-desktop, the New, Save, open local url, and other menus are disabled, but the Settings menu is still enabled. I tried to remove the installation, remove the user directories on Windows, re-installed but the problem persists. Any pointers? Thank you.

Idea: Add Relaunch option on menu

Very often, updating nodes through the Palette requires restarting Node-RED.

The View menu offers the Reload command to refresh the screen.

The idea is to add a command to relaunch the underlying Node-RED service.

change file locations?

I see that you can set the user directory but is there a way to change the other two locations (in windows)?

executable location: C:\Users\xxxxx\AppData\Local\Programs\node-red-desktop\

caches, strorage, etc.: C:\Users\xxxxx\AppData\Roaming\Node-RED-Desktop\

I am attempting to make this as portable as possible. Thanks.

Building Node-RED Desktop v1.2.2 on macOS 10.15.7

Contrary to previous releases, Node-RED Desktop v1.2.2 isn't available as a binary for macOS.

  • Do you plan to release a binary for macOS?

So I try to build it by myself. I followed the procedure and faced some issues.

% npm install
% npm run build

> [email protected] build /Users/USER/Downloads/node-red-desktop-1.2.2
> tsc && node build.js

node_modules/ngrok/ngrok.d.ts:1:66 - error TS7016: Could not find a declaration file for module 'request'. '/Users/USER/Downloads/node-red-desktop-1.2.2/node_modules/request/index.js' implicitly has an 'any' type.
  Try `npm i --save-dev @types/request` if it exists or add a new declaration (.d.ts) file containing `declare module 'request';`

1 import { CoreOptions, Request, RequestAPI, RequiredUriUrl } from 'request';
                                                                   ~~~~~~~~~

Using the recommended command solved this first issue.

% npm i --save-dev @types/request

However, building failed with two errors.

% npm run build

Error #1 --------------------------------------------------------------------------------
TypeError: Cannot read property 'provider' of null
    at createUpdateInfoTasks (/Users/USER/Downloads/node-red-desktop-1.2.2/node_modules/app-builder-lib/src/publish/updateInfoBuilder.ts:110:44)

Error #2 --------------------------------------------------------------------------------
TypeError: Cannot read property 'provider' of null
    at createUpdateInfoTasks (/Users/USER/Downloads/node-red-desktop-1.2.2/node_modules/app-builder-lib/src/publish/updateInfoBuilder.ts:110:44)
    at throwError (/Users/USER/Downloads/node-red-desktop-1.2.2/node_modules/builder-util/src/asyncTaskManager.ts:90:11)
    at checkErrors (/Users/USER/Downloads/node-red-desktop-1.2.2/node_modules/builder-util/src/asyncTaskManager.ts:53:9)
    at AsyncTaskManager.awaitTasks (/Users/USER/Downloads/node-red-desktop-1.2.2/node_modules/builder-util/src/asyncTaskManager.ts:58:5)
    at PublishManager.awaitTasks (/Users/USER/Downloads/node-red-desktop-1.2.2/node_modules/app-builder-lib/src/publish/PublishManager.ts:210:28)
    at /Users/USER/Downloads/node-red-desktop-1.2.2/node_modules/app-builder-lib/src/index.ts:94:32
    at executeFinally (/Users/USER/Downloads/node-red-desktop-1.2.2/node_modules/builder-util/src/promise.ts:25:9)
    at /Users/USER/Downloads/node-red-desktop-1.2.2/build.js:38:17

Thank you and best regards,

Auto-update error

Calling auto-update from...

Capture 2020-10-20 à 10 59 06

... raises an error

Capture 2020-10-20 à 10 58 08

  • macOS 10.15.7 Catalina

Environnments variable not working on v2.1.0

Hi,
I've read previous problem about that, but it seems there's still problem with that.
Tested on Windows 7 & 10, with command line:
Node-RED-Desktop.exe NRD_LISTEN_IP=192.168.0.200 NRD_LISTEN_PORT=1880 NRD_IP_ALLOWS=192.168.0.200,192.168.0.100

But I can acces to server only with http://127.0.0.1/1880/admin
And when I launch this command line, in console I have a script opening and readable in console, quite strange...

Am I wrong? Is there something I missed? Thanks for help.

enabling HTTPS

Is is possible to enable HTTPS?

I tried putting the HTTPS code from node-red into a settings.js file but that did not work.

Update Issues

Please find a couple of issues.

  • Download error message

When I launch Node-RED-Desktop 0.9.1, I'm prompted to download the new release 0.9.2.

Capture  2019-07-13 à 20 18 32

However, download fails with the following message:

Capture  2019-07-13 à 14 45 57

  • Node-RED-Desktop 0.9.2 goes back to 0.9.1!

So I've downloaded and installed release 0.9.2 manually.

Capture  2019-07-13 à 20 19 24

However, after a couple of launches, Node-RED-Desktop returns to release 0.9.1!

Capture  2019-07-13 à 20 23 06

What is going on? Thank you!

Change (or add as argument) environment Variables

Hi,
I would like to launch your node-red-desktop and changing few parameters, but if I change in source code, after an update I think I'll lose my parameters compiled exe release.
Could it possible to luanche like "Node-RED-Desktop.exe --NRD_LISTEN_PORT=888", or use a 'conf.env' file at root of appplication for specific user variable?
Many thanks for your help, that's very useful!!!

Idea: Add context data storage

Hi Sakazuki, thanks for your work ,
It would be nice to add support for persistent variables. At each update of NRD I lose all my measurements. Maybe, are you already working on it? ;)

Can't deploy new flow

Brand new install and can't even deploy the most basic flow
image

I don't seem to be able to deploy any flow, with projects enabled. If I disable projects then flows can be deployed.

Flow in not reload

Hi.
I installed Nodered desktop app.
I config flow and publish it and it run as nomal.
But, my flow is deleted when i relaunch NodeRed app.

Before:
image
After :
image

Please support me fix it.

Thanks

Fail to launch Node-RED-Destkop v2.0.0-beta.1

Fail to launch v2.0.0-beta.1

[2021-08-10 20:59:39.591] [info]  [
  'C:\\Users\\testuser\\AppData\\Local\\Programs\\node-red-desktop\\Node-RED-Desktop.exe'
]
[2021-08-10 20:59:42.849] [error] TypeError: Cannot read property 'withFileTypes' of null
    at e.readdir (electron/js2c/asar_bundle.js:5:9862)
    at go$readdir (C:\Users\testuser\AppData\Local\Programs\node-red-desktop\resources\app.asar\node_modules\fs-extra\node_modules\graceful-fs\graceful-fs.js:201:14)
    at Object.readdir (C:\Users\testuser\AppData\Local\Programs\node-red-desktop\resources\app.asar\node_modules\fs-extra\node_modules\graceful-fs\graceful-fs.js:198:12)
    at Object.readdir (C:\Users\testuser\AppData\Local\Programs\node-red-desktop\resources\app.asar\node_modules\universalify\index.js:5:57)
    at C:\Users\testuser\AppData\Local\Programs\node-red-desktop\resources\app.asar\node_modules\@node-red\util\lib\i18n.js:53:16
    at new Promise (<anonymous>)
    at C:\Users\testuser\AppData\Local\Programs\node-red-desktop\resources\app.asar\node_modules\@node-red\util\lib\i18n.js:51:16
    at processTicksAndRejections (internal/process/task_queues.js:93:5)

Suggestion: Turn "Checking for update..." notification off

By default, when Check updates on startup is activated, a notification "Checking for update..." is displayed at launch.

Capture  2019-06-24 à 18 09 26

Could this notification be turned off, and be replaced by "Downloading update" in case a new version is available?

macOS: Interface Consistency Suggestions

Please find some suggestions to improve the consistency of the interface between Node-RED Desktop and other macOS applications.

  • File > Quit would go under Node-RED-Desktop > Quit
  • File > Settings... would go under Node-RED-Desktop > Preferences...
  • Endpoint > ngrok Connect could be renamed Endpoint > Connect ngrok
  • Endpoint > ngrok Disconnect could be renamed Endpoint > Disconnect ngrok
  • Help > Version could be merged with Node-RED-Desktop > About
  • Help > Check Update... would go under Node-RED-Desktop > Check Update...

Question: bind Node-Red-Desktop on fix local port

Hi,

is there a solution to bind Node-Red-Desktop to a fix local port?
After every start Node-Red-Desktop is arrival over a different port.
Ngrok is not a solution, I don't need access from the Internet. Only local networks or local computer.

Thank Ron

未保存のフローが存在する状態でウィンドウを閉じる際に確認ダイアログを出してほしい

タイトル通りですが、未保存状態の時に確認ダイアログを表示してほしいです。

通常のNode-redと並行して利用させていただいておりますが通常版だとデプロイのみで
保存まで行われフローが失われることがないのですがDesktop版だと同じ動作でフローが
失われる結果になり手戻りが発生しています。

どうぞよろしく願いいたします。

Node-red still on 1.2.7

Hello,
When i run Node-RED-Desktop_Setup_1.2.3.exe it install Nod-red 1.2.7 from the information it looks like it suppose to install 1.2.9

installing node-red-node-email from palette manager fails

Trying to install node-red-node-email from the palette manager and it fails. Here is the log. I have been able to install other nodes without issue.

2020-11-10T16:15:30.158Z Install : node-red-node-email 1.8.2

2020-11-10T16:15:30.189Z C:\Users\user\AppData\Local\Programs\node-red-desktop\resources\app.asar\node_modules\npm\bin\npm-cli.js install --no-audit --no-update-notifier --no-fund --save --save-prefix="~" --production [email protected]
2020-11-10T16:15:32.859Z [err] npm WARN lifecycle npm is using C:\Users\user\AppData\Local\Programs\node-red-desktop\Node-RED-Desktop.exe but there is no node binary in the current PATH. Use the --scripts-prepend-node-path option to include the path for the node binary npm was executed with.
2020-11-10T16:15:32.859Z [out]
2020-11-10T16:15:32.859Z [out] > [email protected] postinstall C:\Users\user.Node-RED-Desktop\node_modules\mailparser\node_modules\nodemailer
2020-11-10T16:15:32.859Z [out] > node -e "try{require('./postinstall')}catch(e){}"
2020-11-10T16:15:32.859Z [out]
2020-11-10T16:15:32.909Z [err] 'node' is not recognized as an internal or external command,
2020-11-10T16:15:32.909Z [err] operable program or batch file.
2020-11-10T16:15:32.990Z [err] npm ERR! code ELIFECYCLE
2020-11-10T16:15:32.990Z [err] npm ERR! errno 1
2020-11-10T16:15:32.993Z [err] npm ERR! [email protected] postinstall: node -e "try{require('./postinstall')}catch(e){}"
2020-11-10T16:15:32.993Z [err] npm ERR! Exit status 1
2020-11-10T16:15:32.993Z [err] npm ERR!
2020-11-10T16:15:32.993Z [err] npm ERR! Failed at the [email protected] postinstall script.
2020-11-10T16:15:32.993Z [err] npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
2020-11-10T16:15:33.025Z [err]
2020-11-10T16:15:33.025Z [err] npm ERR! A complete log of this run can be found in:
2020-11-10T16:15:33.025Z [err] npm ERR! C:\Users\user\AppData\Roaming\npm-cache_logs\2020-11-10T16_15_32_994Z-debug.log
2020-11-10T16:15:33.043Z rc=1

Trying to install node-red-node-serialport fails

Please find the log when I try to install node-red-node-serialport using the menu Manage palette.


2019-05-24T07:33:48.514Z Install : node-red-node-serialport 0.8.1

2019-05-24T07:33:48.517Z /Users//Desktop/Node-RED-Desktop.app/Contents/Resources/app.asar/node_modules/npm/bin/npm-cli.js install --no-audit --no-update-notifier --save --save-prefix="~" --production [email protected]
2019-05-24T07:33:50.029Z [err] npm WARN
2019-05-24T07:33:50.029Z [err] lifecycle npm is using /Users//Desktop/Node-RED-Desktop.app/Contents/Frameworks/Node-RED-Desktop Helper.app/Contents/MacOS/Node-RED-Desktop Helper but there is no node binary in the current PATH. Use the --scripts-prepend-node-path option to include the path for the node binary npm was executed with.
2019-05-24T07:33:50.029Z [out]
2019-05-24T07:33:50.029Z [out] > @serialport/[email protected] install /Users//.Node-RED-Desktop/node_modules/@serialport/bindings
2019-05-24T07:33:50.029Z [out] > prebuild-install --tag-prefix @serialport/bindings@ || node-gyp rebuild
2019-05-24T07:33:50.029Z [out]
2019-05-24T07:33:50.036Z [err] env: node: No such file or directory
2019-05-24T07:33:50.037Z [err] sh: node-gyp: command not found
2019-05-24T07:33:50.186Z [err] npm ERR! file sh
2019-05-24T07:33:50.187Z [err] npm ERR! code ELIFECYCLE
2019-05-24T07:33:50.187Z [err] npm ERR! errno ENOENT
2019-05-24T07:33:50.187Z [err] npm ERR! syscall spawn
2019-05-24T07:33:50.187Z [err] npm ERR! @serialport/[email protected] install: prebuild-install --tag-prefix @serialport/bindings@ || node-gyp rebuild
2019-05-24T07:33:50.187Z [err] npm ERR! spawn ENOENT
2019-05-24T07:33:50.187Z [err] npm
2019-05-24T07:33:50.187Z [err] ERR!
2019-05-24T07:33:50.187Z [err] npm ERR! Failed at the @serialport/[email protected] install script.
2019-05-24T07:33:50.187Z [err] npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
2019-05-24T07:33:50.211Z [err]
2019-05-24T07:33:50.211Z [err] npm
2019-05-24T07:33:50.212Z [err] ERR! A complete log of this run can be found in:
2019-05-24T07:33:50.212Z [err] npm ERR! /Users//.npm/_logs/2019-05-24T07_33_50_191Z-debug.log
2019-05-24T07:33:50.220Z rc=1

Thank you!

Please also make similar app for n8n.io

Node-Red desktop is great app for quickly prototyping ideas and testing logic and APIs.

Please also look at https://n8n.io/ which offer many connectors to popular services out-of-the-box and can be used with Node-Red to consume these services.

It will be great to have a similar desktop version of n8n.io.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.