/mqfc

Primary LanguageTypeScript

mqfc   Netlify Status

Message Queuing Farm Controller - https://youtu.be/d-3qjUuf5Hw
Quick & dirty way of controlling my farms' four lights using MQTT

Angular frontend deployed to Netlify which redirects requests to a localtunnel address & then to my Raspberry Pi 3b+
RPi hosting an Express server & a Dockerized RabbitMQ broker

API

  • GET /state: Get most recent recorded state
{
    "esp_is_connected": true,
    "most_recent_state": {
        "last_recieved": 1610890311998,
        "data": {
            "0": false,
            "1": true,
            "2": false,
            "3": true
        }
    }
}
  • POST /state: Set the lights state
[true, true, false, true]