Nothing Special   »   [go: up one dir, main page]

Skip to content
This repository has been archived by the owner on Aug 19, 2020. It is now read-only.
/ rpi-printerQ Public archive

Complete rewrite of the RPI VCC Helpdesk's Printer Queue Display

License

Notifications You must be signed in to change notification settings

albshin/rpi-printerQ

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rpi-printerQ

A complete rewrite of TrevorNT's RPI PrinterQueue-NG. The old version of the printer queue had a tendency to crash once in a while and unnecessarily used a database to store printer data.

Changes

  • Flask instead of Django
  • Usage of ReactJS on the frontend to avoid page refreshing to re-render data
  • Data is stored in a single JSON file rather than a database

Getting Started

Requirements

  • Python 3.x
  • Flask

Installation

Config File

Example:

SSH_SERVER = 'this-server.edu'
SSH_USERNAME = 'anon'
SSH_PASSWORD = 'hunter2'

Development

Dependencies

  • Python 3.x - For Flask
  • ~ Paramiko - SSH capabilities
  • ~ APScheduler - Calling the updater every set interval
  • ~ Flask - Serving webpages, running SSH commands to the printers, storing data
  • npm - Frontend package manager
  • reactjs - Displaying and updating data from Flask
  • react-bootstrap - Styling
  • babelify - For use with ReactJS + Browserify
  • browserify - Packaging node modules and ReactJS code into a single JS file

File Structure

.
├── queue_app               # Flask application files
│   ├── static              # Location of all CSS/JS/JSON/Fonts files
│   ├── templates           # Location of all HTML files
│   ├── __init__.py         # Main Flask applicaton file. Routes and auto-updater are defined here  
│   └── updater.py          # Code for updater
├── app.py                  # Python file to run Flask application
├── config.py               # Config file that stores server/user account information
├── main.js                 # Source code for ReactJS
├── requirements.txt
├── package.json
└── README.md

About

Complete rewrite of the RPI VCC Helpdesk's Printer Queue Display

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages