Get the App
SLTechnology News&Howtos  ›  Servers  › 

How to use raspberry pie and low-power monitors to track your family schedule

Shulou Source: shulou.com Published: 2022-06-01 05:25:21 10月30日 Update

Editor to share with you how to use raspberry pie and low-power monitor to track your family schedule. I believe most people don't know much about it, so share this article for your reference. I hope you will learn a lot after reading this article. Let's take a look at it.

Hardware

The project started as a holiday project, so I tried to make use of as much old stuff as possible. Including one that has been idle for too long raspberry pie 2. Since I don't have an e-ink screen, I need to buy one. Fortunately, I found a vendor that provides open source drivers and examples for screens that support raspberry pie, which are connected using the GPIO port.

My family also wants to switch between different calendars, so some form of input is needed. Instead of adding a USB keyboard, I chose a simpler solution and bought a keyboard similar to the 1x4 size described in this article. This allows me to connect the keyboard to some GPIO ports in the raspberry pie.

Finally, I need a picture frame to accommodate the entire setting. Although the back looks a little messy, it can get the job done.

Calendar internals

Software

I took inspiration from a similar project and started writing Python code for my project. I need to get data from two places:

Weather information: obtained from OpenWeather API

Time information: I intend to connect to a calendar running on my home server using the CalDav standard

Because I had to wait for some parts to arrive, I used a modular approach to input and display, so I could debug most of the code without hardware. The calendar application needs a driver, so I wrote a Pygame driver to run it on my desktop.

The best part of writing code is the ability to reuse existing open source projects, so it's easy to access different API. I can focus on designing the user interface, which includes everyone's weekly calendar and everyone's calendar, as well as allowing the use of a keypad to select a schedule. And I took the time to add some additional features, such as a custom screen saver for special days.

E Ink calendar screensaver

The final integration step will ensure that my calendar application will run at startup and is fault tolerant. I used a basic raspberry pie system image and configured the application to the systemd service so that it could run in the event of a failure and a system restart.

After all the work, I uploaded the code to GitHub. So if you want to create a similar calendar, you can view it at any time and restructure it!

The above is all the contents of the article "how to use raspberry pie and low-power monitor to track your family schedule". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Tags: Schedules programs calendars raspberries projects code articles runs screens applications keyboards drivers applications drivers power consumption home monitor tracking different vendors Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Tech Info Linux Huawei Apple vpn