maddox / magic-cards

🎩 Queue music, play movies, or trigger events with RFID cards.
MIT License
560 stars 49 forks source link

Idea: Separate server and client functionality #36

Open mountainsandcode opened 5 years ago

mountainsandcode commented 5 years ago

Would like to start a discussion on the following use case and to potentially see if I can help implement a solution - splitting the server and reader part into 2 (most likely through a config option that activates/deactivates one part)

I previously hacked something together based on magic-cards but may be interesting to formalize it.

Additional benefit would be that it would be possible to have several readers.

Thoughts and comments welcome.

maddox commented 5 years ago

There’s definitely something to this. I have 2 setups myself, and copying the Jason file of the card index over sucks. I never implemented a sync feature.

mountainsandcode commented 5 years ago

Great!

I think it should not be too complicated - suggestion:

That way you wouldn't have to copy around the json file anymore :)

Wdyt?

derMick commented 2 years ago

Hi @mountainsandcode great idea! Currently I am thinking about the same way.

My idea / setting:

What kind of changes has to be made to the magic-cards code / repo? 1.) I think the biggest change would be to switch to external nfc tag reader data and getting this info via wifi (mqtt?) 2.) define and implement the communication handling between nfc tag reader (and config) to first identify the tag reader with the corresponding room / Sonos speaker(s) and second playing the looked up media Optional: 3.) activate or deactivate this hole feature via config

Wdyt?