Alwinator / aw-watcher-utilization

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

Error - Activity Watch unable to start aw-watcher-utilitzation #7

Closed danrthompson closed 1 year ago

danrthompson commented 1 year ago

FYI I use a Mac.

I followed all of the installation instructions

  1. Unzipped the folder
  2. Moved it to ~/Library/Application Support/activitywatch/aw-watcher-utilization/ (as in the directory is in ~/Library/Application Support/activitywatch/
  3. Added aw-watcher-utilization to ~/Library/Application\ Support/activitywatch/aw-qt/aw-qt.toml. I've included the entire contents of the file at the bottom.
  4. I restarted Activity Watch

After those steps, it wasn't showing up in the modules, so I checked the logs. Here is the relevant statement:

2022-12-21 12:44:28 [ERROR]: Manager tried to start nonexistent module aw-watcher-utilization  (aw_qt.manager:265)

I triple checked that the directory in ~/Library/Application Support/activitywatch/ is named the same as the name in the aw-qt.toml file.

Is there anything else that needs to be done for Activity Watch to see the program?

Please let me know if you need any additional information.

For reference, here is the entire contents of the aw-qt.toml file:

[aw-qt]
autostart_modules = ["aw-server", "aw-watcher-afk", "aw-watcher-window", "aw-watcher-utilization"]

[aw-qt-testing]
autostart_modules = ["aw-server", "aw-watcher-afk", "aw-watcher-window", "aw-watcher-utilization"]

For reference, here are the entire contents of the logs:

2022-12-21 12:44:28 [INFO ]: Started aw-qt...  (aw_qt.main:53)
2022-12-21 12:44:28 [INFO ]: Found 4 bundled modules  (aw_qt.manager:85)
2022-12-21 12:44:28 [INFO ]: Found 0 system modules  (aw_qt.manager:119)
2022-12-21 12:44:28 [ERROR]: Module aw-watcher-utilization not found  (aw_qt.manager:273)
2022-12-21 12:44:28 [INFO ]: Starting module aw-server  (aw_qt.manager:148)
2022-12-21 12:44:28 [INFO ]: macOS: Disable dock icon  (aw_qt.manager:162)
2022-12-21 12:44:28 [INFO ]: Starting module aw-watcher-window  (aw_qt.manager:148)
2022-12-21 12:44:28 [INFO ]: macOS: Disable dock icon  (aw_qt.manager:162)
2022-12-21 12:44:28 [ERROR]: Manager tried to start nonexistent module aw-watcher-utilization  (aw_qt.manager:265)
2022-12-21 12:44:28 [INFO ]: Starting module aw-watcher-afk  (aw_qt.manager:148)
2022-12-21 12:44:28 [INFO ]: macOS: Disable dock icon  (aw_qt.manager:162)
2022-12-21 12:44:28 [INFO ]: Creating trayicon...  (aw_qt.trayicon:206)
2022-12-21 12:44:28 [INFO ]: Initialized aw-qt and trayicon successfully  (aw_qt.trayicon:262)
danrthompson commented 1 year ago

Nevermind, I solved it

danrthompson commented 1 year ago

The Data folder listed on the activity watch documentation is incorrect. Basically, at ~/Library/Application Support/activitywatch/ you need to create a directory aw-watcher-utilization with a aw-watcher-utilization.toml file in it (doesn't need contents), but the aw-watcher-utilization directory from the repo should go in /Applications/ActivityWatch.app/Contents/MacOS/

Alwinator commented 1 year ago

Thank you for noticing! Since the issue is in the Activity Watch documentation, it would be great if you could create an issue here, so that it can be solved in the future.