Schoology iOS Reminders Integration
First things first, clone this repository to your server:
$ git clone https://github.com/PostsDesert/SiRI.git
Next download a fork of pyicloud…
$ git clone https://github.com/PostsDesert/pyicloud.git
…and install it using
$ python3 setup.py install --user
Now make sure you have Python 3 installed and cd in and install the dependencies, you ideally want to do this within a virtualenv if you have it installed, but otherwise you can omit those steps and just run the pip3 install line.
# Run this if you have virtualenv installed:
$ virtualenv .venv
$ source .venv/bin/activate
# Continue on if you have virtualenv or start here if you don't:
$ pip3 install -r requirements.txt
Once the requirements are installed we’ll need to edit the config.py file, thats used to store our credentials and configuration options. Here’s an example:
# Apple credentials
icloud_email = 'postsdesert@github.com'
icloud_password = 'password'
# Schoology API Key
schoology_app_key = '32hj4fhkvdieb49hnfoh4oh4'
schoology_app_secret = '38fh3ofhtoh5oghdo3hfwj49hjg94h'
# Google link Shortener API Key
goo_shorten_url_key = '3j49jgl58igjl9vjdvhd9h5493hf9ekt9h394he9tk4'
# Collection/List that you want your Schoology events to get sent to
collection = 'Schoology'
consumer key
to schoology_app_key
and consumer secret
to schoology_app_secret
.icloud_email
and icloud_password
).goo_shorten_url_key
.crontab -e
30 4 * * * python3 30 4 * * * python3 ~/SiRI/SiRI/SiRI.py >> ~/SiRI/SiRI/SiRI.log 2>&1y
. This will run the program at 4:30pm every day.