Git Product home page Git Product logo

spezispezl's Introduction

SpeziSpezl

A vending machine system with RFID authentification, payment transaction and resupply tracking and PayPal deposit support. The system is uses at the Institute of Automotive Technology to supply the students and employees with cool drinks and fresh ground coffee. The integrated accounting system can be charged with PayPal and the user can see all transactions in his user account. All services and statistical data is monitored and analyzed with a grafana dashboard, sending alerts if someone forgot to clean the coffee machine or to join the party if a little more beer was bought.

Key Facts:

  • fully automatic PayPal charging
  • Transaction tracking in responsive web app
  • Support for price groups (student, employee, guest...)
  • Multiple RFID tag support per user account
  • Option to trust users, letting them overdraw their account
  • wide RFID support (ISO 15693 and ISO 14443 tags)
  • Smartphone registration via WebNFC (Chrome on Android only)
  • Sale statistics and system monitoring with Grafana and Prometheus
  • Login token stored in cookies with multi device support
  • Hashed passwords, e-mail verification, change password, forgot password

Frontend

User frontend

A simple JS + CSS frontend for user account manangement, transaction overview and some user settings.
Depending on user role vending machine fillup and submission of supply expenses is possible

Vending Frontend

The vending machine frontend is designed for an old Sielaff FK90 bottle vending machine, which is retrofitteted with a rasberry Pi 3B, a 1024x600px IPS HDMI display and a Teensy 4.0 for controlling the machines hardware and the RFID card reader. The teensy is running in dual CDC serial mode, providing one serial port to be connected as WebSerial to the chromium browser. The other port is used for switching to bootloader mode by sending a corresponding command.
data exchange is done with json strings.

Backend

The backend is written in NodeJs and split into two parts. The user backend which is avaliable for public and a vending machine backend which is protected by basic auth. Both backend endpoints have a nginx reverse proxy for providing HTTPS and connect to a PostgreSQL databeas for storing accounts, cards, tokens, transactions and sensor (mostly temperature) values.

User Backend

Vending Backend

Vending machine hardware

As a RFID card reader a NXP PN5180 is used in mixed mode (fast switching between ISO 15693 and ISO 14443) connected either to an ESP32 or a teensy (could be any other µC as well). The ESP32 variant is a standalone device connecting to WiFi (eduroam), the other exchange JSON messages with an embedded linux system (raspi) via uart (USB CDC) which is then handling the network connection. All hardware connects to the same vending API.

spezispezl's People

Contributors

thezenox avatar tumftm avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

maxreif

spezispezl's Issues

Mate Zero

Could we have Mate zero in Spezi Spezl pls? There is a huge demand.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.