GithubHelp home page GithubHelp logo

coolcodersj / studentmate Goto Github PK

View Code? Open in Web Editor NEW
4.0 3.0 1.0 6.52 MB

An AI-based approach to remembering assignments.

Home Page: https://studentmate.shuchir.dev

License: Boost Software License 1.0

Python 30.40% JavaScript 2.54% CSS 24.13% HTML 42.93%
ai assignment hw python studentmate

studentmate's Introduction

StudentMate

An AI-based approach to remembering assignments.

StudentMate - Never forget homework again with your AI-powered assistant | Product Hunt

What is StudentMate?

StudentMate is a to-do list platform that uses AI to automatically fetch assignments from my school district's LMS. It then notifies people of the assignments so that students don't need to remember to check teacher pages for assignments.

How does it work?

After setup, Studentmate scrapes our LMS (LMS will now be referred to as Blackboard, the name of the LMS.) using access it gains through a browser extension.

  • StudentMate cycles through each teacher page and looks for an agenda in the format of a Google Slides slidedeck.
  • It opens the slidedeck in a headless chromedriver instance, takes a screenshot, then runs it through OCR.
  • It sends the text grabbed from the slidedeck to YouChat, a free alternative to ChatGPT, with a heavily customized prompt
  • Finally, it reads YouChat's response and adds the assignments received to the database.
  • When assignments are near due, StudentMate sends an email reminder, with an option to text reminders too.

Some Pictures

image image image image

Run Locally

Note StudentMate is currently locked to North Allegheny Students only because it only works with how NA has Blackboard set up.

If you'd like to run your own instance of StudentMate and/or change how it works to use your LMS, follow le instructions below:

1. Clone the repo

git clone https://github.com/CoolCoderSJ/StudentMate.git

2. Setup .env

To begin, copy .env.example to .env

Appwrite

The project uses Appwrite, so you will need to get an appwrite project set up. You can get private beta access to the cloud hosted instance @ https://appwrite.io/cloud, or host it yourself.

  • Change line 21 in main.py and line 28 in utils.py to your appwrite instance url, and change line 22 in main.py and line 29 in utils.py to your appwrite project ID. Finally, set the environment variable APPWRITE_API_KEY to your Appwrite server API key in .env

Google Oauth

YouChat

Email and SMS Notifications

To send email reminders, the project uses gmail SMTP. If you would like to use something else, you can configure the send_email function (View here) to use your SMTP settings and change line 331 of utils.py to use the send_email function instead.

If you would like to use Gmail SMTP, all you have to do is fill out EMAIL and EMAIL_PASSWORD in .env

SMS

To send emails StudentMate uses Gmail SMTP so that it uses my school email to bypass any district email filters. However, to text people, StudentMate uses Sendgrid (email-to-text) so that it can use the official email. If you are fine with Sendgrid, configure SENDGRID_EMAIL and SENDGRID_PASSWORD in the env file. Otherwise, configure the send_email function (View here) to use your SMTP settings instead.

Huggingface

StudentMate uses Sentence Transformers (all-MiniLM-L6-v2) to check for similar assignments so that duplicates aren't created. To connect to this model, you need a huggingface token. Add this token as HUGGINGFACE_TOKEN in the env.

Python

  1. Install Python and its Requirements
  • Make sure you have Python 3 installed.
  • Install all dependencies by running
pip install -r requirements.txt

Run Server

  1. Run the server using python main.py

studentmate's People

Contributors

coolcodersj avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

ebikjr

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.