UBports Robot Logo UBports Forum
    • 版面
    • 最新
    • 標籤
    • 熱門
    • 使用者
    • 群組
    • 搜尋
    • 註冊
    • 登入

    Smartwatch sync app

    已排程 已置頂 已鎖定 已移動 App Development
    107 貼文 22 Posters 39.6k 瀏覽 10 Watching
    正在載入更多貼文
    • 從舊到新
    • 從新到舊
    • 最多點贊
      回覆
      • 在新貼文中回覆
      登入後回覆
      此主題已被刪除。只有擁有主題管理權限的使用者可以查看。
      • jihoJ 離線
        jiho
        最後由 jiho 編輯

        Warning: I removed gattool support from the latest builds. This causes devices on stable to not be able to communicate to the paired watches as the current BlueZ (bluetoothctl) version is not able to send GATT commands.

        Working build for xenial which includes support for gatttool: https://gitlab.com/jiiho1/uwatch/uploads/c4dd2cffae019106bebab9641f69c4b1/uwatch.jiho_0.1_all.click

        What works:

        • Searching and adding devices from within the app (to connect the device automatically, use System Settings)
        • Sync time on the watch upon connecting
        • Sync battery level
        • Sync heart rate
        • Sync firmware version
        • Sync device name
        • Sync hardware revision
        • Sync steps (available in firmware version 1.7.0 and higher)
        • Graphs to display synced data over time
        • Automatically fetch data regularly

        Things I want to implement or things I'm currently working on:

        • Calculate burnt calories (will be calclated by steps per day)
        • Notifications
        • Music controls
        • (Maybe an indicator)

        Also I am currently focusing on the PineTime with InfiniTime.

        Source code: https://gitlab.com/jiiho1/uwatch
        uGatt: https://gitlab.com/jiiho/ugatt (GattTool for Ubuntu Touch)

        1 條回覆 最後回覆 回覆 引用 14
        • TotalSonicT 離線
          TotalSonic
          最後由 TotalSonic 編輯

          The start looks great. What watches running what operating systems is your app going to be compatible with? There is currently the Telescope app that works very well for syncing to smart watches running Asteroid OS (I use it with my LG G Watch R and Urbane) - and RockWork which syncs to Pebble watches as well.

          Best regards,
          Steve Berson

          1 條回覆 最後回覆 回覆 引用 0
          • jihoJ 離線
            jiho
            最後由 編輯

            Currently I am working with a PineTime with InfiniTime installed.

            This is actually my first attempt to write an app that communicates with smartwatches, so I have no idea how the communication usually happens between the watch and the phone/computer.

            As long as the device is using BLE some form of communication should be possible at least.

            I was also looking into ways to communicate with wearOS watches and Fitbit devices.
            I haven't put a lot of thoughts into them yet though...

            1 條回覆 最後回覆 回覆 引用 1
            • M 離線
              magnargj
              最後由 編輯

              @jiho just received my pinetime, and just want to express my hopes and enthusiasm for your work! 😎

              Volla 22, Xiaomi Mi A2, Nexus5 (backup)

              jihoJ 1 條回覆 最後回覆 回覆 引用 0
              • J 離線
                Josué
                最後由 編輯

                I'm waiting to have a companion app for pinetime :beaming_face_with_smiling_eyes:
                Looks like the gitlab links are broken or you have a closed profile. I hope you have sucess with the app. I'll keep an eye here 🙂

                jihoJ 1 條回覆 最後回覆 回覆 引用 0
                • MoemM 離線
                  Moem
                  最後由 編輯

                  I use Rockwork myself, which works with Pebble watches, and I can confirm that having a good app that allows using a smartwatch on UT is all kinds of awesome.
                  Keep on keeping on, you will certainly help make UT more popular!

                  Is currently using an Op5t
                  Also owns an Op1, a BQ E4.5 and an Xperia X, as well as a BQ tablet and a Pinetab2. Please, someone... make it stop.

                  1 條回覆 最後回覆 回覆 引用 0
                  • jihoJ 離線
                    jiho @Josué
                    最後由 編輯

                    @josué thank you very much!
                    I don't know what's wrong with the links... I made them publicly available. Please try that one: https://gitlab.com/jiiho/uwatch/-/tree/main

                    I too hope that I'll be able to create an app that is actually usable. It is my very first QML app (and Open Source project), so I'll see how it goes.

                    J 1 條回覆 最後回覆 回覆 引用 0
                    • O 離線
                      OhneZ
                      最後由 編輯

                      Very good work.
                      You have my respect.
                      At the moment I am using Sailfish OS. There is the app (in open repos) Amazfish.
                      PineTime is also being developed there.
                      Maybe you can get help there if you need it. Maybe Amazfit devices would also be interesting for you.

                      jihoJ 1 條回覆 最後回覆 回覆 引用 0
                      • J 離線
                        Josué @jiho
                        最後由 編輯

                        @jiho It already works. Thanks!

                        1 條回覆 最後回覆 回覆 引用 1
                        • jihoJ 離線
                          jiho @OhneZ
                          最後由 編輯

                          @ohnez I would love to be able to support Amazfit devices! Unfortunately I don't have one so I either need help here or I might get one later.

                          1 條回覆 最後回覆 回覆 引用 0
                          • jihoJ 離線
                            jiho @magnargj
                            最後由 編輯

                            @magnargj Thanks! If you'd like to try it out, the CI in gitlab should work now.

                            M 1 條回覆 最後回覆 回覆 引用 0
                            • M 離線
                              magnargj @jiho
                              最後由 編輯

                              @jiho Fantastic! Thanks. I was able to install the click package sucessfully, but the app seems to struggle with pairing with the watch. I suspect something is wrong with the bluetooth functionality of the phone. I'm investigating eagerly...

                              Volla 22, Xiaomi Mi A2, Nexus5 (backup)

                              jihoJ 1 條回覆 最後回覆 回覆 引用 0
                              • jihoJ 離線
                                jiho @magnargj
                                最後由 編輯

                                @magnargj Which firmware version is currently installed on your PineTime? I also have troubles connecting to a PineTime with InfiniTime 1.3.0. Neither the system settings nor my app are able to connect.

                                M 1 條回覆 最後回覆 回覆 引用 0
                                • M 離線
                                  magnargj @jiho
                                  最後由 編輯

                                  @jiho it's 1.3.0. And I manage to connect to other bluetooth devices such as my wife's headphones... So, I think there might be the firmware... It works with my pinephone and siglo... Curtently waiting for the battery to drain sice I managed to send it into a never ending bootloop yesterday 😂

                                  Volla 22, Xiaomi Mi A2, Nexus5 (backup)

                                  1 條回覆 最後回覆 回覆 引用 0
                                  • LakotaubpL 離線
                                    Lakotaubp
                                    最後由 編輯

                                    @jiho Have a PineTime on the way now so will give this a try when it arrives.

                                    B jihoJ 2 條回覆 最後回覆 回覆 引用 -1
                                    • B 離線
                                      bradman1171 @Lakotaubp
                                      最後由 編輯

                                      @lakotaubp Did you get any luck?

                                      I have a Pixel 3a Ubuntu Touch and I am very interested in getting a pinetime as a smartwatch when its finished or workable!

                                      LakotaubpL 1 條回覆 最後回覆 回覆 引用 0
                                      • LakotaubpL 離線
                                        Lakotaubp @bradman1171
                                        最後由 編輯

                                        @bradman1171 Only just dispatched from China.S o still waiting.

                                        1 條回覆 最後回覆 回覆 引用 0
                                        • jihoJ 離線
                                          jiho @Lakotaubp
                                          最後由 jiho 編輯

                                          @lakotaubp Very nice!
                                          Be aware though that UT does not seem to be able to connect, if the firmware version 1.3.0 is installed.

                                          Many things are not yet implemented, but I am getting there. OTA support and notifications will probably be the next things I'm going to implement.

                                          M LakotaubpL 2 條回覆 最後回覆 回覆 引用 1
                                          • M 離線
                                            magnargj @jiho
                                            最後由 編輯

                                            Hey @jiho ! Which firmware version do you use? I guess 1.2 is second best, when 1.3 doesn't work?

                                            Volla 22, Xiaomi Mi A2, Nexus5 (backup)

                                            jihoJ 1 條回覆 最後回覆 回覆 引用 0
                                            • H 離線
                                              heyspencerb
                                              最後由 編輯

                                              @jiho Are you willing to take pull requests? I was actually thinking about trying to make my own version of this app but then I found out you're already pretty far in! I have an PineTime and Pixel 3a with UT, and I also have a lot of experience with C++.

                                              jihoJ 1 條回覆 最後回覆 回覆 引用 2
                                              • 第一個貼文
                                                最後的貼文