You can choose three calendars to work with: the Email calendar, the Google calendar, or the print-out calendar.
If you want writing access, sign up through Brittnay Struble.
To write an event to the calendar, this link here should help. Please ensure that you enter it under the RAKI calendar, and not a personal calendar.
I've used the Google Calendar system for the adding, viewing, and editing of events. For more info on the general calendar, click here.
The following setup is currently not working: The Raspberry Pi program needs to be updated. In the meantime, Brittnay is sending out PDFs of the calendar manually. In order to interface the Raspberry Pi with the calendar, I used the Google Calendar API v2 because it was easier to implement. Note: you could probably do the whole program over with V3, it just got really tricky, and this was easier and it worked. Also, the module itself can be installed through the pip or easy_install tools. See the program for more details.
I used a Raspberry Pi to run the calendar program.
What it does:
All of this is in 1 program, found in /custom/scripts/calendarV3.py
. This file is run by crontab, on Mondays and Thursdays at 12:01 AM. PS: Has to run with /usr/bin/python2 (specified in script header).
The output is a calendar.pdf
, which gets printed with lpr
. You can set up the printer by ssh port binding, binding the CUPS port (default 631
) to a local port (like 9001
or 1337
). Use man ssh
for more about portbinding, and go to this link for more about setting up CUPS.
The first part of the program is imports. If you can't find them, use sudo pip install <module>
or sudo easy_install-2.7 <module>
to install them. You should be able to import all of them.
- The only one you might not need is premailer
. The regex engine on the Pi crashes when you try to use premailer. This may be because the processing is too much, or there are unrecognized characters. Most of the purposes of the modules are in the above comments.
The second part is email settings. This gets you logged into the Google API to the calendar and creates a list of people to send the email to. Then there's some placeholder variables that work with making the calendar.
The third part is static email structures. There's also CSS settings for both the paper and electronic printouts (because they require different scaling) (the style block doesn't work in emails because email clients strip out the style tags so it doesn't mess up the interface for a user.)
The fourth part are classes. I made a class for
The fifth part is making the definitions that run the programs, and calling them in the end.
I put print statements out there. They're for documentation (partially) and logging (mostly).
Current:
Past: