Browse Source

Improve installation and quickstart docs

boyska 1 year ago
parent
commit
d4852d5df4
3 changed files with 8 additions and 1 deletions
  1. 2 0
      doc/source/install.rst
  2. 4 1
      doc/source/quickstart.rst
  3. 2 0
      setup.py

+ 2 - 0
doc/source/install.rst

@@ -88,6 +88,8 @@ CONTINOUS_AUDIOSPEC
     audios. The default is ``{"kind": "mpd", "howmany": 1}``. You could, for example, change it to
     ``{ "kind": "randomdir", "paths": ["/var/music"], "howmany": 10}``
     or to ``{"kind": "mpd", "howmany": 5, "prefix": "background"}``.
+
+    Yes, there's a typo in the name, but I'll keep it like this for compatibility
 EVENT_FILTERS
     See :doc:`eventfilters`
 LOG_CONFIG

+ 4 - 1
doc/source/quickstart.rst

@@ -16,7 +16,7 @@ Let's start!::
 
    apt-get install python3 python3-dev build-essential virtualenv mpd
    virtualenv -p /usr/bin/python3 /opt/larigira/
-   /opt/larigira/bin/pip3 install larigira
+   /opt/larigira/bin/pip3 install --no-binary :all: larigira
    touch /etc/default/larigira
    mkdir -p /home/radio/.mpd/ /etc/larigira/ /var/log/larigira/
    chown radio:adm /var/log/larigira/
@@ -29,9 +29,12 @@ Edit ``/etc/systemd/system/larigira.service`` and put this content::
    After=mpd.service
 
    [Service]
+   Type=notify
+   NotifyAccess=all
    EnvironmentFile=/etc/default/larigira
    User=radio
    ExecStart=/opt/larigira/bin/larigira
+   Restart=always
 
    [Install]
    WantedBy=multi-user.target

+ 2 - 0
setup.py

@@ -55,6 +55,8 @@ setup(
         "werkzeug==0.14.1",
         "cachelib==0.1",
         "tinydb==3.12.2",
+        "lxml==4.5.1",
+        "requests==2.23.0",
     ],
     tests_require=["pytest-timeout==1.0", "py>=1.4.29", "pytest==3.0"],
     python_requires=">=3.5",