Extras/Amazfish

From Maemo Leste Wiki
Jump to navigationJump to search
Extras/Amazfish
202301161852.png
Status Working
Import date 2022-09-16
Leste repo https://github.com/maemo-leste-extras/mstardict
Category Category:Utilities
Packager User:Norayr

What is this.

Amazfish is an application and a daemon initially developed to connect a Sailfish OS to Amazfit Bip watches.

Later support for more watches been added. Also the developer rewrote the interface, so that the application would work on non Sailfish Linux

At the moment of writing this page, the github page lists these devices:

There are 3 tiers of supported devices:
Gold

These are devices I have, have tested and will try not to break any functioanlity for an include:

    Amazfit Bip
    Amazfit GTS
    Amazfit GTR2
    Pinetime Infinitme
    Bangle.js

Silver

These are devices which are properly implemented in the application, but I do not have and are tested by the commuity, and include:

    Amazfit BipS
    Amazfit Bip Lite
    Amazfit GTS2

I do not promise not to break funcaionality in these, but will fix where I can
Bronze

These are devices which use a protocol that is close to another suppored device, and so is treated like that device. Your mileage may vary with these devices.

    MiBand 2/3/4
    Amazfit Cor

Install

find in Application manager

Amazfish in ham 202301141803.png

or

apt-get install harbour-amazfish

and this is it:

Amazfish icon 202301141810.png

How to pair

Run the service:

/usr/libexec/amazfish-launcher

run the app from the menu, or, it would be good to run it for the first time also in console to see the output:

/usr/libexec/amazfish-ui-launcher

On droid4, the window doesn't fit on the screen, so it may make sense to run the program with ssh X forwarding.

Though on droid4, the author of this article was not able to pair the Amazfish Bip watch: the watch connects and disconnects, shows a warning 'Disconnected', and this is visible in the output of terminal running amazfish daemon:

Droid4 amazfish pairing failed 202301161800.png

and the amazfish app outpit is:

void DaemonInterface::changeConnectionState()
void DaemonInterface::changeConnectionState()
void DaemonInterface::changeConnectionState()
void DaemonInterface::pair(const QString&, QString)
kf.bluezqt: PendingCall Error: "No discovery started"
void DaemonInterface::changeConnectionState()
qml: pairing
void DaemonInterface::changeConnectionState()
void DaemonInterface::changeConnectionState()
qml: disconnected
void DaemonInterface::pair(const QString&, QString)
void DaemonInterface::pair(const QString&, QString)
void DaemonInterface::changeConnectionState()
void DaemonInterface::changeConnectionState()
qml: pairing
void DaemonInterface::changeConnectionState()
void DaemonInterface::changeConnectionState()
qml: disconnected

Now the app started, and at first start will ask to write a name and configure your profile. On Pinephone, at the time of writing this article, it was not possible to write in the name field without the hardware keyboard.

202301161835.png

Then on the main application screen tap on 'Pair watch'. If it shows 'Unpair', tap on 'Accept', and then choose 'Pair watch' again.

202301161836.png

You'll see list of watches. I chose Amazfit Bip.

202301161837.png

Tap 'Scan devices'.

202301161838.png

Without this though we see the running circle, the watch won't be found. When you see the watch, tap on it, or 'Stop scan' and then choose the watch.

202301161839.png

You should get the pairing request on the watch.

(btw, the hardware address of the watch is autogenerated upon every reset)

202301161840.png

If you didn't, that's okay. The Amazfish shows the main screen again, and 'Disconnect from watch' in the upper right corner. That means it thinks everything is right and the watch is connected. Tap on 'Disconnect the watch', and then to 'Connect', at that moment you may get a pairing request on the watch.

20230116 184201 -fujichrome-sensia-400-exp-2011.jpg

If not, repeat the whole sequence again: unpair, and try pairing again.

How to use

When the watch paired and connected, try to go to settings, then debug, then tap on buttons that show test notifications.

Notifications routed via libnotify should be shown from all applications.

Tap on 'Data grahps' and then 'Download data' - that would connect and download the recent statistics from the watch. Important: it may not show downloaded data! tap on arrow right, to see the next day, then arrow left to see the current day. Now the data will be there!

202301161852.png

Other links