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

Pause/Stop playback if card is removed #684

Closed
joshwapohlmann opened this issue Dec 28, 2019 · 9 comments
Closed

Pause/Stop playback if card is removed #684

joshwapohlmann opened this issue Dec 28, 2019 · 9 comments

Comments

@joshwapohlmann
Copy link

joshwapohlmann commented Dec 28, 2019

I found that it can be more intuitive to a child, to place the card and let it rest on the box as long as it wishes to listen to the story/song. The expectation is, that the playback stops when the card is removed.

Therefore I would like to have the option to enable this behavior (maybe selectable in the web apps settings page).

@joshwapohlmann
Copy link
Author

joshwapohlmann commented Dec 28, 2019

related #572, similar idea, but didn't render any result (stalled)

@joshwapohlmann
Copy link
Author

I'd love working on this, solving #683 first would help :)

@Erechtheus
Copy link

I would also like to participate on this issue. Similar to @joshwapohlmann I am not sure how to contribute. As far as I understood the problem is that Reader.py is only called when a RFID-chip is present. So implementing this issue probably requires some kind of watchdog, which regularly (every second or so) checks if a RFID-card is no longer present and than pauses?

@joshwapohlmann
Copy link
Author

@Erechtheus I'm working on #683 right now and link to the result so we both might get to a mutual understanding what and how to do. :)

@ozone89
Copy link

ozone89 commented Feb 11, 2020

just leaving my two cents, the Phidgets 1024 RFID reader supports reporting of card presence both in in their APIs (it's USB) and via hardware, via a block terminal:

getTagPresent()

This property is true if a compatibile RFID tag is being read by the reader.

  • TagPresent will remain true until the tag is out of range and can no longer be read.
void onTagLost(self, tag, protocol)

Occurs when an RFID tag that was being read is removed from the read range.

ping @MiczFlor

@UndIch
Copy link

UndIch commented Mar 2, 2020

Thats a great function - but comes with a huge price tag... 60 $ for a RFID reader is quite a lot to ask for...

@ozone89
Copy link

ozone89 commented Mar 4, 2020

Thats a great function - but comes with a huge price tag... 60 $ for a RFID reader is quite a lot to ask for...

true, but maybe it's just a software feature in libphidget that could be implemented?

@dermexx
Copy link

dermexx commented Mar 12, 2020

a cheap solution for that problem is to use a reed switch that you place close to the rfid reader...
only downside is, that you have to add a magnet to every tag you want to use.

@s-martin
Copy link
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants