How does Node-Red interact with Python?

Dear Craig, yes, absolutely, this is how it shall be structured

I have already since long several such scripts running in background as small Python API services (I prefer call them that) for various purposes that for me was better to keep outside of NR. They all have MQTT as API transport, working really well. For sure could be possible to add also http and socket (TCP) support to them but since MQTT is so lightweight and well structured, I did not consider that for now

All scripts are fully controlled by NR. That they are started at startup, running as expected, etc etc and that they will be restarted if they (rarely) would fail. Since NR is controlled by systemd, I felt I got a pretty robust solution. So far it has worked astonishing well

Thanks for your great suggestions!

1 Like