I'm trying to create a script that automatically logs my coding sessions in VS Code to my Google Calendar. I want it to track when I open and close VS Code and then create calendar events for those sessions. This is my first time working with APIs, and I did some tests that created events successfully, but the automation part isn't working. I'm hoping to find out why it doesn't log the events as expected. Here's a look at my code snippet: I have set up the Google Calendar API, and I've got logic to check if VS Code is running, but it seems like I'm having issues when it comes to creating the event automatically. Any ideas on what might be going wrong?
1 Answer
That sounds interesting! Adding a feature to update your GitHub profile would be cool. You could create a small script that updates a README file or something similar each time you log a coding session. That way, your commit frequency would reflect your actual coding time, not just your pushed changes!
That's a neat idea! I'll look into that as well. Still, I'm facing the issue where my events aren't showing up on Google Calendar despite having the logic set up. Just getting a blank calendar where my coding sessions should be.