You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To test syncing real events to a sync folder which can then be pulled from, we will use some helper scripts to do the following:
20
20
21
-
1.`./test-sync.sh`
21
+
1.`./test-sync-push.sh`
22
22
- Creates a sync directory **for you to set up sync** with Syncthing/Dropbox/Gdrive/rclone/whatever
23
23
- By default `~/ActivityWatchSync`
24
24
- Creates a datastore for the current host in the sync folder
@@ -27,13 +27,16 @@ To test syncing real events to a sync folder which can then be pulled from, we w
27
27
2.`./test-server.sh`
28
28
- Starts a testing server **on port 5667** using a temporary directory as datastore (`/tmp/...`)
29
29
30
-
3.`./test-import-sync.sh`
30
+
3.`./test-sync-pull.sh`
31
31
- Imports all the events from sync folder into the testing server on port 5667
32
32
33
33
4. You should now have all events synced to a local testing instance!
34
34
- You can browse [127.0.0.1:5667](http://127.0.0.1:5667) to view testing instance, where you'll see events from synced all hosts.
35
35
- You can now set up syncing for `~/ActivityWatchSync` on more devices, and on each one use the script `./test-sync.sh` to push their events into the sync folder, then run `./test-import-sync.sh` on the device where you have the testing instance to update the data there.
36
36
37
+
5. To view data from all devices at once, go into [127.0.0.1:5667/#/settings](127.0.0.1:5667/#/settings) and check the "Use multidevice query" checkbox (near the bottom, under "developer settings").
38
+
- You can now navigate back to the activity view for any device, where you should see data from multiple devices being included in (most of) the visualizations.
39
+
37
40
In the end, You should get something like this: https://twitter.com/ErikBjare/status/1519399784234246147
0 commit comments