Skip to content
This repository has been archived by the owner on Jan 19, 2023. It is now read-only.

Burning-Panda/Nurse

Repository files navigation

ARCHIVED

This project is not worked on and should be rewritten if you want to build upon this.

Bachelor for the Department of Health Sciences in Gjøvik

To what extent can a camera system help increase the skills of the students by opening up collaborative learning for the Nurse Education at NTNU Gjøvik, and can this system be used as a basis for giving assessment in the subject? And how can it help sensors grade students?

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

What things you need to install the software and how to install them

Windows 10 or Linux based OS (Ubuntu, Fedora, Zorin OS.. etc)
Python 3.6 or above
OBS Studio 25.0.8 or above
obs-websocket - Remote-control OBS Studio from WebSockets

Installing

It is recommended you install the ISO file on a sd card, and not installing everything yourself.

But if you want to run it on another server you need to install Flask, Requests, asyncio, mfrc522, sqlite3.
Check requirements.txt for detailed info about required files and software.

Installation for specific systems
Each of these can be installed by running this command in windows 10

pip install flask requests asyncio

or if you are on a linux based OS.

sudo pip3 install flask requests asyncio

For sqlite you install it with

sudo apt-get install sqlite3

If you want to use RFID scanner, install mfrc522 with pip.

Web-server
This program should be run with uWSGI and Nginx for optimal performance and load balancing.

Running the tests

For first time installation go to IP/install (ex 192.168.0.1/install)

Break down into end to end tests

To check if the user actually exists, we do a simple comparison against our database record, and if he or she doesn't exists, we redirect them to our registration page.

def user_exist(x):
    def check_if_user_exists(user):
        db = Database()
        usr = db.student_exists(user)
        return usr
    res = check_if_user_exists(x)
    return res

And coding style tests

The code is made to be simple and expanded upon as time goes on. This basic setup is what we use to check if as user exists based on input made to our index page. There is no sanitization, as most people wont have access to this website at all.

exists = user_exist(saved)
session['account'] = form_data['studentID']
session.permanent = True

if exists is True:
    session['f_name'] = Database().get_user_f_name(session['account'])

Deployment

Install on a SD card for use in Raspberry Pi 3 or above.
Write the ISO file to SD card, and it should work.

Built With

Authors

  • André Tølen Lønvik - Backend developer - Burning-Panda
  • Kay André Smådal - Frontend designer
  • Christian Ringlund - Technician and Frontend developer

See also the list of contributors who participated in this project.

License

This project is a bachelor project, and has limited access. Please don't distibute these files. License after 02.06.2020 CC BY-NC-SA 4.0

Acknowledgments

  • "Department of Health Sciences in Gjøvik" for bringing us this assignment.
  • NTNU i Gjøvik
  • Veileder Kjell Are

About

Bachelor for BIXD

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published