Contribute to JEvents

Prototype support for Google Calendar

We are looking for developers, forum moderators and translators for this project.

If you would like to help out then please add a message in this forum.

Postby waveywhite » Tue Apr 07, 2009 7:32 pm

Hi,

I got excited about this idea and tried it out. Please let me know what you think!.

Attached are a couple of files I have hacked to test the idea of putting Google Calendar support into JEvents.

The main benefit of doing this is to be able to share calendars between JEvents sites and anyone using Google Calendar. You would be able to still have local calendars but also include Google Calendars in your JEvents site.

Just reading Google Calendar data is enough to start sharing, but adding support for writing events using the Google calendar API would allow full editing of Google Calendars from JEvents.

After this, adding support for the full Google Calendar API would turn JEvents sites into data repositories and allow you to do things such as sync your PDA with your JEvents site without Google Calendar being involved.

This prototype is hard wired to the calendar it accesses but it downloads the data and parses it into the internal data model. To try it out place these files in the appropriate places in com_jevents, replacing existing files where necessary. This is definately Alpha code! This hack hides your existing calendar data but that isn't the aim of this idea.

-David.

p.s. If someone takes this on and code it I would be delighted! I don't have the bandwidth to do this myself atm.
com_jevents_gcal.zip
Alpha support for Google Calendar.
(9.63 KiB) Downloaded 372 times
waveywhite
Gold Members
 
Posts: 16
Joined: Tue Mar 24, 2009 11:10 am
Location: Dorset, England

Postby Geraint » Wed Apr 08, 2009 7:02 am

Hi David

A very interesting idea (unfortunately I think you missed your modified dbmodel.php file from the zip archive).

The data could be merged in with the JEvents calendar via merging result arrays using a plugin. In fact I've been wondering about importing events from other 'calendar' type applications like the EventsList component using this method.

Back to Google Calendar - why not just import the events from your google calendar using the ical link and using an autoupdater to keep JEvents in sync? My goal is to write a full iCal export which would allow the data to pass the other way.

Geraint
JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!
User avatar
Geraint
 
Posts: 42850
Joined: Fri Feb 15, 2008 6:14 pm

Postby waveywhite » Wed Apr 08, 2009 8:31 am

Hi Geraint,

Thank you for the response.

Oops, wrong version of dbmodule.php! Attached is an updated archive.
com_jevents_gcal.zip
(9.79 KiB) Downloaded 494 times


Having a single repository for each calendar is the way to go on an on-line system. Having a single repository means that all updates are applied to one repository and reflected immediately everywhere that calendar is accessed from. This is scalable, there could be many different sites accessing and managing the same calendar.

In JEvents, merging results is certainly the way to go. in my hack (definitely a hatchet job) I bypassed the database but merging arrays of jIcalEventRepeat from different sources would be very easy. That layer in your data model looks ideal for this.

-David. :)
waveywhite
Gold Members
 
Posts: 16
Joined: Tue Mar 24, 2009 11:10 am
Location: Dorset, England

Postby Geraint » Thu Apr 09, 2009 8:02 am

Hi David

I'm not sure you understood my point about the iCal import. This can be auto-updated via a cronjob so Google is your primary data source and you'd update your JEvents calendar on a daily basis (say) to reflect any changes in the Google dataset.

Geraint
JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!
User avatar
Geraint
 
Posts: 42850
Joined: Fri Feb 15, 2008 6:14 pm

Postby waveywhite » Fri Apr 10, 2009 9:09 am

Hi Geraint,

iCal support is definately important, it's great that you're putting it in. People will be able to sync their laptops, PDAs, phones with a JEvents calendar directly. Where supporting an API like Google's is important is in distributing data more widely, perhaps to several different websites including Google.

Google Calendar is very important, many people already use it to manage their time and have already set up to synchronise their calendar application with it, often paying a small amount for software to do it. They often won't be able to link up with a JEvents website as well, either because their software is not suitable or because they don't have the knowledge. Supporting Google's APIs would allow a user to modify an event on a JEvents website and then sync their mobile device with Google immediately. Also, other JEvents websites, also accessing the same Google Calendar, would also immediately show the change.

Supporting Google API would also be easy for website admins to set up and manage, only requiring the calendar identifier and access criteria. Many people will struggle to set up cron jobs properly and safely on their websites and some simply won't have that facility.

So there you have it, supporting Google API would be great for disseminating data without latency and for ease of use! You must be convinced now ;) .

-David.
waveywhite
Gold Members
 
Posts: 16
Joined: Tue Mar 24, 2009 11:10 am
Location: Dorset, England

Postby pinguair » Tue Sep 01, 2009 5:57 pm

waveywhite wrote:Hi Geraint,

Thank you for the response.

Oops, wrong version of dbmodule.php! Attached is an updated archive.
com_jevents_gcal.zip



Hi Dave,
is this working? And is there a introduction how to install it?

Cheers Michael
pinguair
 
Posts: 1
Joined: Tue Sep 01, 2009 5:23 pm

Postby Tonyp » Tue Mar 04, 2014 7:30 pm

JEvents is easily integrated with Google Calendar.

Please open a new topic if you are having issues.

Thanks
Tony
---------------------------------------
Feel free to PM me if you would like Custom Installs or Joomla! related work for a competitive quote.

User avatar
Tonyp
Team Staff
 
Posts: 23834
Joined: Tue Oct 12, 2010 9:12 pm
Location: Isle of Man


Return to Contribute to JEvents

cron
  • Who is online
  • View new posts
  • View unanswered posts
  • In total there is 1 user online :: 1 registered and 0 hidden (based on users active over the past 5 minutes)
  • Most users ever online was 94 on Tue Sep 01, 2009 12:33 am
  • Users browsing this forum: Yahoo [Bot]