You are browsing as a guest. Sign up (or log in) to start making projects!

ShiftSync

  • 2 Devlogs
  • 5 Total hours

A program that automatically syncs my parents' calendar to Google Calendar

Open comments for this post

1h 39m 22s logged

Got most of the program working

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.

0
0
14
Open comments for this post

3h 18m 27s logged

Got ADB working and changed idea

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.

0
0
30

Delete project?

Are you sure you want to permanently delete this project? This action cannot be undone.

All devlogs, followers, and associated data will be removed.

Followers

Loading…