diff --git a/Dockerfile b/Dockerfile index 001cbc9..ac9b0c3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -107,4 +107,5 @@ COPY . /var/app VOLUME /data -CMD ['pipenv', 'run', 'bin/tvidd'] +ENV PYTHONPATH /var/app +CMD pipenv run python ./bin/tvidd diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..8c3bdb1 --- /dev/null +++ b/LICENSE @@ -0,0 +1,14 @@ + DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE + Version 2, December 2004 + +Copyright (C) 2004 Sam Hocevar + +Everyone is permitted to copy and distribute verbatim or modified +copies of this license document, and changing it is allowed as long +as the name is changed. + + DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. You just DO WHAT THE FUCK YOU WANT TO. + diff --git a/README.md b/README.md index 77fdd65..49902ab 100644 --- a/README.md +++ b/README.md @@ -9,9 +9,30 @@ Log in to the admin panel and enter the URL for that TV ID, and within 60 seconds, that display will bounce to that URL, or any other time it turns on. +You can reconfigure the target URL at any time, and the next time that +display reboots or reloads (you should be rebooting your displays daily) it +will get redirected to the new target. + +# configuration knobs + +## environment variables + +* set `ADMIN_PSK` to the admin password (for `/admin` url) + +## state storage + +* writes sqlite database into `/data`, mount that volume somewhere + # todo -* make display id animate: https://codepen.io/stezu/pen/cmLrI +* fix CSRF +* fix FIXMEs +* fix logging output +* put git short id into version string + +# license + +WTFPL # author diff --git a/setup.py b/setup.py index 9f04bb2..b6f0be1 100644 --- a/setup.py +++ b/setup.py @@ -1,8 +1,11 @@ from setuptools import setup, find_packages +# for some reason that console_scripts entrypoint fails +# and i have no idea why so there is a bin in bin/ + setup( name='tvid', - version='0.0.1', + version='1.0.0', packages=find_packages(), license='WTFPL', long_description=open('README.md').read(),