Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Controllers
  3. Node-RED
  4. installing node-red and node-red-contrib-mysensors

installing node-red and node-red-contrib-mysensors

Scheduled Pinned Locked Moved Node-RED
8 Posts 4 Posters 5.5k Views 4 Watching
  • 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.
  • AndurilA Offline
    AndurilA Offline
    Anduril
    wrote on last edited by
    #1

    Hey there,

    I have a problem installing node-red and the mysensors contribution from npm. I installed node-red like this http://nodered.org/docs/hardware/raspberrypi and it seems to work.

    Welcome to Node-RED
    ===================
    
    10 Aug 19:20:49 - [info] Node-RED version: v0.14.6
    10 Aug 19:20:49 - [info] Node.js  version: v4.4.5
    10 Aug 19:20:49 - [info] Linux 4.1.19-v7+ arm LE
    10 Aug 19:20:49 - [info] Loading palette nodes
    10 Aug 19:20:53 - [warn] ------------------------------------------------------
    10 Aug 19:20:53 - [warn] [serialport] Error: Module did not self-register.
    10 Aug 19:20:53 - [warn] ------------------------------------------------------
    10 Aug 19:20:53 - [info] Settings file  : /home/pi/.node-red/settings.js
    10 Aug 19:20:53 - [info] User directory : /home/pi/.node-red
    10 Aug 19:20:53 - [info] Flows file     : /home/pi/.node-red/flows_octopi.json
    10 Aug 19:20:53 - [info] Creating new flow file
    10 Aug 19:20:54 - [info] Starting flows
    10 Aug 19:20:54 - [info] Started flows
    10 Aug 19:20:54 - [info] Server now running at http://127.0.0.1:1880/
    

    Only that serialport error I don't know what's happening there. I wanted to install the contrib, but all it says is

    ~ $ npm install node-red-contrib-mysensors
    node-red-contrib-mysensors@0.7.6 node_modules/node-red-contrib-mysensors
    

    In node-red I don't see any nodes corresponding to mysensors (mysdecenc and mysencap, Hope anyone can help me to get this working.

    1 Reply Last reply
    0
    • tbowmoT Offline
      tbowmoT Offline
      tbowmo
      Admin
      wrote on last edited by tbowmo
      #2

      Did you restart node-red after you installed node-red-contrib-mysensors?

      Also, you could have a look in ~/.node-red/node-modules/ and see if node-red-contrib-mysensors exists there?

      About the serial port, there are probably some hints here: https://www.npmjs.com/package/node-red-node-serialport (I can't remember if I got the same error when I installed/upgraded node-red the last time)

      1 Reply Last reply
      0
      • AndurilA Offline
        AndurilA Offline
        Anduril
        wrote on last edited by
        #3

        Well thanks @tbowmo,

        I found my mistake: I have not been in the /.node-red/ directory. Now I have installed it correctly. Only problem left is with the serialport module. I allready tried to install the older version (0.0.5), but my node.js is to new. Also installing gcc6 and reinstalling serialport did not help. Do you maybe know where to find logs or anything?

        1 Reply Last reply
        0
        • tbowmoT Offline
          tbowmoT Offline
          tbowmo
          Admin
          wrote on last edited by
          #4

          @Anduril

          I'm using node-red-node-serialport 0.1.2, works fine here..

          Did you install the serialport module globally, or locally in ~/.node-red ?

          How do you start node-red? If you're using pm2, then the logs are in ~/.pm2/logs.

          Otherwise, try to start it up from a terminal, just run node-red, it should use stdout for the logs then..

          1 Reply Last reply
          0
          • AndurilA Offline
            AndurilA Offline
            Anduril
            wrote on last edited by Anduril
            #5

            I installed it locally in /.node-red and tried different versions (newest 0.3.0, 0.2.1, 0.2.0 and now also 0.1.2) without success. Do you have yours installed globally? At the moment I start node-red from the terminal with node-red , but I get only the message as shown in post #1. Also google was not very helpful about this error message.

            edit: I also tried to install node-gyp to compile the serialnode, but didn't helped for the problem

            1 Reply Last reply
            0
            • AndurilA Offline
              AndurilA Offline
              Anduril
              wrote on last edited by
              #6

              Just to give an update: I wasn't able to register that plugin, so I started all over. I installed a fresh image and apt-get install nodered. After update and upgrade the version of nodejs was updated and with it came a script named update-nodejs-and-nodered with the very self-explanatory name. After that I had a new version of nodejs (needed for my controller) and a wokring node-red.

              1 Reply Last reply
              0
              • kduinoK Offline
                kduinoK Offline
                kduino
                wrote on last edited by
                #7

                Hi,
                I was wondering if I could use the node red flows to attach mysensors to loxone. But I failed already in the first step: I don't get the my sensors software imported in node red.
                Although I find the "Import" option in the UI, there is only little space and no specific name under library to depict what to import. So the left options are only clipboard and examples.
                Could one of you experienced guys give me short push where i have to copy the files of the node-red-contrib-mysensors-master folder?
                Thank you so much kd

                electrikE 1 Reply Last reply
                0
                • kduinoK kduino

                  Hi,
                  I was wondering if I could use the node red flows to attach mysensors to loxone. But I failed already in the first step: I don't get the my sensors software imported in node red.
                  Although I find the "Import" option in the UI, there is only little space and no specific name under library to depict what to import. So the left options are only clipboard and examples.
                  Could one of you experienced guys give me short push where i have to copy the files of the node-red-contrib-mysensors-master folder?
                  Thank you so much kd

                  electrikE Offline
                  electrikE Offline
                  electrik
                  wrote on last edited by
                  #8

                  @kduino you should go to "Manage palette" and search for mysensors. From there install node-red-contrib-mysensors

                  or you could run

                  npm install node-red-contrib-mysensors
                  
                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  25

                  Online

                  11.7k

                  Users

                  11.2k

                  Topics

                  113.1k

                  Posts


                  Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • MySensors
                  • OpenHardware.io
                  • Categories
                  • Recent
                  • Tags
                  • Popular