activitywatch icon indicating copy to clipboard operation
activitywatch copied to clipboard

Change how hostname/devices work

Open ErikBjare opened this issue 6 years ago • 3 comments

A few things we should consider changing:

  • [x] Every device/installation should have a unique ID (a UUID) that does not change if the hostname is changed.
    • Completed in https://github.com/ActivityWatch/aw-server/pull/61 and https://github.com/ActivityWatch/aw-server-rust/pull/69
  • [ ] If a bucket is created with a special hostname/UUID "local" or similar then it should default to the hostname/UUID of the running instance.
    • Or it should be the responsibility of the watcher to retrieve the UUID from /api/0/info and use it during bucket creation. Although defaulting to the local value seems like better API ergonomics (and would maybe make migration easier).
    • As an example, it is required for the web watcher to work properly with sync (see https://github.com/ActivityWatch/activitywatch/issues/307)
  • [ ] Additionally, we might want to move the hostname (later UUID) bucket attribute into the data field of buckets. This would impose specific semantics on the data field of buckets (which we currently lack) so might need further discussion (i.e. which data attributes are reserved for internal use in aw-server?)

Originally discussed here: https://github.com/ActivityWatch/aw-server-rust/issues/61#issuecomment-531687577

ErikBjare avatar Sep 16 '19 08:09 ErikBjare

Another thing, we might want to make buckets user-specific on platforms which have multi-user support. See this forum post https://forum.activitywatch.net/t/add-windows-username-to-bucket/374/2

johan-bjareholt avatar Oct 04 '19 21:10 johan-bjareholt

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Apr 24 '20 16:04 stale[bot]

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Oct 21 '20 21:10 stale[bot]

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Apr 21 '21 02:04 stale[bot]

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Apr 25 '22 01:04 stale[bot]

One problem i have (and maybe its related to this):

I have two buckets, on is [name-of-my-macbook].local and the other [name-of-my-macbook].fritz.box

I guess the issue is the following: when i start my macbook with lan-connection plugged in, i get another host name (and also another Bucket, if i understand that right) as i get when im connected via wifi. Am i able to avoid that?

Thx so much. You made a great tool!

nilsbentlage avatar Jan 18 '23 09:01 nilsbentlage

I also had this problem and this helped me: https://github.com/ActivityWatch/activitywatch/issues/554#issuecomment-1114200180

BelKed avatar Jan 18 '23 10:01 BelKed