Code Monkey home page Code Monkey logo

cijfer-ntfyer's Introduction

Cijfer ntfyer

"Buy Me A Coffee"

What is this?

This simple TypeScript project will notify you when a new grade is available. It uses ntfy to send notifications to your phone.

Why?

Previously, I only reveiced notifications after a couple of hours when a new grade was available. Now, you'll know within 10 minutes how bad you did.

How to use?

Make sure you have nvm installed with node version 20.

You can either use your own ntfy server or use the public one. If you want to use the public one, make sure you choose a unique id. If you don't, other people might receive your notifications.

  1. Clone this repository
git clone https://github.com/7ijme/cijfer-ntfyer.git
cd cijfer-ntfyer
  1. Install dependencies
npm install
  1. Find your school's name in schools.json
  2. Copy .env.example to .env and fill in the required fields
  3. Run ts-node get-id.ts to get your personal id. Add this to your .env file.
  4. Create a cronjob to run the script every 10 minutes
*/10 * * * * /path/to/cijfer-ntfyer/run.sh

You should be good to go! You will now receive a notification when a new grade is available.

Note: The first time you run the script, you will receive a notification for every grade that is available. This is because the script doesn't know which grades you have already received a notification for. After the first run, you will only receive notifications for new grades. Comment out the axios request for ntfy in index.ts if you don't want to receive notifications for every grade.

cijfer-ntfyer's People

Contributors

7ijme avatar

Stargazers

 avatar

Watchers

 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.