Hi all,
I m creating a script that check what application do sound (linux) and send the app to activitywatch.
so to make simple I have a commandscript (python) who give me all application that make sound like that
Sink application.name application.process.binary Croked media.name
274 Podcasts gnome-podcasts True S5E5 - Pourquoi le problème du DDoS est en train dempirer by Micode
330 VLC media player (LibVLC 3.0.20) vlc False audio stream
977 mpv None False Harmonoid
1367 Chromium freetube False Playback
yes, I putted vlc, freetube and music in the same time for test (not the subject here).
-
Seems illogic with sound but how to send multiple event in the same time ? must I have to create multiple bucket ? for exemple here, I have VLC and gnomepodcasts who play music in the sametime, how can I record bothevent who will have the same utc. In activitywatch, seems bucket can only have one. Must I have to create a bucket per app ?
-
Is it possible to create our own event ? for now, I use currentwindow
client.create_bucket(bucket_id, event_type=“currentwindow”)
wich is good for me, but first misnamed, second, has only 2 field (app, and title), I wish to add more info, for statistics. -
in the dashboard, I have datas in the timeline, but nothing in the activity. Any idea why ? How I record windows, application ? there is a concept I don’t have here. could you help me. thanks.
PS : Why I do that, I would like to monitor my screening time (youtube mainly, netflix, etc…) and, from what I understand, awatcher only check what window is focus not played. Or a lot of time, I have a video (vlc, podcast, freetube) who run in background (or second screen). So want to I consider that if it’s make noise, it’run
Second reason, wanted to make a python script for fun (long story too…).
thanks for you help.