• Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Limited acces to node-red

    Node-RED
    2
    3
    78
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • G
      GS last edited by

      Hello unipi,

      we are working on a node-red project (Neuron M20.) and it seems like we have limited access to the original functions of node-red and npm. Started with your image 1.0.6, now on 1.2.5. Some basic commands lines line "node-red-stop" - and for example commands for installing own nodes for testing - seems not to work in the console.

      Are there special limitations to your delivered image with node-red?

      Is it possible to update node-red using the node-red script descriped on "Running on Raspberry Pi"? After doing that, more commands - not all - work but node-red seems not to be stable.

      Looking forward to your reply.

      Best regrads
      GS

      Martin Kudláček 1 Reply Last reply Reply Quote 0
      • Martin Kudláček
        Martin Kudláček administrators @GS last edited by

        Hello @GS,
        the Node-RED is maintained by a systemd service. To start and stop it use:

        sudo systemctl start node-red
        sudo systemctl stop node-red

        The image versions you have mentioned (1.0.6, 1.2.5) are not versions of any of our images. The images are versioned by the date when they were built, such as neuron-node-red_image-20201119.0.zip

        Martin Kudláček 1 Reply Last reply Reply Quote 0
        • Martin Kudláček
          Martin Kudláček administrators @Martin Kudláček last edited by

          And this is the installation script we use:

          set -e
          
          # don't ask question
          export DEBIAN_FRONTEND=noninteractive
          
          # gnupg for apt-key
          # g++ for the node-red NPM package
          echo "installation of dependenicies"
          apt install -y --no-install-recommends wget curl gnupg g++ make
          
          # add unofficial NodeJS repository and install the nodejs
          # https://github.com/nodesource/distributions/blob/master/README.md#debmanual
          echo "Installation of nodejs and npm"
          wget -O - -q https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add -
          echo "deb https://deb.nodesource.com/node_12.x buster main" > /etc/apt/sources.list.d/nodesource.list
          apt update
          apt install -y --no-install-recommends nodejs
          
          # installation of npm
          curl https://www.npmjs.com/install.sh | bash
          
          # Node-RED installation
          echo "Installation of node-red via npm"
          npm install -g --unsafe-perm node-red
          
          # install the Node-RED systemd service
          echo "Setting up the Node-RED to be run via systemd"
          cp "${SCRIPT_FILES}/node-red.service" /etc/systemd/system
          systemctl enable node-red
          1 Reply Last reply Reply Quote 1
          • First post
            Last post