Skip to content
forked from aceinnolab/Inkycal

Create awesome e-paper dashboards within minutes! Modularity? Check! Python3? Check? Works on Raspberry Pi Zero W? Check! Support for own modules? Check!

License

Notifications You must be signed in to change notification settings

AleSteB/Inkycal

 
 

Repository files navigation

Welcome to inkycal v2.0.3!

aceinnolab logo

featured-image

Version Licence GitHub stars python

Inkycal is a software written in python for selected E-Paper displays. It converts these displays into useful information dashboards. It's open-source, free for personal use, fully modular and user-friendly. Despite all this, Inkycal can run well even on the Raspberry Pi Zero. Oh, and it's open for third-party modules! Hooray!

⚠️ Warning: long installation time expected!

Starting october 2023, Raspberry Pi OS is now based on Debian bookworm and uses python 3.11 instead of 3.9 as the default version. Inkycal has been updated to work with python3.11, but the installation of numpy can take a very long time, in some cases even hours. If you do not want to wait this long to install Inkycal, you can also get a ready-to-flash version of Inkycal called InkycalOS-Lite with everything pre-installed for you by sponsoring via Github Sponsors. This helps keep up maintenance costs, implement new features and fixing bugs. Please choose the one-time sponsor option and select the one with the plug-and-play version of Inkycal. Then, send your email-address to which InkycalOS-Lite should be sent. Alternatively, you can also use the paypal.me link and send the same amount as Github sponsors to get access to InkycalOS-Lite!

Main features

Inkycal is fully modular, you can mix and match any modules you like and configure them on the web-ui. For now, these following built-in modules are supported:

  • Calendar - Monthly Calendar with option to sync events from iCalendars, e.g. Google.
  • Agenda - Agenda showing upcoming events from given iCalendar URLs.
  • Image - Display an Image from URL or local file path.
  • Slideshow - Cycle through images in a given folder and show them on the E-Paper.
  • Feeds - Synchronise RSS/ATOM feeds from your favorite providers.
  • Stocks - Display stocks using Tickers from Yahoo! Finance.
  • Weather - Show current weather, daily or hourly weather forecasts from openweathermap.
  • Todoist - Synchronise with Todoist app or website to show todos.
  • iCanHazDad - Display a random joke from iCanHazDad.com.

Quickstart

Watch the one-minute video on getting started with Inkycal:

Inkycal quickstart

Hardware guide

Before you can start, please ensure you have one of the supported displays and of the supported Raspberry Pi: |4|3A|3B|3B+|2B|0W|0WH|02W|. We personally recommend the Raspberry Pi Zero W as this is relatively cheaper, uses less power and is perfect to fit in a small photo frame once you have assembled everything.

Serial displays are usually cheaper, but slower. Their main advantage is ease of use, like being able to communicate via SPI. A single update will cause flickering (fully normal on e-paper displays) ranging from a few seconds to half an minute. We recommend these for users who want to get started quickly and for more compact setups, e.g. fitting inside a photo frame. The resolution of these displays ranges from low to medium. Usually, these displays support 2-3 colours, but no colours in between, e.g. fully black, fully red/yellow and fully-white.

Parallel displays on the other hand do not understand SPI and require their own dedicated driver boards individually configured for these displays. Flickering also takes place here, but an update only takes about one to a few seconds. The resolution is much better than serial e-paper displays, but the cost is also higher. These also have 16 different grayscale levels, which does not compare to the 256 grayscales of LCDs, but far better than serial displays.

❗️Important note: e-paper displays cannot be simply connected to the Raspberry Pi, but require a driver board. The links below may or may not contain the required driver board. Please ensure you get the correct driver board for the display!

type vendor Where to buy
7.5" Inkycal (plug-and-play) Aceinnolab (author)  Buy on Tindie Pre-configured version of Inkycal with custom frame and a web-ui. You do not need to buy anything extra. Includes Raspberry Pi Zero W, 7.5" e-paper, microSD card, driver board, custom packaging and 1m of cable. Comes pre-assembled for plug-and-play.
Inkycal frame (kit -> requires wires, 7.5" Display and Zero W with microSD card Aceinnolab (author) Buy on Tindie Ultraslim frame with custom-made front and backcover inkl. ultraslim driver board). You will need a Raspberry Pi, microSD card and a 7.5" e-paper display
[serial] 12.48" (1304×984px) display waveshare / gooddisplay  Search for Waveshare 12.48" E-Paper 1304×984 on amazon or similar
[serial] 7.5" (640x384px) -> v1 display (2/3-colour) waveshare / gooddisplay Search for Waveshare 7.5" E-Paper 640x384 on amazon or similar
[serial] 7.5" (800x480px) -> v2 display (2/3-colour) waveshare / gooddisplay Search for Waveshare 7.5" E-Paper 800x480 on amazon or similar
[serial] 7.5" (880x528px) -> v3 display (2/3-colour) waveshare / gooddisplay Search for Waveshare 7.5" E-Paper 800x528 on amazon or similar
[serial] 5.83" (400x300px) display waveshare / gooddisplay Search for Waveshare 5.83" E-Paper 400x300 on amazon or similar
[serial] 4.2" (400x300px)display waveshare / gooddisplay Search for Waveshare 4.2" E-Paper 400x300 on amazon or similar
[parallel] 10.3" (1872×1404px) display waveshare / gooddisplay  Search for Waveshare 10.3" E-Paper 1872×1404 on amazon or similar
[parallel] 9.7" (1200×825px) display waveshare / gooddisplay Search for Waveshare 9.7" E-Paper 1200×825 on amazon or similar
[parallel] 7.8" (1872×1404px) display waveshare / gooddisplay  Search for Waveshare 7.8" E-Paper 1872×1404 on amazon or similar
Raspberry Pi Zero W Raspberry Pi  Search for Raspberry Pi Zero W on amazon or similar
MicroSD card Sandisk  Search for MicroSD card 8GB on amazon or similar

Configuring the Raspberry Pi

Flash Raspberry Pi OS on your microSD card (min. 4GB) with Raspberry Pi Imager. Use the following settings:

option value
hostname inkycal
enable ssh yes
set username and password yes
username a username you like
password a password you can remember
set Wi-Fi yes
Wi-Fi SSID your Wi-Fi name
Wi-Fi password your Wi-Fi password
set timezone your local timezone
  1. Create and download settings.json file for Inkycal from the WEB-UI. Add the modules you want with the add module button.
  2. Copy the settings.json to the flashed microSD card.
  3. Eject the microSD card from your computer now, insert it in the Raspberry Pi and power the Raspberry Pi.
  4. Once the green LED has stopped blinking after ~3 minutes, you can connect to your Raspberry Pi via SSH using a SSH Client. We suggest Termius on your smartphone. Use the address: inkycal.local with the username and password you set earlier. For more detailed instructions, check out the page from the Raspberry Pi website
  5. After connecting via SSH, run the following commands, line by line:
sudo raspi-config --expand-rootfs
sudo sed -i s/#dtparam=spi=on/dtparam=spi=on/ /boot/config.txt
sudo dpkg-reconfigure tzdata

# If you have the 12.48" display, these steps are also required:
wget http://www.airspayce.com/mikem/bcm2835/bcm2835-1.71.tar.gz
tar zxvf bcm2835-1.71.tar.gz 
cd bcm2835-1.71/
sudo ./configure && sudo make && sudo make check && sudo make install
wget https://project-downloads.drogon.net/wiringpi-latest.deb
sudo dpkg -i wiringpi-latest.deb

# If you are using the Raspberry Pi Zero models, you may need to increase the swapfile size to be able to install Inkycal:
sudo dphys-swapfile swapoff
sudo sed -i -E '/^CONF_SWAPSIZE=/s/=.*/=512/' /etc/dphys-swapfile
sudo dphys-swapfile setup
sudo dphys-swapfile swapon

These commands expand the filesystem, enable SPI and set up the correct timezone on the Raspberry Pi. When running the last command, please select the continent you live in, press enter and then select the capital of the country you live in. Lastly, press enter.

  1. Follow the steps in Installation (see below) on how to install Inkycal.

Installing Inkycal

⚠️ Please note that although the developers try to keep the installation as simple as possible, the full installation can sometimes take hours on the Raspberry Pi Zero W and is not guaranteed to go smoothly each time. This is because installing dependencies on the zero w takes a long time and is prone to copy-paste-, permission- and configuration errors.

ℹ️ Looking for a shortcut to safe a few hours? We know about this problem and have spent a signifcant amount of time to prepare a pre-configured image with the latest version of Inkycal for the Raspberry Pi Zero. It comes with the latest version of Inkycal, is fully tested and uses the Raspberry Pi OS Lite as it's base image. You only need to copy your settings.json file, we already took care of the rest, including auto-start at boot, enabling spi and installing all dependencies in advance. Pretty neat right? Check the sponsor button at the very top of the repo to get access to Inkycal-OS-Lite. Alternatively, you can also use the paypal.me link and send the same amount as Github sponsors to get access to InkycalOS-Lite! This will help keep this project growing and cover the ongoing expenses too! Win-win for everyone! 🎊

Manual installation

Run the following steps to install Inkycal. Do not use sudo for this, except where explicitly specified.

# the next line is for the Raspberry Pi only
sudo apt-get install zlib1g libjpeg-dev libatlas-base-dev rustc libopenjp2-7 python3-dev scons libssl-dev python3-venv python3-pip git libfreetype6-dev wkhtmltopdf
cd $HOME
git clone --branch main --single-branch https://github.com/aceinnolab/Inkycal
cd Inkycal
python3 -m venv venv
source venv/bin/activate
python -m pip install --upgrade pip
pip install wheel
pip install -e ./

# If you are running on the Raspberry Pi, please install the following too to allow rendering on the display
pip install RPi.GPIO==0.7.1 spidev==3.5

Running Inkycal

To run Inkycal, type in the following command in the terminal:

cd $HOME/Inkycal
source venv/bin/activate
python3 inky_run.py

Running on each boot

To make inkycal run on each boot automatically, you can use crontab. Do not use sudo for this

(crontab -l ; echo "@reboot sleep 60 && cd $HOME/Inkycal && venv/bin/python inky_run.py &")| crontab -

Updating Inkycal

To update Inkycal to the latest version, navigate to the Inkycal folder, then run:

git pull

Yep. It's actually that simple! But, if you have made changes to Inkycal, those will be overwritten. If that is the case, backup your modified files somewhere else if you need them. Then run:

git reset --hard
git pull

Uninstalling Inkycal

We'll miss you, but we don't want to make it hard for you to leave. Just delete the Inkycal folder, and you're good to go!

Additionally, if you want to reset your crontab file, which runs inkycal at boot, run:

crontab -r

https://rahulmahale.com/blogs/running-cronjob-at-reboot-on-raspberry-pi/

Modifying Inkycal

Inkycal now runs in a virtual environment to support more devices than just the Raspberry Pi. Therefore, to make changes to Inkycal, navigate to Inkycal, then run:

cd $HOME/Inkycal && source venv/bin/activate

Then modify the files as needed and experiment with Inkycal. To deactivate the virtual environment, simply run:

deactivate

3D printed frames

With your setup being complete at this stage, you may want to 3d-print a case. The following files were shared by our friendly community: 3D-printable case

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. If you want to have some faster responses, please use Discord (link below)

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

Join us on Discord!

We're happy to help, to beginners and developers alike. In fact, you are more likely to get faster support on Discord than on Github.

Inkycal chatroom Discord

Sponsoring

Inkycal relies on sponsors to keep up maintainance, development and bug-fixing. Please consider sponsoring Inkycal via the sponsor button if you are happy with Inkycal.

We now offer perks depending on the amount contributed for sponsoring, ranging from pre-configured OS images for plug-and-play to development of user-suggested modules. Check out the sponsor page to find out more. If you have been a previous sponsor, please let us know on our Dicord server or by sending an email. We'll send you the perks after confirming 💯

As featured on

About

Create awesome e-paper dashboards within minutes! Modularity? Check! Python3? Check? Works on Raspberry Pi Zero W? Check! Support for own modules? Check!

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 39.1%
  • Shell 22.8%
  • Python 22.5%
  • Makefile 8.8%
  • HTML 6.8%
  • Batchfile 0.0%