Issue with external integration „allociné“

@spenceur: the app isn’t connecting « status"disconnected », yet the cinema is found


I’ll check that as soon as I have 10 minutes :slight_smile:

Hi @Chris75,

Thanks for the report (and the screenshot, very helpful)! I found the issue :slightly_smiling_face:

The « Find my cinema » action was indeed returning the Vichy ID (G028P), but the field check was too strict: it only accepted IDs of the type « one letter + 4 digits » (e.g. P0905), whereas AlloCiné actually uses 5-character codes that can have letters elsewhere (Vichy = G028P). The integration was therefore rejecting an ID that it had just given you → hence the « disconnected » status.

This is fixed in version 1.0.1 that I just published. To install it: on the integration page, click on « Force Update », then check that G028P is properly recorded — the status should switch to « Connected » and the movies from your cinema should display.

Let me know if it’s good on your side :+1:

Great, it works now!
But are there missing photos?

Unfortunately, I can’t do anything about this. Gladys limits the size of images, and Allociné sends a size that’s too large.

And is there no possibility to resize via the integration and a bit of ImageMagick?

As I like to understand, where can I see in detail what Gladys expects when creating a new widget in an external integration?

In all logic, I would say in the SDK for external integrations.

it’s in docs/specs/external-integrations/capabilities/dashboard-widgets.md, section 6 (images),

I deployed a new release that resizes the image, thanks @mutmut for the idea :slight_smile:

V 1.0.1
gladys: 12 films, 2 without a poster

Allo Ciné: 14 films

@Chris75 your captures are in 1.0.1: poster resizing is in 1.1.0. Click on « Force update » on the integration page, the 2 missing posters should appear.

For the 12 movies vs 14: the Gladys widget grid is limited to 12 cards (widget spec limit). Movies beyond that are therefore hidden in the widget, it’s not a display bug.

The limit is in two places in the same file, dashboard-widgets.md:

  • Line 169, component table: card-list accepts items of « 1–12 in grid, 1–8 in list ».
  • Line 189, content budget: « card-list 12 in grid / 8 in list, no internal scrolling », with the reason: the card height remains that of a core widget, « content is trimmed, never scrolled ».

autant pour moi ! indeed, the 12 films now appear

Since 2 films are missing (it’s a shame because you then have to go to the site to see all the films), wouldn’t it be possible to display a 2nd widget containing only the missing films?

Unfortunately not :confused:

Two solutions:

  • I develop a « Coming Soon… » widget but in my opinion it’s not the prettiest.
  • You submit a feature request with a page system to Pierre-Gilles

I was thinking there might be other solutions to avoid exceeding 12 images:

  • First, add text at the bottom of the widget like « …and X other movies: title1, title2,… » when you know there are more than 12 movies
  • Add an option in the widget to display all movies / only this week’s releases / only releases > one week. By displaying two widgets with options 2 and 3, there’s a good chance everything will be displayed
  • Maybe add a sorting option (alphabetical / by release date / by ratings) to control what won’t be displayed when there are more than 12

For my part, I would prefer a single widget with all the movies.

In the meantime, I’m adding a « link » widget that points to the cinemas and that way I have all the movies and even with the trailers!

I’m coming back to the topic, as I continue to discover and test the applications.

Indeed, I have 12 out of the 26 currently showing films in my cinema. Plus, the images are really small, so the text displayed below is cut off. It would be great to be able to enlarge the posters a bit and add a short synopsis under each film to get a better idea of its content.

That’s my feedback! These are small integrations that may seem unimportant at first glance, but ultimately allow you to avoid having to check your phone or the cinema’s website to see what’s playing.

This reminds me of another possible improvement: improving the display of today’s showtimes, with a clearer and more readable presentation, and maybe adding a button to view showtimes for the following days.

The idea would be to be able to find all the useful information directly in Gladys to choose a movie and a showtime, without having to look elsewhere.

Can you give me your movie code in your config? I’ll check for the following days and visual improvements.
The number of posters, on the other hand, I’m not sure I can do much about.
In my opinion, the best solution remains pagination.

Hello @Prof_Techno,

Thanks for the test and the feedback! I checked with your code P0209: it is indeed valid, your cinema currently has around 15 films on display per day — everything is working fine on the data side.

Some point-by-point answers:

Missing films (« 12 out of 26 ») : the widget grid is capped at 12 thumbnails — this is a limit of the core Gladys component, not a bug in the integration, and only one grid per widget is allowed. I just published a new version that adds, below the grid, a line « +N films not displayed: … » which names the films beyond 12: click on « Force update » on the integration page to get it. To really go beyond 12 (true pagination), it requires an evolution of the core: I opened a dedicated request here :backhand_index_pointing_right: Widgets de dashboard — accéder aux éléments au-delà du plafond de 12 (card-list) (your feedback is welcome there).

The synopsis : good news, it’s already there :slightly_smiling_face: Click on a poster : this opens a detailed panel with the synopsis, the date and the booking link. It does not appear directly under the thumbnail (the grid remains deliberately compact), but the content is there.

The size of the posters / the cut text : the grid rendering (size of the thumbnails, title on two lines) is managed by the core of Gladys, the integration has little control over it. It’s also a topic that I bring up in the evolution request above, as it goes hand in hand with the question of the number of films displayed.

Don’t hesitate if you have more feedback, it’s very useful :+1:

Well, on my side, everything works correctly. However, I feel we still lack a bit of information for the widget to be truly useful on a daily basis. Unless you decide to go to the cinema on a whim, you already need to have the movie in the top 12, otherwise you don’t really have access to the information.

So, I allow myself to make a few remarks on what I would personally like to see in this widget. I don’t necessarily know if everything is feasible, it’s just my feeling and my ideas after a few tries.

Here are a few improvement suggestions:

  • Easily change cinemas: I would like to be able to select another cinema without having to reconfigure everything. Currently, it seems we are limited to one cinema.
  • Group multiple cinemas: if I use cinemas from different integrations, it might become complicated with multiple widgets. It would be really interesting to be able to group everything in a single display.
  • Display full titles: currently, the titles under the posters are cut off, which is a shame.
  • Add trailers and an IMDb link: I saw in another of your messages that you were considering this possibility. I think it’s a great idea!
  • Enlarge the posters: the thumbnails are quite small. It would be nice to be able to click on them to display a detailed sheet with the synopsis and a larger poster.

That’s it for my few personal ideas. I don’t know what is technically possible or not, but I think these improvements could make the widget much more complete and practical.

In any case, being able to already consult the movies showing today directly in Gladys is already a very good start!