somakeit / door-controller2

A new door controller for a new space, where all the previous hardware is broken and we can't replace it.
1 stars 0 forks source link

Push details of auths into spacehub. #17

Closed brackendawson closed 1 year ago

brackendawson commented 8 years ago

Thinking about that there is more than just So Make It using this code now. Add a feature to push auth's into some well protected mqtt topic.

The publish shall be to the topic: confidential/somakeit/space/tags/<tag_id> The message format shall be:

{
    "member_id": "<member_id>",
    "member_name" "<member_name>",
    "roles": [<roles>]
}

Roles are numeric fields, currently lathe user is 11 and Lathe superuser is 9. The time the user authenticated will be the time of the message in metadata. The ID of the tag will be the last field of the topic of the message. You can subscribe to a wildcard tag to get all tags' messages.

brackendawson commented 1 year ago

Not going to fix this as the code is no longer used.