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

Build system for 'native' py plugins #2

Open
rejhgadellaa opened this issue Dec 20, 2015 · 2 comments
Open

Build system for 'native' py plugins #2

rejhgadellaa opened this issue Dec 20, 2015 · 2 comments

Comments

@rejhgadellaa
Copy link
Owner

An idea:
Possible to read folder 'nfcpyr/plugins' and import all files as py modules??

Each module should have 4 methods that return a booleab(?) on success/failure:

  • init(self, readerdict=None, userdict=None)
  • on_scan(self, reader_id, username)
  • on_checkin(...)
  • on_checkout(...)

Config files should go in.. Json/ or pluginjson/?

These plugins could handle stuff like osc messages, zocp, philips hue, mpd, etc

@rejhgadellaa
Copy link
Owner Author

@rejhgadellaa
Copy link
Owner Author

Whoop. Done.

Well, it needs more docs and maybe a good review of the code and especially the examplePlugin. But it works!

Commit:
a607db0

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

1 participant