This is a fork of jmb's awesome widget that grabs the events with a private address instead of going through the tiresome process of Google's OAuth authentication.
Dashing widget to display the next and some subsequent Google Calendar events using the Google Calendar's private urls.
See the screenshot below
dashing install 39d3fde3afbffdd31093
Grab the private address of your calendar by going to your calendar's settings and look for the ICal button.
The job file defines how many events to get from the calendar and when to start the search. My version gets the next 6 events.
- icalendar gem
- Moment.js
Stick gem 'icalendar'
into your Gemfile and run bundle install
.
Download the Moment javascript library and add to your javascript assets. Then lastly, make sure you have this at the top of assets/javascripts/application.coffee
.
#= require moment.js`
Thanks @jmb!
Install doesnt work:
C:\Work\dashing\sweet_dashboard_project>dashing install 39d3fde3afbffdd31093
C:/Ruby22-x64/lib/ruby/2.2.0/net/http.rb:923:in
connect': SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (Open SSL::SSL::SSLError) from C:/Ruby22-x64/lib/ruby/2.2.0/net/http.rb:923:in
block in connect'from C:/Ruby22-x64/lib/ruby/2.2.0/timeout.rb:74:in
timeout' from C:/Ruby22-x64/lib/ruby/2.2.0/net/http.rb:923:in
connect'from C:/Ruby22-x64/lib/ruby/2.2.0/net/http.rb:863:in `do_start'