Closed erngab closed 1 year ago
I'm currently struggling with this as well. Did you happen to find a way to set it up @erngab?
I haven't found a solution.
@erngab @MarshMello0 The static content of aw-watcher-utilization will probably not work with the current version because it was my PoC implementation of how the "custom-visualization" feature could look like. Afterward, the ActivityWatch team changed some things before merging it.
See the feature request: https://github.com/ActivityWatch/activitywatch/issues/453 And the pull request: https://github.com/ActivityWatch/aw-server/pull/83
To summarize: Instead of having a URL/GET Variable that includes the data, you need to use the Activity Watch Client and only get the timespan from the URL parameters.
Unfortunately, I had no time to implement the new version for aw-watcher-utilization, however, that would be a nice and simple pull request, if you have time. :) I would love to merge it!
You can find a working example of a custom visualization here (PR of visualization: https://github.com/ActivityWatch/aw-watcher-input/pull/12)
Is there a chance this gets implemented sometime?
@BLACK4585 I will try to find time in the next few days.
@erngab @MarshMello0 @BLACK4585
I've successfully implemented visualizations for aw-watcher-utilization. (https://github.com/Alwinator/aw-watcher-utilization/commit/b6449bd26b9a22ed5fd79db98ba4c8307934fc3a)
You can now follow my guide on how to set them up for you. Make sure you have the new v1.2.0 version installed.
Unfortunately, for now, there is only the cpu_percent
visualization because I cannot add more before this PR is merged: https://github.com/ActivityWatch/aw-webui/pull/475
@ErikBjare Feel free to use my watcher as an example. I tried to keep the visualization as simple as possible by only using plain HTML. (Instead of setting up a whole project with Vue or Webpack)
@Alwinator Excellent work! I decided to mention it in the docs: https://github.com/ActivityWatch/docs/commit/369bcb8d51f09530f48010f420da34ba2d0cbd64
@ErikBjare That's a great idea, thanks! :)
Windows 10
In ActivityWatch I add Custom Visualization Watcher name: aw-watcher-utilization Visualisation title: Utilization
It doesn't start, text appears in its place:
Static content: index.html of watcher: aw-watcher-utilization not found!
Log file in aw-watcher-utilization folder: