Zum Hauptinhalt springen

CGR Smart-Home-Integration, kostenlos und Open Source

CGR-Integration für Gladys Assistant

Movies currently playing at your CGR cinema.

Info

Die Dokumentation dieser Integration wird von ihrem Autor geschrieben und ist bisher nur auf Englisch verfügbar.

Movies currently playing at your CGR cinema, as a dashboard widget, with a scene trigger for when a new film joins the program.

Important: unofficial integration​

This integration reads the showtimes data that cgrcinemas.fr already serves publicly to any visitor of its site — the same content you would see by opening your cinema's page in a browser, nothing more. It is not developed, endorsed, or affiliated with CGR. CGR can change its site at any time and break this integration without notice.

No paid API, no credential extracted from an app, no bypass of anti-bot protection is used: only the public endpoints the site already uses for itself.

Configuration​

  1. Open the integration's Configuration tab.
  2. Run the Find my cinema action: leave the field empty to list the 5 CGR cinemas nearest your Gladys house (if it has a location set), or type a city to search across all of them. The result is shown under the button as Cinema name — City (12.3 km) (ID: P0905) (the distance only appears for a proximity search).
  3. Copy the ID of your cinema into the Cinema ID field, then save.

If no Gladys house has a location set, leaving the field empty lists every CGR cinema instead (fallback behavior).

Add the integration's now_playing widget to a Gladys dashboard to see the films playing today at that cinema: poster, a booking link, today's showtimes (time and version, VF/VO/VOST) and, when cgrcinemas.fr has one, a trailer link.

Scene trigger​

The integration also declares a new_film scene trigger: create a scene with this trigger to react when a film not seen before appears in the program (send a message, for example). The trigger exposes the film's title, release date, today's showtimes and booking link as scene variables. The integration checks for new films twice a day.

Known limitations (v1)​

  • One cinema at a time per installation of the integration.
  • Only today's films and showtimes (no view of tomorrow or later days).
  • The cinema list is a hand-maintained static list (see the repository's README): a brand-new CGR cinema may not appear in it yet.

Troubleshooting​

The integration logs everything it does: check the integration logs from the Gladys interface (or docker logs on the host) with LOG_LEVEL=debug for full detail.

Konfigurationseinstellungen​

Diese Einstellungen fragt CGR in seinem Konfigurationsbildschirm in Gladys ab.

EinstellungTypPflichtfeldBeschreibung
CGR cinemasectionNeinThis integration reads the public showtimes data that cgrcinemas.fr already serves to every visitor. It is not an official CGR product, is not affiliated with CGR, and can break without notice if the site changes. Run the action below to find your cinema's ID, then paste it below.
Cinema IDstringJaThe ID shown by the "Find my cinema" action, e.g. P0905.

So installierst du CGR in Gladys​

  1. Öffne in Gladys Integrationen: CGR erscheint im Katalog neben den nativen Integrationen, mit einem Community-Badge.
  2. Klicke auf Installieren. Gladys lädt das Docker-Image (ghcr.io/vincentbesseau/gladys-cgr:1.0.0) herunter, startet es in einer vom Kern isolierten Sandbox und erzeugt die Oberfläche der Integration (Geräte, Erkennung und Konfiguration).
  3. Öffne den Bildschirm Konfiguration der Integration, fülle die Einstellungen aus und speichere.
  4. Du kannst sie auch direkt über die URL ihres Repositorys installieren: https://github.com/vincentBesseau/gladys-cgr.

CGR benötigt Gladys >=5.1.1. Der Katalog in Gladys wird stündlich aktualisiert, eine neue Version ist also spätestens eine Stunde nach ihrer Veröffentlichung verfügbar.

Du nutzt Gladys noch nicht? Es ist kostenlos und Open Source: folge der Installationsanleitung, um loszulegen.

Über externe Integrationen​

CGR ist eine externe Integration: eine Community-Integration, die als Docker-Container verpackt und auf GitHub veröffentlicht wird. Gladys installiert sie mit einem Klick und führt sie in einer vom Kern isolierten Sandbox aus. Sie wird von vincentBesseau veröffentlicht und gepflegt, nicht vom Gladys-Kernteam.

Abonniere den Newsletter von Gladys Assistant

Ein paar E-Mails im Monat zu neuen Releases und Neuigkeiten aus dem Projekt. Verschickt von Pierre-Gilles Leymarie, dem Gründer des Projekts. Jederzeit abbestellbar 🙂