This repository contains a Python script designed to synchronize Google Calendar events for the current month with a local SQLite database. The script utilizes the Google Calendar API to fetch events and stores them in a local SQLite database for efficient querying. The primary functionality of the code involves checking for events whose date and time match the current system time. When such an event is identified, the script triggers an alert, displaying the event details, and utilizes text-to-speech synthesis to audibly announce the event.
-
Google Calendar Integration:
- Utilizes the Google Calendar API to retrieve events for the current month.
-
SQLite Database:
- Stores fetched events locally in an SQLite database for quick and efficient querying.
-
Event Matching:
- Regularly checks for events whose date and time match the current system time.
-
Alert Display:
- Displays an alert with detailed information when a matching event is found.
-
Text-to-Speech Synthesis:
- Utilizes a text-to-speech library to audibly announce the details of the matching event.
-
Google Calendar API Setup:
- Configure and obtain API credentials to access the Google Calendar API.
-
SQLite Database Setup:
- Set up the SQLite database to store and manage events locally.
-
Dependencies Installation:
- Install necessary Python dependencies, including the Google API client library and text-to-speech synthesis library.
-
Run the Script:
- Execute the Python script to initiate the synchronization and event checking process.
Note: Ensure proper handling of API credentials, and follow any specific setup instructions provided in the repository. Customize the script according to your preferences, such as adjusting the alert mechanism or incorporating additional features.
Disclaimer: Keep in mind that interacting with external services like Google Calendar may involve privacy and security considerations. Always handle sensitive information and credentials with care, and review and adhere to relevant API usage policies.
- pip install -r requirements.txt
-
If you haven't created a virtual environment yet, you might want to do that first. Here's a recap of the steps:
python -m venv venv
python3 -m venv venv
-
Activate the virtual environment:
venv\Scripts\activate
source venv/bin/activate