Widget movie release

« Movie Releases » Widget for Gladys Assistant

In a nutshell

A new Gladys dashboard widget that displays upcoming movie releases in theaters, in the form of a poster grid — in the spirit of the weather widget already present in the app.

How it works

The widget is configured in two steps:

  1. Integrations → TMDB API: paste a TMDB API key (free, takes 2 minutes to create).

  2. On the dashboard, Edit → + → Movie Releases, and choose the period to display: 15 days, 1 month, or 2 months.

Each poster is clickable and opens a detail window: synopsis, full release date, a « Watch Trailer » button (YouTube, new tab), and a link to the TMDB page.

The widget follows the account language (French, English, German): titles, synopses, and trailers are displayed in the user’s language, with an automatic fallback to English when TMDB has no translation for a lesser-known film.

Data is cached for 30 minutes on the server side to avoid querying TMDB every time the dashboard is opened.

What the widget doesn’t do (yet)

The original idea also included showtimes at the nearest cinema via AlloCiné. This part is set aside for now: the unofficial AlloCiné API no longer responds (the domain doesn’t even resolve anymore). Without a reliable data source for cinema showtimes, this part remains to be found — one option would be to look at a specific chain (UGC, Pathé, CGR…) rather than an aggregator.

Any ideas?

Is it worth pushing further? A few ideas already on the table, to prioritize or discard:

  • a rating (:star: TMDB) directly on the poster
  • a genre filter (action, comedy…) in the widget config
  • find a reliable source for showtimes at a specific cinema
  • a scene trigger

Any other idea is welcome.

I love the idea! Thanks :+1:

Gladys and external integrations, it’s a party :tada:

So in this case it can’t be external because the widget doesn’t exist :slight_smile:

Wait but can you also develop your own Widgets too? :scream:

It will be a native external integration ahah ^^’

@pierre-gilles
integration: https://github.com/GladysAssistant/Gladys/pull/3061
documentation: Add TMDB integration documentation by vincentBesseau · Pull Request #409 · GladysAssistant/v4-website · GitHub
sdk: feat: add "movies" type support (onMoviesGetUpcoming, contract B.19) by vincentBesseau · Pull Request #32 · GladysAssistant/integration-sdk-js · GitHub
integration-store: Add "movies" manifest type and movies_supports_region_and_period by vincentBesseau · Pull Request #11 · GladysAssistant/integration-store · GitHub

The widget is like the weather one, if a service is added (TVDB for example), it could use this widget.

widget configuration:

I started making a gladys-UGC, gladys-pathe, gladys-cgr that uses this widget and I quite like the idea of having the day’s sessions for my selected cinema in gladys :grin:

They are waiting for PRs and will be released right after :sweat_smile:

:eyes:

I’ll stop here on this topic and wait for PG’s feedback on the PRs:
Future integration pending:

new trigger (with title variable, provider, schedule summary, trailer link and link to book your seat)

example:

L’ODYSSÉE at UGC: 14:00 VF, 15:45 VOSTF, 16:00 VF, 19:15 VF, 19:30 VOSTF — https://fr.vid.web.acsta.net/nmedia/33/26/05/05/09/51/20637522_hd_013.mp4 – https://www.ugc.fr/film.html

Following the return of the PR @pierre-gilles, I will wait for the cinema integrations to be released until this evolution is made.

Have a nice day

The UGC, CGR, PATHÉ, and AlloCiné integrations are available in version 1.0.0 with widget and scene action :slight_smile:

Hello,

A 404 error is displayed on the dashboard even though everything seems correct on the integration side.

Hi @Jluc,

Thanks for the feedback! The issue comes from the cinema ID: 5914Z is not a valid AlloCiné ID. I checked, and this reference does not correspond to any cinema on AlloCiné’s side — hence the 404 when the widget fetches the showtimes.

AlloCiné IDs always seem to start with a letter (e.g., P0680, C0159, W2904). Yours starts with a number, so it must have been retrieved from elsewhere (another app or an old URL).

The correct method:

  1. In the integration settings, run the action « Find my cinema » by entering your city or postal code.
  2. Copy the ID it returns (like P0680) into the « Cinema ID » field.
  3. Save: the status should remain « Connected » and the widget should display today’s showtimes.

Let me know if it works with the correct ID :+1:

Hello @spenceur,

Now that I’ve fixed the films according to your instructions, they display very well in the dashboard.

Thank you for that and also for this very practical integration.

Can you tell me if your movie code starts with a letter? (I’ll check to strengthen the verification)

Yes, it does start with a letter. I had noted a code that I had retrieved from the wrong place.

I don’t know what happened, I triggered the update and since then, nothing.

This is a “normal” operation, it just lacks the translation which will arrive in a few seconds.

At this hour, your cinema should no longer have any screenings. Tomorrow morning, you will have the films of the day that will return.

For information, I am deploying the fix so that this message is clearer.

Thanks @spenceur the thumbnails are displaying normally again.

How do I get the showtimes for another cinema?

either you change the id of your cinema in the configuration, or it’s a UGC, Pathé, or CGR, and in that case you use one of these integrations :wink:

I was trying to import items from another cinema into the dashboard. So, to get this information, you need to modify the configuration part of the integration.