diff --git a/docs/_sources/index.rst.txt b/docs/_sources/index.rst.txt index d066d40..2730300 100644 --- a/docs/_sources/index.rst.txt +++ b/docs/_sources/index.rst.txt @@ -304,8 +304,10 @@ accessible. Run inside a Docker container ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -A Dockerfile has been provided and a prebuilt container is hosted on github.com. You can configure the service by passing environment variables to -the *docker run* command. +A Dockerfile has been provided and a prebuilt container is hosted on github.com. **Please note that the prebuilt container was created on an amd64 platform**. If you +require a different architecture such as arm for a Raspberry Pi, you will need to build a new image using the Dockerfile provided with the repository. + +You can configure the service by passing environment variables to the *docker run* command. .. code-block:: bash @@ -355,7 +357,7 @@ information to run: +----------------------+----------------------------------------------------------------+------------------------------------------------------+ | NAVI_API_VER | The version of the Subsonic API in use | 1.16.1 | +----------------------+----------------------------------------------------------------+------------------------------------------------------+ -| NAVI_DEBUG | Enable debugging, to disable to not set this variable | 1 | +| NAVI_DEBUG | Enable debugging, by setting this variable to 1, or 3. | 1 | +----------------------+----------------------------------------------------------------+------------------------------------------------------+ @@ -376,7 +378,7 @@ Troubleshooting and debugging Alexa skills can be a little frustrating, here are #. Enable debugging and look at the logs generated by the web service. -#. When debugging is enabled the following web pages are available from the web service +#. When level 3 debugging is enabled the following web pages are available from the web service * url-to-web-service/queue @@ -410,6 +412,42 @@ Troubleshooting and debugging Alexa skills can be a little frustrating, here are * After you have entered a command you will get the Alexa response back, scroll down to the **Device Log** section and click through the entries the entries will contain any errors that were thrown. +Debug Options +------------- + +You can enable the following debug options by setting the NAVI_DEBUG environment variable. + +* 0 = Logging set to WARNING and higher. +* 1 = Logging set to INFO and higher. +* 2 = Logging set to DEBUG and higher and request / response + interceptors are enabled. +* 3 = All features of level 2 and the web ui. Note the UI + will be **publicly** available while this is enabled. + +Known Issues +------------ + +#. The skill appears to work but no music is played. Errors similar to below appear in the web service log + + .. code-block:: bash + + 2022-11-19 13:16:45,478 - root - DEBUG - In PlaybackFailedHandler + 2022-11-19 13:16:45,479 - root - ERROR - Playback Failed: {'message': 'Device playback error', 'object_type': 'MEDIA_ERROR_UNKNOWN'} + 2022-11-19 13:16:45,480 - werkzeug - INFO - 10.44.17.62 - - [19/Nov/2022 13:16:45] "POST / HTTP/1.1" 200 - + 2022-11-19 13:16:48,599 - root - DEBUG - In PlaybackFailedHandler + 2022-11-19 13:16:48,600 - root - ERROR - Playback Failed: {'message': 'Device playback error','object_type': 'MEDIA_ERROR_INTERNAL_DEVICE_ERROR'} + + * I have not found a reason as to why this happens from time to time, however it can be resolved by doing a hard reboot of your Echo device. + Disconnect the power for a minute and plug it back in then try again and music should play + +#. The following error is displayed when you try to run the Docker container + + .. code-block:: bash + + exec /opt/env/bin/python3: exec format error + + * You are using the prebuilt container on a non amd64 based system. You will need to build your own Docker image using the Dockerfile included + with the repository. Code Documentation ****************** diff --git a/docs/genindex.html b/docs/genindex.html index cab414a..255f30a 100644 --- a/docs/genindex.html +++ b/docs/genindex.html @@ -57,7 +57,6 @@ | S | T | U - | V

A

@@ -435,20 +434,6 @@ -

V

- - - -
-
diff --git a/docs/index.html b/docs/index.html index e14af22..7377560 100644 --- a/docs/index.html +++ b/docs/index.html @@ -327,8 +327,9 @@ python3 app.py

Run inside a Docker container

-

A Dockerfile has been provided and a prebuilt container is hosted on github.com. You can configure the service by passing environment variables to -the docker run command.

+

A Dockerfile has been provided and a prebuilt container is hosted on github.com. Please note that the prebuilt container was created on an amd64 platform. If you +require a different architecture such as arm for a Raspberry Pi, you will need to build a new image using the Dockerfile provided with the repository.

+

You can configure the service by passing environment variables to the docker run command.

docker run -p 5000:5000 \
 -e NAVI_SKILL_ID=<your-skill-id> \
 -e NAVI_SONG_COUNT=50 \
@@ -395,7 +396,7 @@ using Navidrome and haven’t changed anything

1.16.1

NAVI_DEBUG

-

Enable debugging, to disable to not set this variable

+

Enable debugging, by setting this variable to 1, or 3.

1

@@ -419,7 +420,7 @@ want to make some changes though.

  • Enable debugging and look at the logs generated by the web service.

  • -
  • When debugging is enabled the following web pages are available from the web service

    +
  • When level 3 debugging is enabled the following web pages are available from the web service

    • url-to-web-service/queue

        @@ -453,6 +454,45 @@ the entries will contain any errors that were thrown.

    • +
      +

      Debug Options

      +

      You can enable the following debug options by setting the NAVI_DEBUG environment variable.

      +
        +
      • 0 = Logging set to WARNING and higher.

      • +
      • 1 = Logging set to INFO and higher.

      • +
      • 2 = Logging set to DEBUG and higher and request / response +interceptors are enabled.

      • +
      • 3 = All features of level 2 and the web ui. Note the UI +will be publicly available while this is enabled.

      • +
      +
      +
      +

      Known Issues

      +
        +
      1. The skill appears to work but no music is played. Errors similar to below appear in the web service log

        +
        2022-11-19 13:16:45,478 - root - DEBUG - In PlaybackFailedHandler
        +2022-11-19 13:16:45,479 - root - ERROR - Playback Failed: {'message': 'Device playback error', 'object_type': 'MEDIA_ERROR_UNKNOWN'}
        +2022-11-19 13:16:45,480 - werkzeug - INFO - 10.44.17.62 - - [19/Nov/2022 13:16:45] "POST / HTTP/1.1" 200 -
        +2022-11-19 13:16:48,599 - root - DEBUG - In PlaybackFailedHandler
        +2022-11-19 13:16:48,600 - root - ERROR - Playback Failed: {'message': 'Device playback error','object_type': 'MEDIA_ERROR_INTERNAL_DEVICE_ERROR'}
        +
        +
        +
          +
        • I have not found a reason as to why this happens from time to time, however it can be resolved by doing a hard reboot of your Echo device. +Disconnect the power for a minute and plug it back in then try again and music should play

        • +
        +
      2. +
      3. The following error is displayed when you try to run the Docker container

        +
        exec /opt/env/bin/python3: exec format error
        +
        +
        +
          +
        • You are using the prebuilt container on a non amd64 based system. You will need to build your own Docker image using the Dockerfile included +with the repository.

        • +
        +
      4. +
      +
  • Code Documentation

    @@ -549,20 +589,6 @@ the entries will contain any errors that were thrown.

    -

    Functions:

    - - - - - - - - - - - - -

    view_buffer()

    View the contents of play_queue.buffer

    view_history()

    View the contents of play_queue.history

    view_queue()

    View the contents of play_queue.queue

    class app.CheckAudioInterfaceHandler
    @@ -2116,27 +2142,6 @@ during dispatch.

    -
    -
    -app.view_buffer()
    -

    View the contents of play_queue.buffer

    -

    Creates a tabulated page contining the contents of the play_queue.buffer deque.

    -
    - -
    -
    -app.view_history()
    -

    View the contents of play_queue.history

    -

    Creates a tabulated page contining the contents of the play_queue.history deque.

    -
    - -
    -
    -app.view_queue()
    -

    View the contents of play_queue.queue

    -

    Creates a tabulated page contining the contents of the play_queue.queue deque.

    -
    -

    AskNavidrome controller

    @@ -2883,7 +2888,11 @@ is working

    -
  • Troubleshooting
  • +
  • Troubleshooting +
  • Code Documentation