promnesia
promnesia copied to clipboard
ActivityWatch as module?
Is there any way to import ActivityWatch info? They have API with docs - https://docs.activitywatch.net/en/latest/rest.html
Looks like it should be in HIP not in Promnesia
Hey, yeah, this would be interesting! Trying activitywatch was on my todolist for a while. Doesn't have to be in HPI actually -- I would expect it's very straightforward to get the data directly from ActivityWatch (it runs locally as far as I understand?)! HPI is more of a kludge for services that don't have nice offline API for the data.
yes, it runs locally at localhost:5600
![image](https://user-images.githubusercontent.com/8425396/87235599-5b4eb280-c3e6-11ea-864b-df25c36d9af5.png)
I found Spotify watcher for ActivityWatch, so we can get info about the music from it too
Nice! Spotify also has an API: https://developer.spotify.com/documentation/web-api/reference/personalization/get-users-top-artists-and-tracks , which might be a bit more straightforward to get data from. Although wouldn't be too surprised if it's too limited. This actually could be a really cool usecase, e.g. imagine if you could correlate the artist page on Wikipedia, their subreddit, and their spotify songs in your library. Totally realistic, but going to require some thinking.
Yes, they have extensive API to work with!