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.mp4https://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