running. 16-node-red-gui-demo

Post Reply
dpoznan
Posts: 68
Joined: Wed Jun 30, 2021 10:50 pm

running. 16-node-red-gui-demo

Post by dpoznan » Sat Aug 21, 2021 4:22 pm

I am attempting to run the 16-node-red-gui-demo example file on Portable Hearing Lab (PHL) device unsuccessfully.

The example executes node-red, which I cannot find.
I attempted to run node as follows:

mha@mahalia:~/examples/16-node-red-gui-demo$ node /opt/node-red/bin/node-red
5 Aug 10:06:15 - [info]

Welcome to Node-RED
===================

5 Aug 10:06:15 - [info] Node-RED version: v1.3.5
5 Aug 10:06:15 - [info] Node.js version: v10.24.0
5 Aug 10:06:15 - [info] Linux 4.14.94-rt50-g1c548c6a0ea8 arm LE
5 Aug 10:08:03 - [info] Loading palette nodes
5 Aug 10:08:44 - [info] Dashboard version 2.30.0 started at /ui
5 Aug 10:08:45 - [info] Settings file : /home/mha/.node-red/settings.js
5 Aug 10:08:45 - [info] Context store : 'default' [module=memory]
5 Aug 10:08:45 - [info] User directory : /home/mha/.node-red
5 Aug 10:08:45 - [warn] Projects disabled : editorTheme.projects.enabled=false
5 Aug 10:08:45 - [info] Flows file : /home/mha/.node-red/flows_mahalia.json
5 Aug 10:08:45 - [info] Creating new flow file
5 Aug 10:08:46 - [warn]

But it started the dashboard after I had killed the node-red process that gets started at boot time.
BTW...I am unable to find where the node-red gets started at boot time.

I need to be able to create my own dashboard to control my own version of PHL. I assumed the example
would guide me. No luck there.

Has anyone created their own dashboard on PHL using node-red?

Thanks..

dpoznan
Posts: 68
Joined: Wed Jun 30, 2021 10:50 pm

Re: running. 16-node-red-gui-demo

Post by dpoznan » Sun Aug 22, 2021 9:07 pm

I discovered that node-red, just like mahalia is started and stopped as a service.

So I believe just like mha, node-red has to be stopped by systemctl and then one can execute using
/opt/node-red/bin/node

I shall try it shortly.

dpoznan
Posts: 68
Joined: Wed Jun 30, 2021 10:50 pm

Re: running. 16-node-red-gui-demo

Post by dpoznan » Sun Aug 22, 2021 9:37 pm

Yes I was able to run the example node-red after stopping the node-red service

Post Reply