ShiftSync
- 2 Devlogs
- 5 Total hours
A program that automatically syncs my parents' calendar to Google Calendar
A program that automatically syncs my parents' calendar to Google Calendar
Right now the program can find out where it needs to press to select all the days in the current month with the help of some modulo math and integer devision. It took me a bit of time to figure out the right approach, but with the calendar.daterange() I can get the first day of the month (0=mo, 1=tu, 2=wo, etc.) and the number of days in the month, so I use the first day as an offset and use the mod and int division to get the correct rows and columns. I can then also repeat this for the months after. I am sometimes getting a weird error when doing this, so I still need to figure that out.
I made the basics to control my phone using pure-python-adb. I can automatically open the WhatsApp chat to my mom, select the .Shifter-file, and then import it inside of Shifter. My next plan was to use the text share feature to copy the month to my clipboard and then parse that, import it into Google Calendar, etc. But after wasting way too much time, I realized that it is very hard to get the clipboard text and all the other stuff. So my new idea is to use the built-in GC exporter once for the full calendar and then every time after that recursively click on every day and upload those to GC. This will still be way quicker than reuploading the full calendar every time.