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!
It is working as it should except that I have special letters in my language but it is just these 3 chars: å ä ö. These 3 are very common Swedish letters. So whenever there is an event containing one of those letters the widget breaks and displays nothing with the following error from logs:
scheduler caught exception:
If I remove the event with one of those letters, error goes away. I've been trying to fix this for the past 2 hours with zero success. Help anyone?
Best case: The widget displays the text with the special chars (å ä ö) Worst case: The ö is converted to o and å ä to a