Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Considering not taking background time into account? #30

Closed
onlyice opened this issue Nov 13, 2019 · 8 comments
Closed

Considering not taking background time into account? #30

onlyice opened this issue Nov 13, 2019 · 8 comments
Assignees
Labels
enhancement New feature or request

Comments

@onlyice
Copy link

onlyice commented Nov 13, 2019

This plugin is really convenient and helpful. But there's a situation that can be handled better.

I open PyCharm to work on my project. Then I switch to Google Chrome to view some documents. But the time I'm not editing the code file in PyCharm is collected and reported to the Activity Watch server. This is mostly not as expected.

@OlivierMary
Copy link
Owner

Hi,

On Jetbrains IDEs I can only get IDEs events, and there is no event like "Left IDE", "Back to IDE".

For that it's on activity watch to do something.... You can get time pass on each app, and afk times.

Or if no interaction since 60sec I dont record ? Not really good You can pass 5min to watch a code part no, how to set a good limit... ?

@onlyice
Copy link
Author

onlyice commented Nov 18, 2019

Or if no interaction since 60sec I dont record ? Not really good You can pass 5min to watch a code part no, how to set a good limit... ?

I think it's a good idea. Maybe you can provide an option for user to specify the heartbeat suspending timeout?

@OlivierMary
Copy link
Owner

Why not, by default no timeout and if need a configurable timeout.

@OlivierMary OlivierMary self-assigned this Nov 18, 2019
@OlivierMary OlivierMary added the enhancement New feature or request label Nov 18, 2019
@OlivierMary OlivierMary added this to the v1.1.0 milestone Jan 27, 2020
@johan-bjareholt
Copy link

Or if no interaction since 60sec I dont record ? Not really good You can pass 5min to watch a code part no, how to set a good limit... ?

This is how many other editor watchers do it. At least that's how I did it in aw-watcher-vim but if I remember correctly I've seen other editor watchers doing it this way too.

@tmotyl
Copy link

tmotyl commented Feb 2, 2023

According to ActivityWatch/aw-server-rust#174 (comment) this module should use heartbeat API.

@OlivierMary
Copy link
Owner

Just submit v2.0.0 to JB review when publish can you tell me if changes works for you?

@OlivierMary OlivierMary removed this from the v1.1.0 milestone Feb 2, 2023
@OlivierMary
Copy link
Owner

@tmotyl I see some issues on windows and rust server see #113 , have to wait validation of 2.0.4.

@tmotyl
Copy link

tmotyl commented Feb 4, 2023

Thanks @OlivierMary for taking care. Highly appreciated!
i will test it next days

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants