Skip to content

An app to pull current and upcoming locations from tripit and post them to slack status

License

Notifications You must be signed in to change notification settings

davidneedham/tripit-slack-status

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tripit Slack Status Updater


I travel a lot. In fact I'm a nomad, so I'm always on a trip somewhere, since I have no home. This makes it hard for coworkers to track where I am. But thankfully, I use Tripit to manage all of my travels and, while their API is crap, they allow me to publish my travels as an iCal file (.ics). This script takes my current location and my next upcoming location and publishes them to my Slack status.

Setup

Add the following variables to your tripit-slack-status.py starting at line 6:

Var Description
TRIPIT_ICAL_URL Required. Your Tripit calendar is available from your publishing settings. Click the "Subscribe" link in the Calendar Feed section, then click the "Subscribe to calendar feed" option.
TRIPIT_HOME Required. Your home location.
SLACK_API_TOKEN Required. Generate a Slack legacy token. Your token will begin with xoxp-. Add as many tokens and names as you want to update simultaneously. Remove any extra rows that you don't need.

You may also want to change your default "at home" status on line 64, as well as the emoji, and the specific format of the statuses in this section.

Next, install the icalendar library: pip install -r requirements.txt

Then run the script: python tripit-slack-status.py

Ideally, you'll want to run the script on a schedule. Once daily is probably enough, since it only checks for Trips, not individual plans.

About

An app to pull current and upcoming locations from tripit and post them to slack status

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%