Hello Everyone,
I just got a shiny new Inky Frame 7,3" and I am trying to make a micropython script to fetch Google Calendar appointments (current + two next ones) and display them on the e-ink screen.
I have found few solutions where it is done via extra Raspberry Pi which gets the appointments and draws an image and e-Ink screen with Raspberry Pi Pico is just displaying image.
So here is my question: Is it possible to make this only on Raspberry Pi? And if someone can please help me with the code (I have already enabled API on Google side and have downloaded jSON file with credentials following the OAuth 2.0 route.
Any help would be much appreciated.
Thanks!
Thank you very much for pointing me to this solution. Unfortunately this is running on regular Raspberry Pi but not on Pico who ch is much more limited. Looks like the only solution is where Pico displays pre-rendered image that is prepared by an another computer (raspberry pi) running on same network.
You can try to adapt GitHub - bablokb/pico-e-ink-daily: Display Daily Agenda on an E-Ink Display (version for Pico). This does not pull data directly from the calendars, but uses an intermediate service running on my Pi. That services uses the fat VCAL API and creates a slimmed down json for the Pico. But rendering is done on the Pico.
But maybe you should google around for the terms “MicroPython google calendar”. I do have a faint memory about a project pulling data directly from Google.
Thank you very much! I will look into that
Sorry I only saw it after that is was for Rasperry Pi but I have been playing with the code on my Inky frame. I’m working on building the calendar layout at the moment. Pretty fun and the code is a good start.
Good Job! And now the really difficult part ;-)
I wonder would it be possible to use AI to write a micropython code for this application?
The OAuth is going to be a pain, I forgot Google made all those API changes. Sigh.
So its most likely either
- Public Calendar - which is a No
- Some server/middle man process - meh, not for this.
- Found this - Fetching Google Calendar data without OAuth by using Google Scripts
Which is very insecure I know, but for stuff like Bank Holidays or converting it into maybe less sensitive info could maybe work.
This and this project is the closest thing I found to directly interact with the Google calendar with a PICO…
Maybe it helps you to push things further…
1 Like
Thank you very much for looking into this! This is useful info!
Does anyone have idea of this would be easier . harder to do with Microsoft Calendar (Office 365)?
I still think its going to be a problem with OAuth. The first link uses a public calendar.