Code Monkey home page Code Monkey logo

workshift's Introduction

Installation

  • Download Latest release from https://github.com/Radicalius/workshift/releases

  • Extract zip file

  • Download Python 2.7.0 <= version < 3.0.0 from https://www.python.org/downloads/. (For Max OSX and *nix OS it will already be installed)

  • If installing on OSX or *nix, open a terminal and switch to the directory of the extracted files using:

    cd [full/path/to/files].

    Then run autoconfig.sh as root:

    # fedora
    su
    bash autoconfig.sh
    
    # ubuntu
    sudo bash autoconfig.sh
    

    The script will guide you in configuring Sorting Hat.

    Alternatively, If you are using Windows or the script fails, you will need to fill out the config file manually:

    Sorting Hat Configuration File
    
    PYTHON: [full/path/to/python/binary]                 
    DATA: [path/to/data/folder] (default: data)
    CERTIFICATE: [path/to/ssl/certificate] (see below)
    PORT: 443
    

    If setting up a server, you can host it on https by providing an openssl key (.pem file). This will encrypt the data transferred between server and client, protecting it from wireless network snooping. On linux, a keypair can be generated by running:

    openssl req -new -x509 -days 365 -nodes -out cert.pem -keyout cert.pem
    

Starting the Program

  • Run server.py. On OSX/*nix, open a terminal and change to the Sorting Hat installation directory. Then execute

    nohup python server.py > /dev/null &

    If hosting on a port below 8000, you will have to run this as root.

    On Windows, open the install directory in file explorer and double click on server.py

  • Using your favorite webrowser, navigate to one of the following addresses:

    1. http://localhost
    2. http://localhost: [PORT]
    3. https://localhost
    4. https://localhost: [PORT]

workshift's People

Watchers

 avatar  avatar

workshift's Issues

Allow to Sync with any House

  • Add a pull down to allow the user to select their house
  • Loop this information back to the server
  • Change load_prefs.py to load preferences from the house the user specifies

Categories

  • Add a field for the category of a shift
  • Change the format for shifts.csv to store this data
  • algo2.py will use this field to calculate preferences instead of the name of the shift

Scheduling Errors Bug

When assigning multi-hour shifts, the scheduler only checks if the assignee is available during the first hour of the shift.

Readme

Need some basic installation and use instructions - it's getting complicated.

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.