Giter Club home page Giter Club logo

ch3lmi / inkycal Goto Github PK

View Code? Open in Web Editor NEW

This project forked from aceinnolab/inkycal

0.0 0.0 0.0 207.68 MB

Inykcal 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 W. Oh, and it's open for third-party modules! Hooray!

License: GNU General Public License v3.0

Shell 24.86% Python 23.19% C 42.33% Makefile 9.57% M4 0.05%

inkycal's Introduction

Welcome to inkycal v2.0.2!

Version Licence GitHub issues GitHub stars GitHub forks 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!

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.

Preview

Hardware required

  • One of the supported ePaper displays from waveshare: 4.2", 5.83", 7.5", 7.8"(!), 9.7"(!), 10.3"(!)
  • Any Raspberry Pi with 40 pins and Wi-Fi. (Raspberry Pi 4/3/3B/3B+/3A/4/0W/0WH - Inkycal runs just fine on the Zero W/Zero WH model!)
  • MicroSD card (min. 4GB) for flashing Raspberry Pi OS
  • MicroUSB cable (for power)
  • Optional, a 3D-printable case

(!) -> These displays are parallel displays, featuring 16 greyscales, much faster refreshs, but are more expensive and require a bigger driver board

Configuring the Raspberry Pi

  1. Flash Raspberry Pi OS according to the instructions. Leave the SD card plugged in your computer.
  2. Create and download settings.json file for Inkycal from the WEB-UI
  3. Download the ssh text file from the WEB-UI
  4. Create and download a WiFi-configuration file (wpa_supplicant.conf) from the WEB-UI
  5. Copy these three downloaded files to the flashed microSD card. On Windows, this is the only visible directory on the SD card. On Linux, copy these files to /boot
  6. Eject the microSD card from your computer now, insert it in the Raspberry Pi and power the Raspberry Pi.
  7. Once the green LED has stopped blinking after ~3 minutes, use an SSH client to connect to the Raspberry Pi. On Windows, you can use PUTTY, but you can also use an SSH App on your smartphone. Use the address: raspberrypi.local with pi as the username and raspberry as the password. For more detailed instructions, check out the page from the Raspberry Pi website
  8. 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

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. Change the password for the user pi by entering passwd in the Terminal, enter your current password, hit enter, then type your new password and press enter. Please note you will have to remember this password to access your Raspberry Pi.
  2. Follow the steps in Installation (see below) on how to install Inkycal.

Sounds too complicated? We've got you covered, you can now purchase a fully configured Inkycal on Tindie. These work as simple as plug-and-play. All the hard work is done in advance for you ๐Ÿ’ฏ

I sell on Tindie

Do note that these are made on demand and not always available, best to keep checking ๐Ÿ˜‰

Installing Inkycal

The previous installer has been deprecated to give more transparency about the installation of Inkycal.

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
cd $HOME
git clone --branch main --single-branch https://github.com/aceisace/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

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

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

Buy me a โ˜• please

Yes please! I do drink and like my โ˜•, especially when developing Inkycal :laugh: Apart from coffee, I also invest in getting new hardware and displays for Inkycal as well as maintaining the servers Financial contributions will also be remembered on the contributors page, along with your first name. You can donate a coffee with these QR-Codes: (Paypal - left, bitcoin - right)

As featured on

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.