Remote Publishing with Sunbird
From WebCalendar Wiki
Contents |
[edit] Summary
This article will help you setup WebCalendar to be remotely published, and subscribed to using Sunbird (and Lightning). For this article WebCalendar v1.1.0-cvs is used in conjunction with Sunbird v0.2. You cannot publish changes from Sunbird to WebCalendar unless you have WebCalendar 1.1 or later. You will be able to add events and tasks with your Sunbird application and have it dynamically update your WebCalendar online (and it works the other way around).
[edit] WebCalendar Setup
- First, make sure you are using the latest CVS version of WebCalendar to have all relevant features available.
- Next make sure you go the ADMIN > PREFERENCES section and make sure both "Allow remote subscriptions" and "Allow remote publishing" features are enabled. Save your preferences.
- Take note (and write down)the url's for both the subscriptions and publishing
[edit] Modifying Your Apache Configuration
For publishing from Sunbird back to WebCalendar, you may need to modify your Apache's configuration file to allow support for HTTP PUT by adding the following to your httpd.conf file:
<Directory "/var/www/html/webcalendar"> Script PUT /icalclient.php </Directory>
Of course, replace "/var/www/html/webcalendar" with the directory where you installed WebCalendar.
[edit] Sunbird Remote Publishing Setup
- First we must add a calendar to Sunbird by clicking FILE > SUBSCRIBE TO REMOTE CALENDAR
- Choose a name (any name will work) for the calendar you are adding. Then, choose a color to color-code that calendar (helpful when you add several calendars and you are trying to compare and contrast them all together).
- Next, fill in the Remote Server URL of Sunbird with the Remote Publishing URL located in the preferences section of WebCalendar. example:
http://www.yourdomain.com/calendar_folder/icalclient.php
- The Local File Location section will be left blank (that is just the location of where a cached version of your WebCalendar will be stored)
- Now enable the option to have changes automatically published to the remote calendar (although this doesn't seem to work consistently).
- You have now added your webcalendar to Sunbird. Depending on which Username and Password you use when Sunbird prompts you, will determine which calendar Sunbird will read from and write to. You should see your calendar listed in the Calendars list.
- It must be noted that as of now I have seen no way to remote publish more than one calendar (this is because Sunbird asks for the username and password of the calendar your trying to publish to as a way of distinguishing what calendar its going to update), however you can subscribe (view) to as many as you like
- Also as of now, there seem to be some limitations to remotely publishing calendar events using Sunbird. For instance I haven't been able to add participants to an event using Sunbird.
