8000 GitHub - tijn/today: What's on the agenda for ... ? Today reads google calendar for today's events and posts it to your company's HipChat.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
/ today Public

What's on the agenda for ... ? Today reads google calendar for today's events and posts it to your company's HipChat.

Notifications You must be signed in to change notification settings

tijn/today

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Today

What?

Shout out on Hipchat what's on a google calendar for today Today in HipChat Screenshot

Huh? Why?

At our office, every day is different. You never know who you can expect to see there. Some collegues will visit clients, others are doing part time academic work, someone could have a day off or maybe working from home... you get the gist. This little project grew out of the need to be informed about how many people one can expect to see at the office.

Obviously we jot this all this information down in a calendar but I'm too lazy for looking that thing up every day. I simply want an app to shout it at me on HipChat while I have breakfast.

How can I have this too?

You need a YAML file with your config, something like this:

in_and_out:
  calendar_url: {{your calendar as xml}}
  hipchat_token: {{a token for HipChat}}
  hipchat_room: {{the room in which you want to read your msg}}
another_calendar:
  hipchat_room: {{your calendar as xml}}
  hipchat_token: {{a token for HipChat}}
  hipchat_room: {{the room in which you want to read your msg}}

You may specify as many configs as you want.

Google might give you a URL which ends in /basic. This version of your calendar contains no start or end times. Change /basic into /full for a version that does. (Google why didn't you tell me? It took me ages to figure this out!)

Then you feed this config to the script to see if it works:

bin/today_on_hipchat < my_superawesome_configuration.yml

And you set up the obvious cron job for it.

Example Cron-job

A typical use would be to call Today in a daily cron-job. You can use the script below as a starting point. (mainly useful to see how to use rbenv with this)

#!/bin/sh

export PATH="$HOME/.rbenv/shims:$HOME/.rbenv/bin:$PATH"
eval "$(rbenv init -)"
TZ=Europe/Amsterdam bin/today_on_hipchat < config.yml

Use the TZ environment variable to set the time zone for displaying times.

About

What's on the agenda for ... ? Today reads google calendar for today's events and posts it to your company's HipChat.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages

0