You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Thomas Tsiakalakis fb37005829 updated systemd unit to log properly 2 years ago
1080X1920.svg add test images 2 years ago
1200X1920.svg add test images 2 years ago
README.md add video playback support 2 years ago
imageshow.service updated systemd unit to log properly 2 years ago
server.py add rotation to omxplayer command 2 years ago

README.md

Installation

apt install librsvg2-bin python3-pip libopenjp2-7
pip3 install pillow
cp imageshow.service /etc/systemd/system/
systemctl daemon-reload
systemctl enable imageshow.service

Usage

display image: curl -XPOST http://host/ --data @file.svg or curl -XPOST http://host/ --data-binary @file.jpg

draw over previous image: curl -XPOST http://host/update --data @file.svg or curl -XPOST http://host/update --data-binary @file.jpg

show video: curl -XPOST http://host/video --data 'url=http://video/file'

display color: curl -XPOST http://host/fill --data 'r=255&g=1&b=0&a=255'

show current image: firefox http://host/

turn display off: curl -XPOST http://host/off

turn display on: curl -XPOST http://host/on