# TaM Montpellier integration: proposal to make the „Departures“ widget more readable

**URL:** <https://community.gladysassistant.com/t/integration-tam-montpellier-proposition-pour-rendre-le-widget-departs-plus-lisible/11537>\
**Category:** Développement\
**Created:** [November 9, 2026, 9:27am UTC](https://community.gladysassistant.com/t/integration-tam-montpellier-proposition-pour-rendre-le-widget-departs-plus-lisible/11537 "2026-11-09T09:27:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [November 9, 2026, 9:27am UTC](https://community.gladysassistant.com/t/integration-tam-montpellier-proposition-pour-rendre-le-widget-departs-plus-lisible/11537/1 "2026-11-09T09:27:04Z")

</div>

Hi @Will_71,

Thanks for the TaM integration!

I found the « TaM Departures » widget a bit hard to read at a glance. Each line chained 4 to 6 numbers with a single unit at the end, mixed with times. For example `1 · 15 · 31 · 46 min · 11:07`. And a next-day entry just appeared as `04:50`: seen at 10:07 AM, one could think it was already past.

So I opened a PR: [#2](https://github.com/William-De71/gladys-tam-montpellier/pull/2)

What it changes:

| Before | After |
| --- | --- |
| `1 · 15 · 31 · 46 min · 11:07` | `1 min · 15 min` |
| `Approaching · 15 · 30 · 45 min` | `Approaching · 15 min` |
| `9 min · canceled 23:23 · 23:53` | `9 min · canceled 23:23` |
| `04:50` (seen at 10:04) | `tomorrow 04:50` |

- The **next two departures** for each line, like on the screens at the stops, each with its unit. Beyond one hour of waiting, the time is displayed.
- **The day** when the departure is on another day: « tomorrow 04:50 », then the day of the week beyond. A night bus at 00:30 seen at 22:44 remains « 00:30 », since it’s the same service day.
- **Canceled trips** are still displayed, and the line still turns orange.

No identifiers or settings change, so nothing to reconfigure for users. Tests, ESLint, and Prettier pass. The docs for the four languages are up to date, and the widget images have been regenerated.

If you prefer three departures instead of two, or another format, let me know and I’ll adapt. It’s a constant to change.

Thanks again for the work on this integration 🙏

---

<div class="post-metadata">

**Author:** ![Will\_71](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/will_71/32/9582_2.png) [@Will\_71](https://community.gladysassistant.com/u/Will_71)\
**Post date:** [November 9, 2026, 10:10am UTC](https://community.gladysassistant.com/t/integration-tam-montpellier-proposition-pour-rendre-le-widget-departs-plus-lisible/11537/2 "2026-11-09T10:10:25Z")

</div>

Okay, I’ll check it out tonight
