reading-hackspace / Infrastructure

2 stars 0 forks source link

We need a vending machine! #24

Closed JamesBelchamber closed 11 months ago

Gavatastic commented 8 years ago

Great idea - can we link it to our cards?

JamesBelchamber commented 8 years ago

Don't see why not. I should have a chat with @jeremypoulter and @alex-gibson about their progress so far - I might have some code handy we can use to finish it off.

jeremypoulter commented 8 years ago

Progress (or lack thereof) can be found in the GitHub repo; https://github.com/reading-hackspace/vendor-vending-rodriguez

JamesBelchamber commented 8 years ago

Could you give me a TL;DR? If I provided a backend with an API which stored balance, card hash, etc, could you hit it?

jeremypoulter commented 8 years ago

See http://rlab.org.uk/wiki/Project:Vendor_Vending_Rodr%C3%ADguez and http://rlab.org.uk/wiki/Vending_Machine but essentially the initial target we are aiming for is;

  1. Tap RFID card
  2. Welcome message is displayed, eg "Hello Jeremy, please enter item code"
  3. Enter item code (B4) to vend
  4. Item is vended and payment message displayed "Please deposit £2.50", vend is logged to a Google spreadsheet or some other quick and dirty DB (not on the vending machine)
  5. Put the requested amount in the vending machine pot
  6. Happy user walks away with there new thing

This is essentially a proof of concept thing to get it running when we can see if it is used and where the points of failure are (I suspect the original electronics are going to be an issue and will probably need replacing)

We can move on to gocardless integration after that.

From the POV of the IWG the main link will obviously be associating the card with a real person. Initially I was only going to use the card serial number. Just need some API to call to get the name associated with a card.

jeremypoulter commented 11 months ago

Vending Machine has been dismantled and removed from rLab, no longer required