Live data from Hacker News

Node-Red

github.com

11–20 of 28 posts

Re: Node-Red

#11
post #10
post #8

Earlier quoted context omitted.

The flows are stored as JSON and there is a setting to save them as prettified to make them more readable (`flowFilePretty: true` in the settings.js which is on by default in recent release). Also the flow storage is fully plugable ( https://nodered.org/docs/api/storage/ ) so nothing to stop you choosing/implementing a different storage format e.g. YAML https://github.com/natcl/node-red-contrib-yaml-storage

But can you actually hand-write it? When I last looked IDs were UUIDs or similar, so you'd have to create a node in the GUI for a start, and even then the structure of it just clearly wasn't designed for manual editing or diffing. 'Storage' sort of sums it up really, doesn't it?

Given Node-RED is intended as a low-code programming tool, hand-writing the flow JSON has never really been a requirement - certainly not one I can recall being brought up in the community. It's certainly possible to generate flow JSON via other means as the format is not hugely complicated once you know the format.

It's an array of objects, each representing a 'thing' in the flow. Each object has a unqiue id (which can be any randomly generated value), and other meta data that defines what the object is and what its configuration is.

Given most nodes have been implemented with a graphical UI in mind for configuring the nodes, you'd have to refer to individual nodes to understand what node-specific properties they require.

Re: Node-Red

#12
post #9
post #6

Earlier quoted context omitted.

I am aware of it, and agree ;) It's a bit like 'Polite Notice' - I'll decide how polite your notice is myself thanks! Even if one word is desired, wouldn't 'ecosystem' be so much better? (I realise that's a corruption of its meaning, but it's a now widespread meaning anyway.)

Isn’t the point of “polite notice” that it looks very much like “police notice” when glancing quickly? That is certainly how it is abused by horse riders on the road around here.

Oh, maybe. I was thinking of 'please refrain from smoking outside the designated area' and similar, I thought it was a (crap) attempt at making the signage politer and less like an order (which of course it was) - but then I was a young naif when designated indoor smoking areas where allowed anyway!

Re: Node-Red

#13
post #10

Earlier quoted context omitted.

But can you actually hand-write it? When I last looked IDs were UUIDs or similar, so you'd have to create a node in the GUI for a start, and even then the structure of it just clearly wasn't designed for manual editing or diffing. 'Storage' sort of sums it up really, doesn't it?

Given Node-RED is intended as a low-code programming tool, hand-writing the flow JSON has never really been a requirement - certainly not one I can recall being brought up in the community. It's certainly possible to generate flow JSON via other means as the format is not hugely complicated once you know the format. It's an array of objects, each representing a 'thing' in the flow. Each object has a unqiue id (which…

Thank you for creating this tool, I use it on multiple machines and enjoy when i find another new use for it.

Re: Node-Red

#14
I use NodeRed a lot for my smart home and local network as glue between different pieces. It works really well for “hit this API, apply this transformation, and then return it when I send you a GET at /something” or “listen for MQTT, get this key out of the message, and rebroadcast it”.

Re: Node-Red

#15
post #7

The one thing I want added to Node-Red is an editable, sanely git diff-able on-disk text format for its configuration. I want to be able to edit either in GUI or in text, and then view the result in the GUI (and have it work of course!). Does anybody know if there's any plugin for or way of achieving that? When I last looked into it, people were checking in the config files (whatever format they were, perhaps proprie…

The on-disk text is still crazy but you can turn on version tracking in node-red that lets you track any changes made.

Re: Node-Red

#16
post #7

The one thing I want added to Node-Red is an editable, sanely git diff-able on-disk text format for its configuration. I want to be able to edit either in GUI or in text, and then view the result in the GUI (and have it work of course!). Does anybody know if there's any plugin for or way of achieving that? When I last looked into it, people were checking in the config files (whatever format they were, perhaps proprie…

Are you aware of the projects feature and how it lets you maintain all your flows in a git repo, complete with "visual" diffing?

Re: Node-Red

#17
I had worked +/- 5 months ago a lot with nodered. One thing I miss is some kind of benchmark performance for huge projects. Is something new in docs regarding this? This tool is really great.

Re: Node-Red

#18

I use NodeRed a lot for my smart home and local network as glue between different pieces. It works really well for “hit this API, apply this transformation, and then return it when I send you a GET at /something” or “listen for MQTT, get this key out of the message, and rebroadcast it”.

Do you use it on it's own, or with other automation software like home assistant or openhab?

Re: Node-Red

#19
I use Node-Red for automating many work related tasks with the team I manage. One thing I wish it supported was multiple accounts that have separate flows. Even better would be support to separate where flows run from the UI, on a per users basis. I could host a worker node with our infra at work, allowing me to work with some of the more sensitive data and share it more openly with my peers.

All in all, it’s been a great tool to use.

Re: Node-Red

#20
post #10

Earlier quoted context omitted.

But can you actually hand-write it? When I last looked IDs were UUIDs or similar, so you'd have to create a node in the GUI for a start, and even then the structure of it just clearly wasn't designed for manual editing or diffing. 'Storage' sort of sums it up really, doesn't it?

Given Node-RED is intended as a low-code programming tool, hand-writing the flow JSON has never really been a requirement - certainly not one I can recall being brought up in the community. It's certainly possible to generate flow JSON via other means as the format is not hugely complicated once you know the format. It's an array of objects, each representing a 'thing' in the flow. Each object has a unqiue id (which…

> certainly not one I can recall being brought up in the community

Maybe I'm not/HN isn't 'the community', but when I mentioned it 6 months ago [0] you said it was 'an area [you'd] like to improve'. ;)

The relative popularity of my comment above suggests others would be interested too. I understand it's not the focus/target audience necessarily though, I was clearer about that in [0], just a shame (for me) that the low/no-code isn't built on top of code(ish)-allowed.

It could have been an integral part (and really useful!) of ETL pipelines at work, but not without a git-sane, text-editor-editable file format. (JSON ok - not the best perhaps but ok - I mean more about requirements of IDs and general structure of the document.)

[0] - https://news.ycombinator.com/item?id=27896478

Post reply on HN