Installation
There are three ways to install Photodash: as a Home Assistant add-on, a standalone Docker container, or as a standalone Node.js process.
Home Assistant Add-on
Go to the Add-on Store and add the following repository:
https://github.com/apop880/hassio-addons
. You can also use the link below to add the repository if you have My Home Assistant set up.
Install the Photodash add-on from the add-on store. You can use the link below to navigate directly to the add-on if you have My Home Assistant set up.
Configure a custom port (optional). By default, the add-on runs on port
8800
of your Home Assistant instance. If you have another add-on running at that port or wish to use a different port for another reason, you can define that on the add-on's configuration tab.A Note on Ingress SupportIngress support is not something this add-on supports, and likely never will. Since Photodash has been designed to be used as a full-screen web application, and Ingress requires that the Home Assistant sidebar be present, the add-on is only usable when configured with a standalone port.
Add your Photodash URL as a CORS allowed origin in Home Assistant. For example, if your Home Assistant server is running at
192.168.1.2
, and Photodash is configured on the default port8800
:
http:
cors_allowed_origins:
- "http://192.168.1.2:8800"
- Start the add-on. Initial startup may take slightly longer as the database tables are created.
Standalone Docker container
If you would like to contribute with a standalone Docker build and instructions, this is something I haven't gotten to yet that would be a great help!
Coming soon!
Standalode Node.js
A more automated process for this installation method is on the roadmap but behind other priorities. If you'd like to contribute here, it would be appreciated.
Make sure you have Node.js 16.14 or higher installed, and a database available to store the Photodash configuration. MySQL or MariaDB are recommended (Postgres should work fine but has not been tested).
Clone the repository with
git clone https://github.com/apop880/photodash.git
.Type
cd photodash/rootfs
to go into the application directory.Populate your database connection string in
.env.example
and rename it.env
, then runnpx prisma db push
to populate your database with the needed tables.Run
npm run build
to build the application.Run
node build/index.js
to start the Photodash server.infoBy default, the application will be exposed on port 3000. If you would like to change, this, you can prefix the command with
PORT=<#>
. For example, to change to port 5000, runPORT=5000 node build/index.js
.Add your Photodash URL as a CORS allowed origin in Home Assistant. For example, if your Photodash node server is running at
192.168.1.2:3000
:
http:
cors_allowed_origins:
- "http://192.168.1.2:3000"
- If you would like to use the local photos slideshow integration, create a folder inside
build/client
calledshare
and add a subfolder calledphotodash
. In that subfolder, you can create additional folders per configuration with your local photos.