Why not use a local Raspberry Pi with Node-RED on it? Low cost, low(ish) power. Run it with Rasbian with no desktop, install node.js and npm install node-red. Or even don't bother with Node-RED locally if you are happy with Python. But perhaps send via MQTT?