This project is a simple frontend web page that displays today's and tomorrow's events from a public Google Calendar.
- Fetches events from a Google Calendar using the Google Calendar API.
- Displays data in a styled HTML table.
- Auto updates for today's and tomorrow's dates.
- Localized in Thai (
th-TH).
git clone https://github.com/FTGFLabs/Informatics-Schedule-Viewer.git
cd calendar-fetch-apiIn the project root or next to your index.html, create a file named config.js with the following content:
const apiKey = 'yourGoogleCalendarApiKey';π Do not share your real API key in public repositories.
You can simply double-click index.html to open it in your browser.
Or, to serve it with a local server (recommended to avoid CORS issues with some APIs):
npx serve .
# or use any local server like http-server, live-server, etc.- The calendar used is:
pr@informatics.buu.ac.th - Make sure the calendar is publicly accessible, or the API will return empty results.
- The script uses Thai locale and Asia/Bangkok timezone formatting.
calendar-fetch-api/
βββ index.html # Main frontend HTML page
βββ config.js # Contains your API key (not included by default)
βββ README.md # Project documentation
MIT License
FTGF Labs
GitHub