Skip to content

[Beta] A short, simple Sinatra app to display Google Calendar events.

Notifications You must be signed in to change notification settings

wasabhi/sinatra-gcal

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sinatra GCal

Note: Hack and play, but beware: this is beta code.

Show off your Google Calendar in a nifty, Sinatra-powered events page.

Sinatra GCal Example

See a demo running at http://christchurch.events.geek.nz

Setting up

Install requirements with bundle install.

Copy config.example.yml to config.yml, adjust as you need.

Run with ruby server.rb (or shotgun server.rb).

Configuration

You can set the following in config.yml.

  • gcal - the identifier for your public Google Calendar (can be found under calendar sharing options, often xxxxx@group.calendar.google.com)
  • lookahead - how many days in the future you'd like to display (eg. 30)
  • timezone - a TZInfo-compatible timezone (eg. UTC or Pacific/Auckland)

Running Live

If you're using Passenger, a config.ru like this will do nicely:

require 'rubygems'
require 'sinatra'

set :environment, :production
disable :run

require 'haml'
require 'server'

run Sinatra::Application

Laundry List

Still marked TODO:

  • Caching support (currently fetches the calendar every time a request is made)
  • Tidy up the request code

About

[Beta] A short, simple Sinatra app to display Google Calendar events.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published