Coder Social home page Coder Social logo

pivmugc's Introduction

Raspberry Pi VMUG Controller (pivmugc)

Description

pivmugc provides web-based checkin functionality that was designed for a local chapter of the VMware User Group (VMUG). This particular fork has been modified for the use of Philadelphia VMUG. pivmugc is written in the Fat-Free Framework and was designed to be used on a Raspberry Pi. Although pivmugc can be used with any type of web server.

pivmugc Front End Demo

Installation Method #1 (Script + Recommended)

Start with a clean installation of Raspbian and issue the following commands:

wget https://raw.githubusercontent.com/kenbshinn/pivmugc/master/pivmugc_installer.sh

chmod +x pivmugc_installer.sh

sudo ./pivmugc_installer.sh

This method will run apt-get update and install cups, nginx, php, compile Dymo drivers, configure most necessary services and create RAM_DISK a portion of memory used for writing tmp files to for better performance on the Raspberry Pi.

pivmugc Installer Demo

Installation Method #2 (Manual)

Installation is simple. Download the latest master branch, extract the files and move the files into the web directory. Here is an example for a default NGINX web server. The paths will vary for lighttpd or Apache installations.

cd /tmp

wget https://github.com/kenbshinn/pivmugc/archive/master.zip

unzip master.zip

cd pivmugc-master/

sudo cp -rf * /usr/local/nginx/html/

sudo chown www-data:www-data /usr/local/nginx/html/ -R

For a manual installation of the RAM_DISK:

sudo mkdir /var/tmp

sudo echo 'tmpfs /var/tmp tmpfs nodev,nosuid,size=96M 0 0' >> /etc/fstab

sudo mount -a

Post Installation Printer Configuration

Upon the Dymo driver installation, the printer must be added to the CUPS daemon and set as the default printer for the system for use by the pivmugc application.

Browse to the CUPS web interface for configuration:

https://raspberrypi:631/admin

Click on "Add Printer"

Click on the printer under "Local Printers"

Press "Continue"

Press "Add Printer"

Change the "Media Size" to "99014 Name Badge Label"

Change the "Output Resolution" to the highest possible.

Change "Print Density" to "Dark"

Change "Print Quality" to "Barcodes and Graphics"

Press "Set Default Options"

Click on the Printer name

Under the "Administration" drop down, click on "Set As Server Default"

pivmugc Post Installation Printer Configuration

Usage

The following pages will allow to perform the following functions by URL.

  • / - Default landing page.

  • /checkin - Allows checkin of preregistered guests.

  • /register - Allows for walk-in guests to register.

  • /reprint - Reprint name tags for those who are already checked in.

  • /admin - Administration functions for pivmugc. Import/export data.

      Default Administration Credentials: admin/pivmugc
    

pivmugc Basic Administration Demo

config.ini

A file that stores global variables.

DB_PATH

Do not change unless needed and you know what you're doing.

LABEL_LOGO

Define the logo that is printed on the name tag label. The file must be located in the ui/images folder in the directory structure. The image will automatically be resized but it is recommended to keep the logo less than 200px by 200px.

RAM_DISK

RAM_DISK is likely one of the most import components to increase the speed of the Raspberry Pi. On unix-based systems, /tmp is a location on the filesystem that resides on hard drive. Due to the Raspberry Pi nature,/tmp is on an SDcard by default. Because of this, the SDcard introduces increased response times. To help performance during use temporary files creation, the system will write to temporary filesytem that is carved out of RAM for better response times. This is automatically created in the installation script or see the manual installation for RAM_DISK creation above.

Included 3rd-party package versions:

  • FPDF - v1.81
  • PHPExcel - v1.8
  • jQuery - v3.1.0
  • jQuery Notification Plugin - v2.3.8
  • jQuery Validation Plugin - v1.15.0

pivmugc's People

Contributors

kenbshinn avatar requenym avatar tkrn avatar

Watchers

 avatar

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.