[Amazfit] GreatApo:
Timeline Widget (Pace/Stratos/Verge)​

DEPRECATED - THIS WIDGET IS COMPLETELY INTEGRATED IN AMAZFIT CALENDAR WIDGET​

Hello everyone,

Here is an other widget, this time a Timeline! Yes, this widget shows your upcoming calendar events! This app would be displayed as a widget after you reboot your watch (or the launcher). However, in order for it to work, you need to use Amazmod (both phone app + service) and enable the calendar events forwarding. Additionally, make sure your phone's STOCK Calendar has all the events you want to show, synchronized. In order to move this widget you will need [MENTION=3563640]Quinny899[/MENTION] 's "Springboard Settings" app from here since it can't be moved through the phone app.

.

If you want to support my work or the other devs involved, now is your chance to buy us a beer or help us gather the money for our next watch device:

- GreatApo's donation button

- Amazmod OpenCollective

- Quinny899 donation button

Screenshot:

View attachment 4695604 View attachment 4695609 View attachment 4695610​

Features:

This is a Pace/Stratos/Verge Widget

Shows your phone calendar events

Shows only future events and from the last 10 minutes

Go to start of the list button (▲)

Long press time at top to manually refresh the events list (provided that new data have been send from phone)

12/24h time format based on watch preferences

Bugs:

You tell us!

Timer at the top is not constantly updating :P

Installation

ADB install command / restart launcher: (if you have errors, uninstall the previous version first)

adb install -r TimelineWidget.X.X.X.apk
adb shell am force-stop com.huami.watch.launcher

If you are on Verge, you need to enable the widget using "Springboard Settings" app from Quinny899 or Amazmod. If the widget does not show up, reboot the watch and try again.

ADB uninstall command:

adb uninstall com.dinodevs.timelinewidget

ADB command to delete calendar data from watch:

adb shell settings delete system CustomCalendarData

Changelog:

Version 1.0.2 (02/02/2019)
• 12/24h time format based on watch preferences
• The "go to top" button touch area is now bigger
• Added "all day" event duration duration
• Fix crash when data never saved

Version 1.0.1 (28/01/2019)
• Removed annoying "Refreshing events..." toast
• Added "No events" message

Version 1.0.0 (24/01/2019)
• Initial release
• Shows calendar events from 10 min ago to ∞
• "Go to top" button
• Click time/date at top to see author/version
• Long click time/date at top to refresh the events

Download:

Latest version download (link)

Sources (Github link)

This app is based on [MENTION=3563640]Quinny899[/MENTION] 's work over springboard widgets :highfive: . The source code is written with comments so you can use it as a base to create an other widget. For more about how to set up a widget/app for Pace, you can also follow this topic "[DEV] Create custom home screen pages for the Pace".​

FAQ:

Can I get reminders from this widget?

No since your calendar phone app can/will throw notifications that will then be forwarded to the watch. Hence, there is no need for reminders.

What is the battery impact?

Data are send through Amazmod's battery and alarm data forwarding, but calendar data updated only if there is a change (but also once a day). Hence, you will not see any difference relative to forwarding batttery/alarm only.

I have the [INSTALL_FAILED_UPDATE_INCOMPATIBLE] error!

Run the uninstall command from adb first. (don't uninstall with Amazfit Tools)

I see a black widget!

This indicates a widget crash. I may not be aware of the problem, so, a logcat will help me fix it.

To save LogCat to a text file open up a terminal window and type: (it will create a file named "logcat.txt" in your current directory)

adb logcat -d > logcat.txt

Thanks to:

Quinny899, edotassi, lfom, diotto