Go to file
Ace 85dc6871a0 Bugfixes + speed improvements
Fixed issue with duplicate events
Switched from list comprehensions to generator expressions for better performance
Problems:
Date sorting not working as expected
2020-06-12 18:12:14 +02:00
.github Update CONTRIBUTORS.md 2020-05-23 01:31:15 +02:00
docs updated docs 2020-05-29 04:18:25 +02:00
fonts Improved folder structure 2019-12-12 22:52:57 +01:00
Gallery Add files via upload 2020-05-18 20:00:19 +02:00
images delete dummy file 2020-05-29 04:09:23 +02:00
inkycal Bugfixes + speed improvements 2020-06-12 18:12:14 +02:00
.gitignore Ignored files having to to with venv 2020-05-16 20:20:08 +02:00
Changelog.md Updated file 2020-02-13 15:55:16 +01:00
Installer.sh Removed non-required file 2020-02-13 16:45:27 +01:00
LICENSE Update LICENSE 2019-12-19 16:38:28 +01:00
README.md added note about todoist api module 2020-06-12 16:43:40 +02:00
readthedocs.yml Added documentation 2020-05-07 20:17:32 +02:00
requirements.txt Added jsmin as core requirement 2020-06-05 00:23:06 +02:00
settings-UI.html Merged several features required by BETA 2020-05-29 20:13:47 +02:00
setup.py fixed typo 2020-06-05 00:47:09 +02:00
wpa_supplicant.conf Rename wpa_applicant.conf to wpa_supplicant.conf 2018-08-28 03:02:53 +02:00

Welcome to inkycal v2.0.0 BETA!

GitHub issues GitHub stars GitHub forks python

A python3 software for displaying events (from iCalendars), weather (from openweathermap) and RSS feeds on selected E-Paper displays (4.2", 5.83", 7.5"(v1), 7.5"(v2)) from Waveshare/GoodDisplay.

Inkycal v2.0.0 BETA is a refactoring of the previous release. It aims to fix certain problems with the previous release, including but not limited to:

  • Use settings.json file instead of .py file
  • Fully dynamic images (changable section sizes)
  • No preferred module positions or sizes
  • Switch from scripts to classes
  • Allow using pip3 install inkycal to install inkycal
  • Update dependencies
  • Switch from ics to icalendar library for better parsing of iCalendars
  • Allow using on windows (no-render mode)
  • Implement features from dev branch
  • Make it easier for developers (and beginners) to create their own custom module
  • Implement testing for each module
  • Add support for 9.7" ePaper
  • Add support for iCalendars requiring authentification
  • Add module for TODOIST api

How to test BETA

Please note that while inkycal is in BETA, a lot of things will change in a short time. This means that problems are fixed on-the-go. If you encounter a problem, please mention it on Discord.

If you were using the previous release, please re-run the instaler: bash -c "$(curl -sL https://raw.githubusercontent.com/aceisace/Inky-Calendar/master/Installer.sh)" and choose uninstall to uninstall the previous version. The last release and this BETA are not compatible!

Installation

# clone this branch
git clone -b dev_ver2_0 https://github.com/aceisace/Inky-Calendar Inkycal

# go to Inkycal directory
cd Inkycal

# install Inkycal
pip3 install -e ./

Creating settings file

Please visit the Online WEB-UI to create your settings.json file. You can alternatively also open settings-UI.html in your web-browser.

  • Fill in the details and click on generate to create your settings.json file
  • Copy the settings.json file to your raspberry pi
  • Copy the path (location) of this file

Running Inkycal

# Open Python3 and import package
from inkycal import Inkycal

# tell the Inkycal class where your settings file is
ink = Inkycal('/path/to/your/settings/file', render = True)
# render means rendering (showing) on the ePaper. Setting render = False will not show anything on the ePaper

# test if Inkycal can be run correctly, running this will show a bit of info for each module
ink.test()

# If there were no issues, you can run Inkycal nonstop:
ink.run()

Known issues (will be fixed before the production release)

  • Inkycal-image is not yet supported
  • Inkycal-server is not yet supported -> depends on inkycal-image
  • Calibration is not yet implemented automatically. For now, only manual calibration is supported: ink.calibrate()
  • Fix: AttributeError in Layout module for non-colour epaper displays
  • Improvement: Change the way the web-ui handles ical-urls

Updating BETA to latest version

To update to the latest beta, please do the following:

  1. pip3 uninstall inkycal
  2. Remove the Inkycal folder (or rename it at least)
  3. follow the steps from Installation (see above)

Main features

  • Monthly Calendar that shows events from your Google (or other) iCalendar/s
  • Live weather info and forecasts for next 9 hours (openweathermap)
  • Agenda to show what is on your shedule (from your iCalendar/s)
  • RSS feeds from various providers to keep up to date with news, quotes etc.

News:

  • Looking for a server-only solution? This repo offers a server-only solution (Credit to Atrejoe)
  • Discord chat open now. Click here to enter
  • Version 1.7.1 released with support for 4.2", 5.83", 7.5" (v1) and 7.5" (v2) E-Paper displays (Mid January 2020)
  • Added support for Debian Buster, Buster Lite is not supported!

Development status

This software is in active development. To see the current development status, [Click here].

Preview

Hardware required

  • One of the supported ePaper displays from waveshare: 4.2", 5.83", 7.5" (640x384px), 7.5"-v2 (800x400px)
  • Any Raspberry Pi with 40 pins. (Even a Zero W / Zero WH is fine!)
  • MicroSD card (min. 4GB) for flashing Raspbian with Desktop. Lite is not supported!
  • MicroUSB cable (for power)
  • If you like, a case

Setup

Getting the Raspberry Pi Zero W ready

  1. After flashing Raspbian Buster (with Desktop), set up Wifi on the Raspberry Pi Zero W by copying the file wpa_supplicant.conf (from above) to the /boot directory and adding your Wifi details in that file.
  2. Create a simple text document named ssh in the boot directory to enable ssh.
  3. Install the SD card and boot your Raspberry Pi. Connect to it over the network with ssh and login.
  4. Expand the filesystem in the Terminal with sudo raspi-config --expand-rootfs
  5. Enable SPI by entering sudo sed -i s/#dtparam=spi=on/dtparam=spi=on/ /boot/config.txt in the Terminal
  6. Set the correct timezone with sudo dpkg-reconfigure tzdata, selecting the correct continent and then the capital of your country.
  7. Reboot to apply changes
  8. Optional: If you want to disable the on-board leds of the Raspberry, follow these instructions: Disable on-board-led

Upgrading from old versions: If you were using an older version, please use the uninstall option from the installer. After uninstalling, please follow the instructions from above to get started.

iCalendar

Although Google Calendar is strongly recommended, iCalendars from other providors may work. Support for iCalendar requiring authentification (e.g. Owncloud) has been added, however this is still experimental.

If you encounter any issues with iCalendar, please use this validator to check if your links and iCalendars are valid.

If you encounter errors related to your iCalendar, please feel free to report the error either by opening an issue or by sending a mail.

Contributing

All sorts of contributions are most welcome and appreciated. To start contributing, please follow the Contribution Guidelines.

The average response time for issues, PRs and emails is usually 24 hours. In some cases, it might be longer.

Setting up VS Code Remote development in WSL

In order to speed up development, most development tasks (apart from the actual rending to E-Ink display) can be developed on more powerful machines and in richer environments than running this on a Pi zero. In case of Windows PC the most convenient way is to use VS Code Remote development in Windows Subsystem for Linux (WSL), please follow Tutorial.

To disable the eInk functionality set the flag to "image_only" (in /settings/settings.py): render_target = "image_only"

Don't forget to check out the Wiki. It contains all the information to understanding and customising the script.

P.S: Don't forget to star and/or watch the repo. For those who have done so already, thank you very much!

Contact