track presence of people and club status (open, closed) using MQTT.
All configuration is done in the environment
PRESENCED_MQTT_URL=mqtt://localhost:1883
export PRESENCED_MQTT_URL=mqtt://localhost:1883
cargo build
cargo run
Message structure:
{
"name": "franka nord",
"time": "1970-01-01T00:00:00.000Z",
"note": "around 7ish, am hungry"
}
Required: "name" Optional: "time", "note"
Message structure:
{
"name": "franka nord",
"time": "1970-01-01T00:00:00.000Z"
}
Required: "name" Optional: "time"
One of: open | closed | thursday
Message structure:
{
"status": "open"|"closed"|"thursday",
"people": [
["franka nord", "+23"],
["maunz", "ca. 19:30, hab hunger"],
["hans acker", null]
]
}