Skip to content

Poll the BITS Pilani ERP server for semester results and send an email when they are out.

License

Notifications You must be signed in to change notification settings

suryatech/bits-pilani-erp-result

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BITS Pilani ERP Result

Poll the BITS Pilani ERP server for semester results and send an email when they are out.

Usage

  • npm install once you are in the root directory of the project

  • Edit the config.json file

    • access_token: Add a valid FB access token to post on a facebook group (optional)
    • gmail_username/gmail_password: Add a gmail username and password to send an email
    • destination_email: Add a destination email to receive the email when the results are out
    • smtpServer: Mail Server to use
    • group_id: FB group to publish a message
    • username: ERP username
    • password: ERP Password
    • interval: Check for the results after every x milliseconds. (The session cookies expire after about 5 minutes. It is not a very good idea to login every 5 minutes to check the result. Set it to a value < 5 minutes to avoid logging in every single time)
  • Edit the index.js file

    • userid: Numeric ID corresponding to the username field in config.json. For ex: 31120110XXX, for username: 2011C6PSXXXG.
    • term: Semester ID. This can be found in the grades section in your account.
    • Edit the facebook post message and the email text as required.
  • Set the log4js output file

  • node index.js

####Modules Used

  • Cheerio: Required for parsing the HTML response.
  • Request: Most popular HTTP(S) module for Node.js
  • Log4js: Log messages with their timestamps
  • emailjs: Required for sending an email when the results are out
  • Facebook Graph API: Required for publishing a post when the results are declared

About

Poll the BITS Pilani ERP server for semester results and send an email when they are out.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published