Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Navigation

    Cloudron Forum

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

    Node-RED - Flow-based programming for the Internet of Things

    App Wishlist
    ide iot
    8
    19
    473
    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.
    • C
      ctrl last edited by ctrl

      https://nodered.org/

      1 Reply Last reply Reply Quote 12
      • Hillside502
        Hillside502 last edited by

        Source
        https://github.com/node-red

        Node-RED - Wikipedia
        https://en.wikipedia.org/wiki/Node-RED

        Node Red in 5 minutes - YouTube
        Youtube Video

        Open Source Self-Hosted Node-RED Alternatives
        https://alternativeto.net/software/node-red/?license=opensource&platform=self-hosted

        1 Reply Last reply Reply Quote 2
        • P
          plusone-nick last edited by

          Here is a good 3 part series:
          1- https://www.youtube.com/watch?v=3AR432bguOY
          2- https://www.youtube.com/watch?v=V0SmNcIYCtQ
          3- https://www.youtube.com/watch?v=bovIZtgL68E

          The main interfaces or node RED are raspberry pi and conventional arduino boards but there is also a more industrial PLC: https://www.controllino.biz/ that use the arduino framework and in turn can leverage node-RED

          My main use cases are for Smart Home Automation & Microgreens
          This would be such a valuable addition!

          1 Reply Last reply Reply Quote 2
          • marcusquinn
            marcusquinn last edited by

            We can sponsor this if someone wants to package?

            1 Reply Last reply Reply Quote 2
            • P
              plusone-nick last edited by

              There is an industrial grade PLC that is 100% Arduino compatible = https://www.controllino.biz/
              I will have to dig up the additional resources I had but all in all you one can use: Node-RED + Arduino IDE + Controllino PLC 😎

              1 Reply Last reply Reply Quote 0
              • H
                hakunamatata last edited by

                Another upvote for this app!

                1 Reply Last reply Reply Quote 1
                • S
                  staypath last edited by

                  I'm a long-time Node-RED user. I was able to get a custom app packaged for Cloudron. So far, so good...

                  c786303d-fff3-4e10-b473-d649896c489c-image.png

                  robi marcusquinn 2 Replies Last reply Reply Quote 7
                  • robi
                    robi @staypath last edited by

                    @staypath cool, can you let us know where the repo is and @staff can help get it into the App store.

                    S 1 Reply Last reply Reply Quote 2
                    • marcusquinn
                      marcusquinn @staypath last edited by

                      @staypath Very cool! 🥇

                      1 Reply Last reply Reply Quote 0
                      • S
                        staypath @robi last edited by

                        @robi Cloudron customizations are in the docker-custom folder

                        https://github.com/jsonsmth/node-red-docker

                        Feedback is welcome as this is my first foray into Cloudron app customization.

                        girish 1 Reply Last reply Reply Quote 2
                        • girish
                          girish Staff @staypath last edited by

                          @staypath That's a good start! I haven't used node-red before but does it require "plugins" or arbitrary node modules to be installed to be usable? A quick look into your package suggests that you decided to put everything into /app/data. Is it because of that?

                          S 1 Reply Last reply Reply Quote 0
                          • S
                            staypath @girish last edited by

                            @girish Yes. Any new "plugins" installed are node modules that would be installed in /app/data/data/node_modules

                            I installed a couple of Node-RED modules (plugins), took a backup of the app in Cloudron, cloned the app from backup, etc... and all seemed to work well. Anything I'm missing? Thanks!

                            girish 1 Reply Last reply Reply Quote 0
                            • girish
                              girish Staff @staypath last edited by

                              @staypath Usually, we keep the code in Cloudron read-only. As a convention, the code is placed in /app/code. The data the app generates is put in /app/data and this is backed up. The idea is when we have an update, we can just throw out the old container, replace it with the new container, keep /app/data alone as-is (it's mounted into the new container) and things will work.

                              If the code itself is in /app/data, then it's part of the backup and also the update path is not clear. All the operations like backup/clone etc will work. Only update is an issue. Do you have any idea how to solve this?

                              One idea, if it's possible, is to put node-red code and npm install in /app/code in the Dockerfile. For additional plugins, if we can set some node module path which can be picked up from say /app/data/node_modules or something, that would be ideal. Is that possible though?

                              S 2 Replies Last reply Reply Quote 2
                              • girish
                                girish Staff last edited by

                                Per https://nodejs.org/api/modules.html#modules_loading_from_the_global_folders, we can maybe set NODE_PATH=/app/data/node_modules maybe?

                                1 Reply Last reply Reply Quote 0
                                • S
                                  staypath @girish last edited by

                                  @girish Ok, I understand a bit more about the Cloudron build process now. I have updated my Dockerfile.cloudron and moved the repo here:

                                  https://github.com/jsonsmth/node-red-docker-cloudron

                                  The updated build process stores all app code in /app/code and only the user-specific data (including user node_modules) in /app/data.

                                  1 Reply Last reply Reply Quote 2
                                  • S
                                    staypath @girish last edited by

                                    @girish Also, I think we're following along with the recommended method for preserving user data within the app:

                                    https://github.com/jsonsmth/node-red-docker-cloudron#managing-user-data

                                    1 Reply Last reply Reply Quote 1
                                    • S
                                      staypath last edited by

                                      I have updated the repo here with built-in LDAP auth:

                                      https://github.com/jsonsmth/node-red-docker-cloudron

                                      1 Reply Last reply Reply Quote 2
                                      • S
                                        staypath last edited by

                                        Repo has been updated to include the following:

                                        • split the Dockerfile into Dockerfile.cloudron and start.sh to match Cloudron app standards
                                        • built-in LDAP auth

                                        I've tested backup,restore and package upgrade.

                                        https://github.com/jsonsmth/node-red-docker-cloudron

                                        Thanks!

                                        girish 1 Reply Last reply Reply Quote 6
                                        • girish
                                          girish Staff @staypath last edited by

                                          @staypath awesome, I will take a look later this week!

                                          1 Reply Last reply Reply Quote 1
                                          • First post
                                            Last post