Customize Consent Preferences

We use cookies to help you navigate efficiently and perform certain functions. You will find detailed information about all cookies under each consent category below.

The cookies that are categorized as "Necessary" are stored on your browser as they are essential for enabling the basic functionalities of the site. ... 

Always Active

Necessary cookies are required to enable the basic features of this site, such as providing secure log-in or adjusting your consent preferences. These cookies do not store any personally identifiable data.

No cookies to display.

Functional cookies help perform certain functionalities like sharing the content of the website on social media platforms, collecting feedback, and other third-party features.

No cookies to display.

Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics such as the number of visitors, bounce rate, traffic source, etc.

No cookies to display.

Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.

No cookies to display.

Advertisement cookies are used to provide visitors with customized advertisements based on the pages you visited previously and to analyze the effectiveness of the ad campaigns.

No cookies to display.

DotA 2 to Google Calendar

I’ve been playing a lot of DotA 2 lately! I’ve been learning how to play offlane, and am currently experimenting with Mars.

Been spamming Mars lately, but Witch Doctor is really my primary hero! I play as a support, position 4!

A few months back, I wrote up a simple typescript project that hooks up my games fetched from OpenDota API and transfers them to my Google Calendar as calendar entries.

What it looks like

When I run this program, it automatically loads my recent matches in DotA 2 and adds matches as calendar events, as long as they aren’t in my calendar yet.

Imgur
That’s not a losing streak- that’s a bug I’ve filed that I still have to fix.

Tech stack

I used Typescript to write a function parseDotaGames which is written up as an express endpoint. It retrieves my recent dota matches using Open DotA API, cross-references it with my google calendar events, and adds any games that aren’t in my calendar yet. I used ReactiveX rxjs variant for handling asynchronous processing (primarily orchestrating the HTTP requests).

I used GitHub as my source code repository, publicly listing my project with an MIT license. I used Travis to deploy my endpoint as a Google Cloud Function, so that I can easily trigger this endpoint right after a good evening’s session of DotA 2!

Thoroughly pleased with this open source project, as it aligns with some of the things I enjoy doing: playing games and building apps.

If you want to save your DotA 2 games into your google calendar as events, you can check it out on my GitHub repository.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.