Daily schedule with Google Calendar, visualized using Flask
This python application is designed to work with the E&S Digistar interface, but can be easily used independently.
Note that the application uses JavaScript code to highlight past and future events (and for something else), so support for JS is desirable.
pip install --upgrade Flask google-api-python-client google-auth-httplib2 google-auth-oauthlib pyTelegramBotAPI vk-apiFor the application to work, you need:
- Get the credentials as json file, see Authorize credentials for a desktop application.
- Specify the path to this json file in the source code:
cal.py,FILE_PATHvariable. - Specify the сalendar ID from the Google Calendar settings:
cal.py,CAL_IDvariable. - If necessary, specify the IP address and port in
flask_cal.py,HOSTandPORTvariables. - Launch the application from the command line or using a shortcut on the Windows desktop.
Additionally, you can use a Telegram or VK bot for various requests.
The bot starts and runs simultaneously with the Flask application.
To use the bot, specify your token in flask_cal.py, TG_TOKEN or VK_TOKEN variable.
You can disable the bot by setting the TG_BOT or VK_BOT variable to False.
More information on how to interact with the Google Calendar API can be found at: