-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Populated README file, reorganized config and changed defaults, added…
… option to disable some configuration options.
- Loading branch information
1 parent
d9da466
commit 80a4a26
Showing
3 changed files
with
81 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# ICS Calendar Display # | ||
The goal of this software is to create a 10-foot style user | ||
interface to display the contents of one or more iCal files. | ||
The calendar has the ability to highlight or darken certain | ||
events or calendars, and which events are displayed is customizable. | ||
|
||
# Requirements # | ||
This software utilizes AJAX to load the output of a PHP script. This | ||
requires that page be reached via the same web server that is serving | ||
the PHP script, as AJAX cannot load external or local sources. | ||
|
||
# Configuration # | ||
This repository contains an example configuration file, `config.example.php`. | ||
This file must be renamed to `config.php` in order to be read properly. | ||
|
||
The software provides the following options: | ||
|
||
_Events_ | ||
- `$number_of_events` - Set to the maximum total number of events to display. | ||
Set this to `-1` for no limit. | ||
- `$days_back` - Set to the number of days in the past to display events. | ||
Set this to `-1` for no limit. | ||
- `$days_forward` - Set to the number of days in the future (including today) to | ||
display events. Set this to `-1` for no limit | ||
- `$skip_keyword` - Any event with this string located anywhere in its | ||
description will not be displayed. To use no string, use `false`. | ||
|
||
_Highlight/Darkening_ | ||
- `$highlight_today` - Set to `true` to highlight events that occur today. Set | ||
to `false` otherwise. | ||
- `$highlight_calendars` - Add each calendar you wish to always highlight. For | ||
example, use `array("cal1", "cal2")` to highlight calendar sources named | ||
"cal1" and "cal2". To highlgiht no calendars, use `false`. | ||
- `$highlight_keyword` - Any event with this string located anywhere in its | ||
description will be highlighted. To use no string, use `false`. | ||
- `$darken_past` - Set to `true` to darken events that have passed. Set | ||
to `false` otherwise. | ||
- `$darken_calendars` - Same as `$highlight_calendars`, except darkened. | ||
- `$darken_keyword` - Same as `$highlight_keyword`, except darkened. | ||
|
||
_Error Reporting_ | ||
- `$show_ical_errors` - Setting this to `true` will display an error if one or | ||
more iCal sources cannot be read or parsed. Set to `false` to suppress this | ||
message. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,24 @@ | ||
<?php | ||
$number_of_events = 7; // Number of events to display | ||
$days_back = 7; // Number of days to show in the past | ||
$days_forward = 14; // Number of days to show in the future | ||
// See README file for information on this configuration | ||
$number_of_events = 7; | ||
$days_back = 7; | ||
$days_forward = 14; | ||
|
||
$highlight_today = false; // Whether to highlight events occurring today | ||
$highlight_calendars = array("cal1"); // Calendars to always highlight | ||
$highlight_keyword = "#PRI"; // Items with this keyword in the description will be highlighted. Use an empty string to disable this. | ||
$skip_string = "SKIP ME"; | ||
|
||
$darken_past = true; // Whether to darken incomplete items in the past | ||
$darken_calendars = array(); // Calendars to always darken | ||
$darken_keyword = "#DARK"; // Items with this keyword in the description will be darkened. Use an empty string to disable this. | ||
$highlight_today = false; | ||
$highlight_calendars = array("cal1"); | ||
$highlight_keyword = "#PRI"; | ||
|
||
$skip_string = "#CMP"; // If this string is present in an item's description, it will be skipped. Use an empty string to disable this. | ||
$darken_past = true; | ||
$darken_calendars = false; | ||
$darken_keyword = "#DARK"; | ||
|
||
$show_ical_errors = true; // Displays an error if an iCal feed has failed to be read | ||
$show_ical_errors = true; | ||
|
||
// Calendar URLs - use private ICS links from Google Calendar or another calendar service. | ||
// The key of each array entry will specify the calendar name used in the settings above. | ||
$calendar_urls = array( | ||
"cal1" => "http://www.example.com/cal1.ics", | ||
"cal2" => "http://www.example.com/cal2.ics" | ||
); | ||
|
||
?> | ||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters