* Ability to use full path for image path * Ability to configure the wait time between images * Added protection from escaping the image directory
23 lines
1.2 KiB
Markdown
23 lines
1.2 KiB
Markdown
# DiaShower
|
|
A chromecast ambient mode like Diashow
|
|
|
|
|
|
## Setup and run
|
|
1. Make sure python is installed
|
|
2. Create a python VENV `python -m venv DiaShower-venv`
|
|
3. Activate the VENV `. ./DiaShower-venv/bin/activate` for :Linux or `.\DiaShower-venv\Scripts\Activate.ps1` for Windows
|
|
4. Install dependencies `pip install -r requirements.txt`
|
|
5. Copy the `config.json.example` to `config.json.example' and edit it to fit your needs
|
|
6. Create the the images folder definded in the config and put your images in to it
|
|
7. Run with `python server.py`
|
|
|
|
## Convert to binary (Advanced)
|
|
* Make sure the VENV is still activated
|
|
1. Install `pyinstaller` using `pip install -U pyinstaller`
|
|
2. Create binary using `pyinstaller server-pyinstaller.spec`
|
|
3. The binary is created in the dist folder, to use it create a config an the configured image folder here (or wherever you move the binary to)
|
|
4. Update the path to the images to a full path
|
|
|
|
* if you wish to cleanup you can remove the build (and if you copied the binary somware else the dist folder)
|
|
* Removing `pyinstaller` is safe you can use `pip uninstall -y altgraph setuptools packaging pyinstaller-hooks-contrib pyinstaller pywin32-ctypes pefile`
|