Simple HTTP Server to serve a directory of images which frequently rotate
Project description
Carousel
Serve images via HTML / JavaScript which rotate every N seconds.
Installation
Via Pipx:
pipx install httpcarousel
Sample systemd unit:
sudo tee -a /etc/systemd/system/httpcarousel.service > /dev/null <<EOF
[Unit]
Description=httpcarousel
After=network.target
[Service]
Type=notify
User=debian
Group=debian
ExecStart=/home/debian/.local/pipx/venvs/httpcarousel/bin/carousel
ExecReload=/bin/kill -s HUP $MAINPID
KillMode=mixed
TimeoutStopSec=5
PrivateTmp=true
[Install]
WantedBy=multi-user.target
EOF
sudo systemctl daemon-reload
sudo systemctl start httpcarousel
sudo systemctl enable httpcarousel
Environment Variables
Name | Description | Default |
---|---|---|
CAROUSEL_PORT | The HTTP Port that Carousel should listen on | 6502 |
CAROUSEL_INTERVAL | How often the displayed image should change in seconds | 45 |
CAROUSEL_IMAGE_DIRECTORY | The directory to find images | /tmp/images |
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
httpcarousel-1.0.2.tar.gz
(4.0 kB
view hashes)
Built Distribution
Close
Hashes for httpcarousel-1.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9c9595a5449240a96f67cec879a825b6482e891afdc59a040318cb8bcc8c622b |
|
MD5 | 572db90d4233ba3540e7eae5ac212342 |
|
BLAKE2b-256 | 4b36e9f3965ca3e2ba5ac6b234e568c01acdf34d49a0359ebad4a64110039ad9 |