Skip to content

View the classeviva agenda in an actual calendar app. πŸ“†

Notifications You must be signed in to change notification settings

SysWhiteDev/Classeviva2Cal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Classeviva2Cal

View the Classeviva agenda in an actual calendar app. πŸ“†

⭐ Star this on GitHub β€” it motivates me a lot!

Index

Prerequisites

Features

  • .ics file support.
  • Support for GitHub Actions.

Usage

  1. Duplicate the .env.example file and rename it to .env so that your files look like the following:
Classeviva2Cal/
β”œβ”€β”€ .env.example  
β”œβ”€β”€ .env     
β”œβ”€β”€ .gitignore
β”œβ”€β”€ README.md        
β”œβ”€β”€ index.ts  
β”œβ”€β”€ tsconfig.json       
β”œβ”€β”€ package.json
└── bun.lock        
  1. Edit the .env file and fill in the required fields:
# ClasseViva Credentials
CLASSEVIVA_USERNAME="S12345678X" <-- EDIT THIS
CLASSEVIVA_PASSWORD="YourPassword" <-- EDIT THIS

# Agenda Fetching Settings
AGENDA_INTERVAL=6  # Number of months to fetch events before and after the current date
  1. Install the dependencies:
bun install
  1. Run the script:
bun run index.ts

NOTE: To keep the calendar up-to-date, you will need to run the script periodically. To do this, you can set up a cron job to run the script periodically. For example, to run it every day at 8 AM.

  1. Subscribe to the generated .ics file in your preferred calendar app.

NOTE: You need to make the file available on a web server. To do this, I used Nginx, but you can use any web server you prefer.

If you set up everything correctly, your URL should be something like this:

https://yourbeautifulserver.com/agenda.ics
  1. Profit! πŸŽ‰


Liked it? Star it! ⭐

About

View the classeviva agenda in an actual calendar app. πŸ“†

Resources

Stars

Watchers

Forks