Skip to content

Latest commit

 

History

History
46 lines (31 loc) · 1.35 KB

README.md

File metadata and controls

46 lines (31 loc) · 1.35 KB

Server for an assisting gift wrapping system

This system receives wrapping-orders from the rails-dashboard and then manages the user interaction to assist cognitively impaired people to wrap gifts.

This is done using various Freigeist-IOT-devices from the IOT hardware toolkit like the scale unit, distance units, light sensors and rotary-encoders as input devices and a projector and an led-unit to guide the user.

This is how the system looks like

Installation

Make sure you have PostgreSQL installed as our tool uses a pg wrapper

On Linux systems run:

	sudo apt install postgresql libpq-dev

Afterwards install the packages using pip:

	pip3 install -r requirements.txt

Execution

	python3 Orchestrator.py	

This will incidentally also start the device and order server on localhost:5000 to which different IOT-devices can send their state.

To see the current projections also open Projections/index.html in a Browser.

The format in which orders should be sent is as follows:

	data: {
		id: <id>,
		order_products: [<item1_product_id>, <item2_product_id>, <item3_product_id>, <item4_product_id>]
	}