mqttagent

MQTT Lua Agent
git clone https://git.instinctive.eu/mqttagent.git
Log | Files | Refs | README | LICENSE

README.md (952B)


      1 # mqttagent
      2 
      3 [![Casual Maintenance Intended](https://casuallymaintained.tech/badge.svg)](https://casuallymaintained.tech/)
      4 
      5 This is a daemon MQTT client which runs Lua callbacks on received messages.
      6 
      7 It started with a backup graph that did not match the connectivity graph,
      8 so some data had to be pushed while other had to be pulled.
      9 So I needed machine-to-machine signalling to pull data from a source after it
     10 has been pushed completely.
     11 
     12 I thought of MQTT for the signalling, and a kind of
     13 cron-but-for-MQTT-messages-instead-of-time to run actions.
     14 But then I imagined writing a parser for a crontab-like configuration file,
     15 and then writing such a configuration file, so I reconsidered my life choices.
     16 
     17 It turns out that a Lua script is much easier for development (thanks to
     18 existing interpreters), for setup (thanks to a friendlier language), and
     19 for maintenance (thanks to basic logic not being scattered across a lot
     20 of small shell scripts).