azymohliad / watchmate

PineTime smart watch companion app for Linux phone and desktop
GNU General Public License v3.0
137 stars 4 forks source link

Watch did not get Time Updated #13

Open kop316 opened 1 year ago

kop316 commented 1 year ago

Hello!

When I used the Android Pinetime sync program, it was able to sync the time to the Pinetime automatically. It would be nice if Watchmate could do the same.

EDIT: Sorry, it looks like it is a feature, but for some reason it did not happen for me. I am using PureOS Byzantium.

azymohliad commented 1 year ago

Hm.. It is a feature, yes. It's hard to say why it didn't work, I haven't seen it before. Could you try to run it from the terminal, and see if there's any error in the output?

kop316 commented 1 year ago

This is what I see

purism@pureos:~$ flatpak run io.gitlab.azymohliad.WatchMate

(watchmate:2): GVFS-WARNING **: 20:48:21.516: The peer-to-peer connection failed: Error when getting information for file “/run/user/1000/gvfsd”: No such file or directory. Falling back to the session bus. Your application is probably missing --filesystem=xdg-run/gvfsd privileges.

(watchmate:2): GVFS-WARNING **: 20:48:21.520: The peer-to-peer connection failed: Error when getting information for file “/run/user/1000/gvfsd”: No such file or directory. Falling back to the session bus. Your application is probably missing --filesystem=xdg-run/gvfsd privileges.

(watchmate:2): GVFS-WARNING **: 20:48:28.252: The peer-to-peer connection failed: Error when getting information for file “/run/user/1000/gvfsd”: No such file or directory. Falling back to the session bus. Your application is probably missing --filesystem=xdg-run/gvfsd privileges.
[INFO  watchmate::ui::devices] InfiniTime (XXXXXX) is already connected
[INFO  watchmate::ui] Device connected: XXXXXX
[INFO  watchmate::ui] PineTime recognized

(watchmate:2): Gtk-WARNING **: 20:48:53.252: Failed to fetch network locations: Timeout was reached

(watchmate:2): Gtk-WARNING **: 20:48:53.252: Failed to fetch network locations: Timeout was reached

(watchmate:2): Gtk-WARNING **: 20:48:53.255: Failed to fetch network locations: Timeout was reached
azymohliad commented 1 year ago

Hm.. I don't see any errors coming from the WatchMate directly, so guess it might be related to the GVFS warning (UPD: it's not, disregard the rest of this comment). Did you try if suggested permission helps?

flatpak run --filesystem=xdg-run/gvfsd io.gitlab.azymohliad.WatchMate

I don't yet know which dependency uses GVFS, and I'm confused why I don't get these warnings on my system then. Will investigate

azymohliad commented 9 months ago

It seems there are more people experiencing this issue. If anybody can reproduce it, could you please try running it with RUST_LOG=infinitime=debug environment variable, and see if you have the line starting from the following in the output:

[DEBUG infinitime::bluetooth::services] CharacteristicReadRequest

This would indicate that the watch is requesting the time from the companion app.

For flatpak package the full command is:

flatpak run --env=RUST_LOG=infinitime=debug io.gitlab.azymohliad.WatchMate