Node-Red 3.0 Released
nodered.org
nodered.org
I'd be interested to hear how people use this outside of IoT context?
I use Node-Red for a few scheduled activities: archiving Reddit posts or tweets I upvote and pulling information from real estate websites that match criteria I’m interested in.
I like Node-Red vs. cron-managed shell/Python scripts for several reasons:
- the admin/editor UI is accessible on any device with a web browser (no git, ssh, etc. tooling required)
- the node-based visual flow is easy to reason about and debug (so even after years of ignoring my scripts I can quickly come back to them and grok what’s going on)
- the barrier to entry continues to be low (I can pop in and create a new flow in <1 hr)
I prefer it over Zapier or IFTTT since it’s more flexible. I’ve authored arbitrary JavaScript and request logic to retrieve and filter data in ways these pre-packaged tools can’t.I run it on an AWS LightSail server for ~$4 per month. I use Ansible to manage Ubuntu with podman + systemd running the Node-Red docker image and TLS provided by Caddy. Roughly ~4 hours to setup from scratch and something I return to once every ~18 months to update/tweak with minimal issue.
To sum it up, I appreciate the grok-ability + flexibility + accessibility. It just works and it scales in complexity as I need it to!
* It watches an email folder and converts the email to a task.
* Filters my Facebook event calendar and splits accepted and not accepted events into seperate calendars so I can subscribe to them seperatly.
* Converts the Wikipedia current events page to an RSS feed.
* Monitors my server uptime/stats and reports it to Homeassistant.
* Recieves and forwards location data from my phone to a Homeassistant and nextcloud so I don't need multiple endpoints.
* Acts as a webhook enpoint for various git pojects to automate things
Basically I'm using it as a tube of glue. I used to do a bunch of it via bash scripts, but node-red makes it just a touch easier to grok
* We watch all the content on Jellyfin/Netflix/BBC on computer attached to our TV. Node-Red checks if browser is in full screen periodically and sends status to Home Assistant via MQTT. With this I can change the lights when watching TV.
Generally I have migrated some scripts to Node-Red like:
* Mirror FTP, extract archives, look for keywords, clean mp3 tags, add to Jellyfin
* Check emails for daily emails of solar plant, run regex to extract number and feed into Home Assistant.
* Send requests to website with property listings for a certain area, if there is a result, send a notification to my phone.
I find it’s a tool that can be used to get something up and running very rapidly and be used for a longer period beyond proof of concept.
At the time I started, Home Assistant's automation capabilities (scripts, automations) were very clunky to deal with, so anything but the simplest things were done in Node-RED. Home Assistant has gotten a lot better in this respect, so I'm doing less in Node-RED these days.
One really neat thing about Node-RED (with the appropriate addons) is that you can create entities in Home Assistant that are populated by Node-RED flows. I use this to fetch the garbage collection schedule and expose the next pickup times for each collection (garbage, organics, recycling) as entities. I've also got a garbage pickup notification that tells me which things will be picked up the next day so I don't have to think about the collection schedule at all.