django with node red

I am currently working on a project to directly integrate Node-RED with Django. The integration is almost complete, with objects like push buttons and toggles successfully connected to Django. There’s just a bit of frontend work left to display series on the screen. This solution will save a lot of effort, as I’ve set it up so that by simply entering the WebSocket URL for Node-RED, along with its name, ID, and some additional data, Django will automatically create and link all WebSockets with Node-RED. This process is similar to running a command like makemigrations. You only need to focus on the frontend. The main advantages include:

  • Action Logging: Ability to record and track any changes and actions performed by users.

  • Access Control: Restricts access to Node-RED through Django, enhancing security. Only authorized users can access or control specific functionalities.

  • Permissions Management: Django provides fine-grained permissions to determine who can execute or view certain features.

  • In The end The idea is clear and concise, Django will be used for website and site management, while Node-RED will handle end device management and control.If anyone would like to offer advice or participate, I am eager to see advice

If anyone has advice or wants to contribute, I am excited to hear advice and suggestions.

New Microsoft PowerPoint Presentation (4)

Hello Samy,
have you continued that way, I mean Django<->RedNode ?
I would like to create a RAG based on NodeRed, Django and various DB, what do you think ?

I apologize for the delay in responding to your message. I’m happy to let you know that I’m close to completing the project.

I haven’t worked with RAG before, primarily because my background in AI is somewhat limited. However, as an engineer with extensive experience in control systems, backend development, and DevOps, I’ve been able to achieve significant results in related areas. For instance, I successfully built queries for various databases—specifically InfluxDB—using Django and visualized the data effectively with Plotly.

The integration work I’ve done primarily focuses on authentication and authorization, allowing us to define who can control a device, who cannot, and who can view specific data. This setup is ideal for building automation solutions. While I haven’t deeply focused on automation, I’ve explored ideas in this space. For example, I could enable users to leverage Django Template Language to create automation workflows, similar to Home Assistant, but with a more straightforward, flexible, and customizable approach.

Regarding RAG, it is feasible to feed data directly into the system to provide instant answers to questions such as, “What is the system’s status?” or “Are the lights on?” Additionally, RAG can be integrated with databases to generate insightful reports. However, I haven’t had the chance to delve deeply into this aspect.

If you’re interested in exploring this further or have a specific idea you’d like to implement, I’m more than happy to collaborate. My focus is on contributing to the community rather than personal gain. I did step away from the project temporarily, as I was working on it alone and didn’t find others who were interested in collaborating at the time.
In this link, there is a discussion on the Node-RED forum with someone about the integration I worked on and how it functions.