Board Thread:The Quarters - Q & A/@comment-88.66.225.30-20150804192413/@comment-27829573-20160219194822

Sorry about my poor english folks. I can share dirty script for linux users.

They provide one way syncronization between google calendars events and habitica todos, as requirement they needed installed and configured [gcalccli] and [habitica cli]

gcalcli --military --nocolor agenda `date -d"+1 day" +%Y-%m-%d` `date -d"+2 day" +%Y-%m-%d` | awk -r '/^ +[0-9]+?:[0-9]+? / {printf "[CAL] "$1;$1=""; print $0}' | sort -r | xargs -tI% sh -c "habitica todos | fgrep '%' || habitica todos add --difficulty=easy '%'"

Script can be downloaded from [pastebin page]

Scripts goes in your calendar, and load non-all-day events for tommorow.

After that, for every event, script check if event exists in habitica todos list, if not, they add new todo to habbitica list with name "[CAL] %H:%M Event name" with easy difficulty.

For example, you create google calendar event "Learn more about Inferno and Plan9" at 15:00. After running this script, you got new todo in habbitica "[CAL] 15:00 Learn more about Interno and Plan9"

In my case, i'm run this script every evening (22:00).

You can running that script many times, they check, if tommorow event allready exists in habitica, they don't add him (event) again in todos list.

Feel free for asking