Alwinator / aw-watcher-utilization

An Activity Watch watcher that monitors CPU, RAM, disk, network, and sensor usage.
Mozilla Public License 2.0
65 stars 2 forks source link

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

Open Naereen opened 9 months ago

Naereen commented 9 months ago

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.

Alwinator commented 8 months ago

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

Naereen commented 8 months ago

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.
Alwinator commented 8 months ago

@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?