Git Product home page Git Product logo

wimp's Introduction

Compatibility

WIMP - Where Is My Prof?

forthebadge made-with-python forthebadge Screenshot

Alwin is a wimpy kid. What? Is he lazy? Not at all! He always asks me, 'Where is my Prof?'. He is in search of his project and sick of waiting for hours in front of his Prof's office. Boom! He got an idea. He started to search the Prof's timetable and decided to meet him after his class. He went to ERP. Wow! What a beautiful place it is! He found the Prof's department and checked department time table, found out his slots, compared his slots with time and finally, he met him. But, alas! He was late. The Prof gave his project to another stud. Alwin asked him, 'Bro, how did you find him earlier?'. He replied, 'Use WIMP kid!'.

Development

Getting Valid JSESSIONID

  1. Login to the ERP
  2. Go to Academic -> Timetable -> Subject List with Timetable Slots
  3. Open the browser console. Switch to the Network tab
  4. Choose any department and wait for the time table to load
  5. After the time table is loaded, check the Network tab for the POST timetable_track.js ... request. Select this request; switch to the Cookies tab and copy the JSESSIONID cookie value to your .env file
  6. You can also add it using the following command for the current terminal session
    export JSESSIONID="[JSESSIONID FROM ERP]"

The JSESSIONID is only used to update the data using main.py and not for running the app.py.

Host machine

git clone https://github.com/metakgp/wimp.git
cd wimp
sudo pip install pipenv
pipenv install && pipenv shell # loads .env file variables, install dependencies
python main.py # To populate data
python app.py # Locate your browser to the local address

Docker container

git clone https://github.com/themousepotato/wimp.git
cd wimp
docker build -t wimp .
docker run -p 5000:5000 wimp

Pretty printing data.json

You can use any JSON utility that is installed on your computer. jq is recommended.

$ jq '' data/data.json > data/data2.json
$ mv data/data2.json data/data.json

Wiki

We've a list of FAQ here. If you've any queries, find the answer from there. If your question is not there, add it by yourself. We would love to answer.

Contributions

PRs are most welcome!

GPLv3 license

Maintainer

Navaneeth Suresh (@themousepotato on metakgp Slack.)

wimp's People

Contributors

themousepotato avatar icyflame avatar thealphadollar avatar rajivharlalka avatar berserker1 avatar dependabot[bot] avatar chatpion avatar athityakumar avatar ayushk4 avatar rishabhdeepsingh avatar ulgens 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.