Feel free to use the content of this site on other websites. You do not need to cite or reference me in anyway, but you should cite the owners
of the original content (see my footer). If you want the source code for this, just give me a tweet and I will send it to you. (Warning: It isn't the cleanest code in the world).
A simple way you can display this site without the header, banner and menu items. To use this go to the following URL:
This URL will cope with the querystring d=YYYY-MM-DD for displaying a set day. For example to view the daily service for December 3, 2013
you can go to this URL: http://dailyprayer.ampers.x10.mx/clean.php?d=2013-12-03
If you are in another part of the world and want to use the same link everyday you can use the d variable in the query string
and setting it to be yesterday or tomorrow. For example Australia is a head of America so someone over there may want to save the following in their
Likewise, adding ?d=tomorrow to the end of the url will initally take you forward one day.
The basic structure of these services are generated in JSON format that can be access here:
To view a neater copy of the JSON code you can append the querystring:
pretty=true to the end of the url. Like the
HTML clean version this also takes in d=YYYY-MM-DD to view a particular day.
In the future I would like to add in more querystring commands to make this a bit more versatile. Things I have in mind is to only
request the Calendar of Festivals and Saints, or just one of the Morning or Evening services or just the Bible readings etc..But
that may not happen for awhile.
The JSON code has three main arrays: eventsToday, morningPrayer and eveningPrayer. These come after some basic settings for the day
such as the lectionary day name, the season and the colour for that season.
eventsToday - This contains the content for the Calendar of Festivals and Saints. Each item in this array has:
ccday - This is the date of the event in the format YYYY-MM-DD
event - This is the title, or name of the event
description - This contains extra information about the day
morningPrayer & eveningPrayer - Both services are made up of a series of 'elements' that contain the following:
heading - This is the service elements heading. Normally it starts with a number
content - This is the main content of the element. This would contain an entire collect, prayer or Bible verse.
If there is a type value in this element then it is treated slightly differently. See below.
verse - This is used when a verse is to be displayed regarding this element. Some collects have these.
note - This is only use for the 'element' title "3 The Opening Prayer" and contains the value "Silence may be kept". This
is kind of a heading, but I didn't think it big enough to be considered a 'heading' in a new element.
type - Only 'elements' that contain an array in their content uses this value. They are Psalms, Bible and Collects.
When this is used, content contains the following values in each of its items:
title - This is the title of the element. I display these in the tabs.
content - This contains the main content of this element, either a Bible passage or a collect
While this JSON content it tries to avoid HTML code, however there are still the following styles embedded in the data. You can always choose not to style
these in your stylesheet:
<span class='indent'> - This wraps around text that is continued from the line above, such as in the Canticle's
<span class='together'> - This indicates that the words are to be said together. I have styled this up to be bold (and in the seasons colour).
<span class='together indent'> - This is when a line that is said together continues to the next indented line, such as in the Lords Prayer
or the second line in the first part of the services.
Psalms - The Psalms text comes with a bunch of formatting already. The main ones I deal with are <span class="verse-num"> and <span class="line-dot">
that I set to be the seasons colour. The Psalms indent their lines by adding in two or three at the start of the line.
ESV text - Like the Psalms the ESV has a bunch of styles that come from the ESV's API site. They provide
a basic CSS file that you can use on your own site. I mark up
the <span class="verse-num"> to conform with the season's colour.
You are also welcome to the following files that contain the lectionary readings in CSV and XMl format, which
maybe easier to use than the PDF it came in.
Lectionary - CSV (25kb), XML (56kb)
Psalms - CSV (14kb), XML (31kb). Psalms with an * are the primary reading for that day.