This repository contains a Dockerized HTTPOut server designed to interact with an ImmichFrame Web setup. Provided scripts will allow users to remotely change to the next/previous frame or play/pause the frame.
Before proceeding, ensure your environment is set up correctly:
Check that the .Xauthority
file exists on your host system and contains valid X11 authentication credentials:
ls -l /path/to/.Xauthority
xauth list
Make sure Docker and Docker Compose are installed on your system. For installation instructions, visit Docker’s official documentation.
-
Clone the repository:
git clone https://github.com/iCanHazSkillz/immichframe-remote.git cd immichframe-remote
-
Environment Variables Open the provided
.env
file with your favorite text editor and ensure the variables match your host system:DISPLAY=:0 # Adjust based on your system setup XAUTHORITY=/path/to/.Xauthority # Full path to your .Xauthority file UID=1000 # User ID of your host user GID=1000 # Group ID of your host user
- Replace
/path/to/.Xauthority
with the actual path on your host machine, e.g.,/home/user/.Xauthority
.
-
Build and start the container:
sudo docker compose up --build -d
-
Verify the container is running:
sudo docker ps
-
Test the server:
curl http://localhost:8000/next.py
immichframe-remote/
├── Dockerfile # Defines the container setup
├── docker-compose.yml # Defines the service configuration
├── .env # Environment variables for flexibility
└── scripts/ # Application scripts
├── previous.py # Script for previous frame
├── next.py # Script for next frame
└── play-pause.py # Script for play/pause frame
If the container logs indicate a missing .Xauthority
file:
- Verify the file exists on your host:
ls -l /path/to/.Xauthority
- Confirm it’s mapped correctly in
docker-compose.yml
. - Check the
DISPLAY
environment variable matches your host setup.
Ensure xauth
is installed in the container. The Dockerfile already includes:
RUN apt-get update && apt-get install -y xauth
Rebuild the container if necessary:
sudo docker compose build --no-cache
- Check the logs of the container:
sudo docker logs immichframe-remote
- Verify the server is running on port
8000
.
Feel free to fork this repository and submit pull requests for improvements or additional features.
This project is licensed under the MIT License. See the LICENSE file for details.