/immich-kiosk

A web slideshot for Immich

Primary LanguageGoGNU General Public License v3.0GPL-3.0

Immich Kiosk

Immich Kiosk windmil logo

Important

This project is not affiliated with immich

Warning

Like the Immich project, this project is currently in beta and may experience breaking changes.

Table of Contents

What is Immich Kiosk?

I made Immich Kiosk as a lightweight slideshow to run on kiosk devices and browsers.

preview 1 Image shot by Damon Golding

preview 2 Image shot by @insungpandora

Example 1

You want to have a slideshow of your Immmich images using the webpage card in Home Assistant.

  1. Open up the dahsboard you want to add the slideshow to in edit mode.
  2. Hit "add card" and search "webpage".
  3. Enter the your Immich Kiosk url in the URL field e.g. http://192.168.0.123:3000
  4. If you want to have some specific settings for the slideshow you can add them to the *URL

* I would suggest disabling all the UI i.e. http://192.168.0.123:3000?disable_ui=true

Example 2

You have a two spare Raspberry Pi's laying around. One hooked up to a LCD screen and the other you connect to your TV. You install a fullscreen browser OS or service on them (I use DeitPi).

You want the pi connected to the LCD screen to only show images from your recent holiday, which are stored in a album on Immich. It's an older pi so you want to disable CSS transitions, also we don't want to display the time of the image.

Using this URL http://{URL}?album={ALBUM_ID}&transtion=none&show_time=false would achieve what we want.

On the pi connected to the TV you want to display a random image from your library. It has to be fullscreen and we want to use the fade transition

Using this URL http://{URL}?full_screen=true&transition=fade would achieve what we want.


Installation

Use via docker 👇


Docker Compose

Note

You can use both a yaml file and environment variables but environment variables will overwrite settings from the yaml file

When using a yaml config file

services:
  immich-kiosk:
    image: damongolding/immich-kiosk:latest
    container_name: immich-kiosk
    environment:
      TZ: "Europe/London"
    volumes:
      - ./config.yaml:/config.yaml
    restart: on-failure
    ports:
      - 3000:3000

When using environment variables

services:
  immich-kiosk:
    image: damongolding/immich-kiosk:latest
    container_name: immich-kiosk
    environment:
      TZ: "Europe/London"
      KIOSK_IMMICH_API_KEY: ""
      KIOSK_IMMICH_URL: ""
      KIOSK_DISBALE_UI: FALSE
      KIOSK_SHOW_DATE: TRUE
      KIOSK_DATE_FORMAT: 02/01/2006
      KIOSK_SHOW_TIME: TRUE
      KIOSK_TIME_FORMAT: 12
      KIOSK_REFRESH: 60
      KIOSK_ALBUM: ""
      KIOSK_PERSON: ""
      KIOSK_FILL_SCREEN: TRUE
      KIOSK_BACKGROUND_BLUR: TRUE
      KIOSK_TRANSITION: NONE
      KIOSK_SHOW_PROGRESS: TRUE
      KIOSK_SHOW_IMAGE_TIME: TRUE
      KIOSK_IMAGE_TIME_FORMAT: 12
      KIOSK_SHOW_IMAGE_DATE: TRUE
      KIOSK_IMAGE_DATE_FORMAT: 02/01/2006
    ports:
      - 3000:3000
    restart: on-failure

Configuration

See the file config.example.yaml for an example config file

yaml ENV Value Description
immich_url KIOSK_IMMICH_URL string The URL of your Immich server, e.g. http://192.168.1.123:2283.
immich_api_key KIOSK_IMMICH_API_KEY string The API for your Immich server.
disable_ui KIOSK_DISABLE_UI bool A shortcut to set show_time, show_date, show_image_time and image_date_format to false.
show_time KIOSK_SHOW_TIME bool Display clock.
time_format KIOSK_TIME_FORMAT 12 | 24 Display clock time in either 12 hour or 24 hour format. Can either be 12 or 24.
show_date KIOSK_SHOW_DATE bool Display the date.
date_format KIOSK_DATE_FORMAT string The format of the date. default is day/month/year. Any GO date string is valid.
refresh KIOSK_REFRESH int The amount in seconds a image will be displayed for.
album KIOSK_ALBUM string The ID of a specific album you want to display.
person KIOSK_PERSON string The ID of a specific person you want to display. Having the album set will overwrite this.
fill_screen KIOSK_FILL_SCREEN bool Force images to be full screen. Can lead to blurriness depending on image and screen size.
background_blur KIOSK_BACKGROUND_BLUR bool Display a blurred version of the image as a background.
transition KIOSK_TRANSITION none | fade | cross-fade Which transition to use when changing images.
show_progress KIOSK_SHOW_PROGRESS bool Display a progress bar for when image will refresh.
show_image_time KIOSK_SHOW_IMAGE_TIME bool Display image time from METADATA (if available).
image_time_format KIOSK_IMAGE_TIME_FORMAT 12 | 24 Display image time in either 12 hour or 24 hour format. Can either be 12 or 24.
show_image_date KIOSK_SHOW_IMAGE_DATE bool Display the image date from METADATA (if available).
image_date_format KIOSK_IMAGE_DATE_FORMAT string The format of the image date. default is day/month/year. Any GO date string is valid.

Changing settings via URL

You can configure settings for individual devices through the URL. This feature is particularly useful when you need different settings for different devices, especially if the only input option available is a URL, such as with kiosk devices.

example:

https://{URL}?refresh=120&background_blur=false&transition=none

Thos above would set refresh to 120 seconds (2 minutes), turn off the background blurred image and remove all transitions for this device/browser.


FAQ

no-wifi icon
Q: What is the no wifi icon?
A: This icon shows when the front end can't connect to the back end .

Q: Can I use this to set Immich images as my Home Assistant dashboard background?
A: Yes! Just navigate to the dashboard with the view you wish to add the image background to. Enter edit mode and click the ✏ next to the view you want to add the image to. Then select the "background" tab and toggle on "Local path or web URL" and enter your url with path /image and the query raw e.g. http://192.168.0.123:3000/image?raw. If you want to specify an album or a person you can also add that to the url e.g. http://192.168.0.123:3000/image?album=ALBUM_ID&raw

Q: Do I need to a docker service for each client?
A: Nope. Just one that your client(s) will connect to.

Q: Do I have to use port 3000?
A: Nope. Just change the host port in your docker compose file i.e. - 3000:3000 to - PORT_YOU_WANT:3000


TODO

  • FAQs
  • Investigate caching
  • Update README images

Support

If this project has been helpful to you and you wish to support me, you can do so with the button below 🙂.

"Buy Me A Coffee"