Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Publish "card swiped" event via MQTT #1496

Merged
merged 7 commits into from
Feb 27, 2022
Merged

Conversation

andreasbrett
Copy link
Contributor

@andreasbrett andreasbrett commented Aug 31, 2021

Added a new topic that the MQTT daemon will publish messages on. This is about immediate event-based messages (in contrast to periodic) with currently the only event being the "card swiped" event. It makes use of inotify to watch for changes to the Latest_RFID file and immediately sending the card ID to the MQTT server.

That way also cards that are not assigned to media or an action within Phoniebox will get relayed to the MQTT server allowing to e.g. control your smart home via the Phoniebox (e.g. having a "dim the lights" card to change lights while not interfering with the current playback).

It's an implementation of the idea presented in #1492 but directly integrated into the MQTT daemon rather than the RFID daemon.

@s-martin s-martin linked an issue Sep 2, 2021 that may be closed by this pull request
@MiczFlor MiczFlor merged commit 7900633 into MiczFlor:develop Feb 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Immediate MQTT publish of cardid via rfid card reader daemon
3 participants