The given image is now rotated by 90 deg when attempting to send it to the epaper. This function was initally in main, but has been shifted. |
||
---|---|---|
.github | ||
docs | ||
fonts | ||
Gallery | ||
images | ||
inkycal | ||
logs | ||
server | ||
.gitignore | ||
Changelog.md | ||
LICENSE | ||
README.md | ||
readthedocs.yml | ||
requirements.txt | ||
setup.py |
Welcome to inkycal v2.0.0!
A python 3 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.
This branch contains the latest working release of Inkycal. It's mainly intended for those who wish to test new features and give feedback. If you encounter any bugs, please report them via the [Issues] button.
- Add support for iCalendars requiring authentification
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/main/Installer.sh)"
and choose uninstall
to uninstall the previous version. The last release and this BETA are not compatible!
Updating BETA to latest version
To update to the latest beta, please do the following:
pip3 uninstall inkycal
- Remove the
Inkycal
folder (or rename it at least) - follow the steps from
Installation
(see above)
Installation
# clone this branch
git clone -b release/2.0.0 https://github.com/aceisace/Inky-Calendar Inkycal
# go to Inkycal directory
cd Inkycal
# install Inkycal
pip3 install -e ./
Creating a settings file
Please visit the Online WEB-UI to create your settings.json file.
- Fill in the details and click on
generate
to create your settings.json file - Copy the settings.json file to your raspberry pi (e.g. copy directly from computer to the SD Card, WinSCP, VNC etc.)
- Copy the path (location) of this file
Running Inkycal
Open Python3
and run the commands below or paste the below content in an empty file and save it as a .py
file:
# Open Python3 and import package
from inkycal import Inkycal
# If you see 'numpy is not installed, please install with pip3 install numpy',
# please run the following command in the Terminal, then restart python and try again:
# pip3 uninstall numpy
# tell the Inkycal class where your settings file is
inky = 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
inky.test()
# If there were no issues, you can run Inkycal nonstop:
inky.run()
Customizing
With this release, it has become much easier to customize the modules to suit your preferences. First, check what options can be configured for a specific module:
# Module refers to the name of a module's Class, e.g. Agenda, RSS, Calendar ...
inky.Module.set(help=True) # shows configurable options
# Set a single option
inky.Module.set(fontsize=14)
# Set multiple options at once
inky.Module.set(fontsize=14, language='de')
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:
- Server-only solution (Credit to Atrejoe)
- Discord chat open now. Click here to enter
- Added support for 4.2", 5.83", 7.5" (v1), 7.5" (v2) and 9.7" E-Paper displays
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 and WiFi. (Raspberry Pi 3/3B/3B+/3A/4/0W/0WH - Inkycal runs just fine on the Zero W/Zweo WH model!)
- MicroSD card (min. 4GB) for flashing Raspbian with Desktop. Lite is not supported!
- MicroUSB cable (for power)
- Optional, a 3D-printable case
Setup
Getting the Raspberry Pi Zero W ready
- Flash Raspberry Pi OS (instructions)
- Create a simple text document named ssh in the boot directory to enable ssh.
- Install the SD card and boot your Raspberry Pi. Connect to it over the network with ssh and login.
- Expand the filesystem in the Terminal with
sudo raspi-config --expand-rootfs
- Enable SPI by entering
sudo sed -i s/#dtparam=spi=on/dtparam=spi=on/ /boot/config.txt
in the Terminal - Set the correct timezone with
sudo dpkg-reconfigure tzdata
, selecting the correct continent and then the capital of your country. - Reboot to apply changes
- 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.
P.S: Don't forget to star and/or watch the repo. For those who have done so already, thank you very much!
Contact and Support
-
- Email: aceisace63@yahoo.com (average response time < 24 hours)
Buy me a coffee
Yes please :). I do drink and like my coffee, especially when developing the inkycal software :) You can donate a coffee with this QR-code (Paypal):