Skip to content

Add Moving Time and Clock tiles to companion floating window - #4849

Open
cagnulein wants to merge 2 commits into
masterfrom
floating-moving-time-clock
Open

Add Moving Time and Clock tiles to companion floating window#4849
cagnulein wants to merge 2 commits into
masterfrom
floating-moving-time-clock

Conversation

@cagnulein

Copy link
Copy Markdown
Owner

Summary

  • The companion AI floating window (src/inner_templates/floating/floating.htm, used to mirror QZ metrics onto a second phone e.g. with MyWhoosh) only rendered a subset of the tiles available in the main app's tile picker.
  • tile_moving_time_enabled/tile_moving_time_order and tile_datetime_enabled/tile_datetime_order already existed as settings but had no corresponding row/handling in the floating page, so those two tiles never appeared on the mirrored screen even when enabled on the main device.
  • This adds the missing rows and wiring:
    • Moving Time: new row, fetched from the existing moving_s/moving_m/moving_h fields already present in the workout websocket payload (templateinfosenderbuilder.cpp), respects enable/order settings.
    • Clock: new row, rendered from the local device clock (Date()) and refreshed every second client-side, respects enable/order settings.
  • No C++/backend changes needed — moving_s/m/h were already being sent, and settings are fetched generically by key.

Test plan

  • Opened floating.htm in a browser and visually verified the two new rows render, including a self-updating Clock.
  • Manual test on device: enable "Moving Time" and "Clock" tiles in QZ, open the companion app on a second device, confirm both tiles show and update, and confirm they disappear when disabled in settings.

These tiles already exist in the main app's tile picker (tile_moving_time_*,
tile_datetime_*) but were never wired into the floating.htm mirror used by
the companion AI app on a second device, so they never showed up there.
Same gap as floating.htm: hfloating.htm (horizontal bar variant) has its
own duplicated table/bar rendering logic and was missing these two tiles
in both the full table panel and the quick horizontal bar.
@cagnulein

Copy link
Copy Markdown
Owner Author

https://github.com/cagnulein/qdomyos-zwift/actions/runs/30171048813

Google is very slow in these days, reviewing the app on the store, even the beta ones. For this reason, in order to check right now if the patch that I did is right, you can use the android build in the link (check at the bottom of the page in about 1 hour). In order to test it you need first to remove the current QZ version on your phone, install the one that you downloaded.
This version is a 15 minutes trial (you can restart it as many times as you want) and I can unlock it if you want, send me an email to roberto.viola83@gmail.com mentioning this ticket and that you are on android.
Let me know if you have any questions

@stale

stale Bot commented Aug 16, 2026

Copy link
Copy Markdown

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale Bot added the wontfix This will not be worked on label Aug 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

wontfix This will not be worked on

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant