[Amazfit] lfom:
​

Compatible with Pace/Stratos/Verge(/Nexo?)

Requirements

Install APK on watch, enable widget (it can be opened from apps list too, but it will display only the Settings page, so no weather info);

Amazfit Internet Companion app or AmazMod 1.1.8-build 215 or newer (available in bleeding edge downloads only as of now, see notes below) installed on phone.

v2.0 does not require Internet Companion anymore.

How it works

sunrise/sunset times are updated automatically, once a day it needs Amazfit Internet Companion service running on phone, and the phone must have access to the internet, of course;

new in v2.0: sunrise/sunset times now use you actual altitude from GPS data, so it should be more accurate;

weather is updated automatically, the data is from the watch/Amazfit itself as well as the name of the city shown in settings;

new in v2.0: moon age and phase are displayed in the widget, it's also updated once a day. It's based on the Julian Day since the last new moon, do not expect it to be very precise but it's a good approximation;

new in v2.0: the moon icon representing the moon phase is rotated to reflect your actual latitude, so it should be very close to the actual moon you see in that day/night (tap the yellow icon to get a list of the moon phase names - in English - used);

you only need to update GPS data if you have changed your location A LOT (sunrise/sunset won't change unless you move many kilometers away from your old location);

the date shown on widget is the last time sunrise/sunset times were updated, and on GPS page is the last time you updated GPS data.

If you have used GPS recently on watch, it will grab you last known position on the GPS page, then try to get a fix for a few seconds (it only works if you are outdoors, of course). So you don't need to be outdoors to update the GPS data, if you have recorded an activity recently or used the compass (the page with air pressure) then it will record your last known position until you restart the watch.

If you are using Verge or some firmware versions that limits the number of widgets, then you will need to use AmazMod or AmazeLauncher to enable and re-sort the widgets list. Another option is Widget Settings app, but it won't make the changes permanent.

PS: iOS users can still install/use the widget with the weather info only. If there are enough people willing to donate, I may create a version that uses standard WiFi connection from watch to fetch sunrise/sunset times.

Acknowledgements

[MENTION=3563640]Quinny899[/MENTION]: springboard plugin and Amazfit Internet Companion sources;

[MENTION=3668555]GreatApo[/MENTION]: GreatFit weather code;

Huami: weather data (known bug: it seems that UV index is broken as of now);

http://sunrise-sunset.org for the data in v1.0;

Carmen Alvarez: Java calculation of sunrise/sunset times - https://github.com/caarmen/SunriseSunset;

WikiPedia: resource info about sunrise/sunset and moon phase calculation.

You can donate to keep this and other projects I have:

http://ko-fi.com/lfomartins

PayPal - lfomartins[at]aim.com

or using the button below my name on XDA.

Thanks!

Download link (Mega) v2.0

https://mega.nz/#!gfI2QIKJ!03l28Wd3Vq1d_7-6oTxPWKXgAgjKkxvUIbn8eGaWZr0

SHA1SUM: 3FB82C986D817A42DCE0511B6F06A5110E5605B0

Enjoy! :cool:

Download link, screenshots and more info for the previous version (v1.0)

https://mega.nz/#!9SwRGaCA!ECYgrgM_kzBI9Ju-PGhGrCrbd8rBRtqzlvL_ARKhT8U

Amazfit Internet Companion app by Quinny899:

https://github.com/KieronQuinn/AmazfitInternetCompanion

AmazMod Bleeding Edge build (unstable):

https://github.com/AmazMod/AmazMod/releases/tag/edgy

If you want to install Bleeding Edge build, you must uninstall both apps from phone and watch first, as it does not use the same signature as the PlaysStore version. Remember to backup your settings first!

​