Git Product home page Git Product logo

aw-import-screentime's Introduction

aw-import-screentime

NOTE: This is a work in progress.

Import data from Apple's Screen Time to ActivityWatch. This could potentially be used to retrieve the Screen Time data of both macOS and iOS devices.

Based on analysis of the Knowledge.db file done here: https://www.r-bloggers.com/2019/10/spelunking-macos-screentime-app-usage-with-r/

Usage

Requirements:

  • Python 3.7+
  • Poetry

Install dependencies with: poetry install

Run script with: poetry run python3 main.py

Limitations of Knowledge.db

  • macOS doesn't keep track of which apps are active and which are inactive (only that they run, or at least have an open window?)
    • It almost seems like sometimes it does and sometimes it doesn't, weird.
    • Is it different for iOS?
  • How far back does the history go?
    • On my VM it goes to 2020-02-01 (~2.5mo back), but I've definitely used the machine before that.
  • How often does the db file update?
    • I can't seem to retrieve the latest entries, maybe they are stuck in WAL?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.