Skip to content

Instantly share code, notes, and snippets.

View cowpi's full-sized avatar

Mark Woodward cowpi

View GitHub Profile
@cowpi
cowpi / novenaToDue.py
Created February 23, 2014 22:16
This little Pythonista script formats a callback URL for the iPhone/iPad Due app for 9 consecutive days of reminders for a novena prayer. The script is initiated from Launch Center Pro for each day with the following callback URL pythonista://novenaToDue?action=run&args=nn where nn is the day of novena (1..9).
# This script formats a callback url for the Due app to send a reminder for
# each day of a Novena for the Dead. This script is called by Launch Center Pro
# with a sys argument nn, where nn is which day of the novena (1..9).
# The first day of the novena is set to begin +1 days of current date.
# Time is set for 5:15 of current time zone.
import datetime
import time
import webbrowser
import sys