Skip to content
This repository has been archived by the owner on Oct 27, 2024. It is now read-only.

Current consumption interface #17

Open
ulbricht-inr opened this issue Aug 17, 2017 · 3 comments
Open

Current consumption interface #17

ulbricht-inr opened this issue Aug 17, 2017 · 3 comments

Comments

@ulbricht-inr
Copy link

provide a interface to request the current consumption of the open event.. eg. to provide this Information at the infoscreen "You noobs yous just consumed 11 beer today", or "great our stock is 255 beer lower because of you :P"

@fmalcher
Copy link
Collaborator

In general, this is possible (of course). however, for big events where we do the "count storage afterwards" method, those numbers are always 0.
Even with the incremental method, it only represents what you got from the storage, not what you sold to the guests...
Apart from that – I like the idea!

@ulbricht-inr
Copy link
Author

yey, it will not bee so accurate... but nice mooving numbers for the guests.... maybe motivating, to drink so much beer that we have to get a nother box from the stock :D

@rweisse
Copy link
Member

rweisse commented Aug 29, 2017

I would suggest to provide an consumption interface only for the last "big" event like:

/event/intern/last/consumption/{productId} or /event/intern/last/consumption/favorites (favorites returns an array with interesting products like Beer, Cola, Rum, etc)

It's not possible to show the current consumption. If a guest likes to know the consumption of the current event he has to come back next time and have look at the numbers of the last event.

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

No branches or pull requests

3 participants