aw-watcher-utilization icon indicating copy to clipboard operation
aw-watcher-utilization copied to clipboard

index.html plot is weird and very tiny, most probably bugged

Open Naereen opened this issue 1 year ago • 3 comments

Hi there, I managed to install your ActivityWatch plugin, and it works well to report data. I think there is a bug in the index.html file though. Here is what the plot looks like, after precisely following the instructions from https://github.com/Alwinator/aw-watcher-utilization?tab=readme-ov-file#custom-visualizations Capture d’écran_2024-02-19_00-05-03 It's all skewed on a specific time, and does not show a nice plot with different point like on your example.

Thanks in advance, if you have time to investigate this issue. I'm available to test any change to the index.html or to answer any question you could have regarding this issue. Regards, -- @Naereen.

Naereen avatar Feb 18 '24 23:02 Naereen

Are there any error logs from Activity Watch or in the browser console?

Alwinator avatar Mar 07 '24 07:03 Alwinator

Hi there @Alwinator :) In the browser console I got the following message:

Unchecked runtime.lastError: The message `aw-watcher-utilization/:1` port closed before a response was received.

And maybe the next error message also concerns aw-watcher-utilization:

inject.js:1 [Deprecation] Listener added for a synchronous
'DOMNodeInserted' DOM Mutation Event.
This event type is deprecated (https://w3c.github.io/uievents/#legacy-event-types)
and work is underway to remove it from this browser.
Usage of this event listener will cause performance issues today,
and represents a risk of future incompatibility.
Consider using MutationObserver instead.

Naereen avatar Mar 07 '24 08:03 Naereen

@Naereen Thank you your quick reply, for me it looks like this issue is more related to Activity Watch than to my watcher.

@ErikBjare Do you have any ideas what the root cause could be here?

Alwinator avatar Mar 07 '24 08:03 Alwinator