![]() ![]() Start by flashing Raspberrypi OS Lite to a MicroSD Card. If the dates cross over to the new month, it's displayed in grey instead of black. The calendar always starts from the current week, and displays the next four (total 35 days).Given limited space (oh why are large E-Ink screens still so expensive!) and resolution on the display, I could only show 3 events per day and an indicator (e.g.I don't like having long bars that span across multiple days for multi-day events, so I chose to display only the start and end dates for those events, and adding small left/right arrows accordingly,.Since I had the luxury of using red for the E-Ink display, I used it to highlight the current date, as well as recently added/updated events.I'm fairly happy with this but I'm sure this can be extended if I optimize the code further. I'm getting around 3-4 weeks before needing to recharge the PiSugar2. Battery life is the big question so I'll address it first.The calendar remains displayed on the E-Ink screen, because well, E-Ink. The RPi then shuts down to conserve battery. Upon boot, a cronjob on the RPi is triggered to run a Python script that fetches calendar events from Google Calendar for the next few weeks, and formats them into the desired layout before displaying it on the E-Ink display. Through PiSugar2's web interface, the onboard RTC can be set to wake and trigger the RPi to boot up daily at a time of your preference. Update (): Looks like the 12.48" E-Ink Display is finally back in stock over at Waveshare! And a new version of the PiSugar with USB-C port has been released over the past year as well. PiSugar2 for Raspberry Pi Zero ( Tindie) - Provides the RTC and battery for this project.Waveshare 12.48" Tri-color E-Ink Display - Unfortunately out of stock at the time this was published in September 2021.Raspberry Pi Zero WH - Header pins are needed to connect to the E-Ink display.An update was also posted on Reddit to share this with the community. I posted another update to Reddit in 2020, but got overwhelmed with life/work so it took me almost another year before posting the full set of instructions and code here. ![]() After sitting on that idea for close to a year, I finally got my act together and ordered the parts I needed for this project. I also wanted the parts to be plug and play since I had neither the desire nor the steady hands needed to solder anything. But specifically, I wanted it to run on battery so I could position it anywhere in house, and even hang it on the wall without a wire dangling beneath it. ![]() That said, enjoy working on your project and hopefully this helps to jump-start your magic calendar journey.īack in 2019, I started a thread in Reddit to bounce an idea I had with the community: to replicate the Android Magic Calendar concept that inspired many DIY projects in the subsequent years. Note that the code has only been tested on the specific hardware mentioned, and customization of the code is necessary for it to work with other E-Ink displays or Battery/RTC add-ons. This repo contains the code needed to drive an E-Ink Magic Calendar that uses a battery powered (PiSugar2) Raspberry Pi Zero WH to retrieve events from a Google Calendar, format it into the desired layout, before pushing it to a Waveshare 12.48" tri-color E-Ink display. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |