this post was submitted on 06 May 2024
24 points (92.9% liked)
Open Source
31243 readers
295 users here now
All about open source! Feel free to ask questions, and share news, and interesting stuff!
Useful Links
- Open Source Initiative
- Free Software Foundation
- Electronic Frontier Foundation
- Software Freedom Conservancy
- It's FOSS
- Android FOSS Apps Megathread
Rules
- Posts must be relevant to the open source ideology
- No NSFW content
- No hate speech, bigotry, etc
Related Communities
- !libre_culture@lemmy.ml
- !libre_software@lemmy.ml
- !libre_hardware@lemmy.ml
- !linux@lemmy.ml
- !technology@lemmy.ml
Community icon from opensource.org, but we are not affiliated with them.
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Don't go into that rabbit hole called Node-Red. You will end up writing a lot of code, and node.js isn't the best scripting language, and my suggestion is to just write a simple Python script.
Debugging is hell, version control is hell, it doesn't have VSCode integration, plus sometimes it has some weird bugs, when you forget to clean up headers, etc. and it can truly make you crazy.
If you need something super simple and it has a good integration, you might consider it, but for anything more complex, stick to Python, or some other scripting language you are familiar with.
Node red is for visual node programming. I don't think you'll need to be writing node.js
Ive used it for years and wrote more bash / python for those nodes than I even touched js.
And I am using it almost every day and believe me I am writing a lot of code in those function nodes.
As soon as you want something more complicated that's not covered by the nodes, you need to write your own code. And then debugging this code or version controlling it becomes a nightmare.
in that case you are doing the whole "no-coding" all wrong. If you really need something that cannot be done by connecting the nodes and grouping them in flows, then instead of developing new function nodes, develop your own contrib packages. But there are a lot of existing packages, so maybe you don't need even that.
Node red is designed to use as little function nodes as possible. Sure, you can do anything with function nodes, but at this point, why use node red at all?
Look at sub flows, grouping flows and environment variables for sub flows, it will enhance what you can do a lot.