ActivityWatch / activitywatch

The best free and open-source automated time tracker. Cross-platform, extensible, privacy-focused.
https://activitywatch.net/
Mozilla Public License 2.0
12.67k stars 565 forks source link

"Count audible browser tab as active" is decreasing the total activity time #852

Open yodapotatofly opened 1 year ago

yodapotatofly commented 1 year ago

Describe the bug

In the activity view, when I use the filter "Count audible browser tab as active", the total active time decrease instead of increasing. It is as is the audible window time was counted negatively ?

To Reproduce

  1. Go to the activity page
  2. Click on filters
  3. Make sure the checkbox "Count audible browser tab as active" is not selected
  4. remember the activity time for the day
  5. check the box "Count audible browser tab as active"
  6. observe that the activity time has decreased

Expected behavior

With this filter is enabled, the activity time should be greater or equal as when is is not selected (depending on whether you've used audible tabs)

Documentation

Capture d'écran 2023-03-06 170521 Capture d'écran 2023-03-06 170620

Additional context

AW was installed from the windows installer. I have almost not touched the settings. I'm not sure whether I have a browser watcher or not. I I don't the time should not be affected at all anyway.

github-actions[bot] commented 1 year ago

Hi there! As you're new to this repo, please make sure you've used an appropriate issue template and searched for duplicates (it helps us focus on actual development!). We'd also like to suggest that you read our contribution guidelines and our code of conduct. Thanks a bunch for opening your first issue! 🙏

BelKed commented 1 year ago

I can't reproduce this issue with ActivityWatch v0.12.2b1 nor v0.12.1 (on macOS 12.6.1):

Screenshot Screenshot


Please, try upgrading to the latest beta (v0.12.2b1), and feel free to let us know if the problem still persists :)

yodapotatofly commented 1 year ago

@BelKed I just tried v0.12.2b1, with no success :(

BelKed commented 1 year ago

Good to know... Seems like a Windows-related issue.

yodapotatofly commented 1 year ago

Please note that I don't think I have a browser watcher installed :

image

BelKed commented 1 year ago

That might be the problem since the aw-watcher-window (at least on macOS and with Firefox) can't see whether the browser is playing audio... Would you mind trying installing aw-watcher-web? I hope that will solve the problem.


Anyways, the total time shouldn't decrease just because of missing audible data :D

yodapotatofly commented 1 year ago

After installing the browser watcher, the problm is solved. However I believe the issue should stay open : not having the browser watcher shouldn't affect negatively the active time

Thanks :)