Colin Powell 52655cecfd Add Mopidy URI to data packet sent via webhook
This commit adds one new property, which is the URI that mopidy is using
as the source to play the media file.  The significance here is that if
you use something like Podgrab to auto-download and push podcasts to a
directory in Mopidy's media files, and if it has 'podcast' in the name
we can use that instead of the hit-or-miss check on the MP3 genre of
Podcast, which is a convention not many podcasts use.
2023-01-12 11:18:45 -05:00
2023-01-08 01:08:18 -05:00
2023-01-08 01:08:18 -05:00
2023-01-08 01:08:18 -05:00
2023-01-08 01:08:18 -05:00
2023-01-08 01:08:18 -05:00
2023-01-08 01:08:18 -05:00
2023-01-08 01:08:18 -05:00
2023-01-08 01:08:18 -05:00
2023-01-08 01:08:18 -05:00

****************
Mopidy-Webhooks
****************

.. image:: https://img.shields.io/pypi/v/Mopidy-Webhooks
    :target: https://pypi.org/project/Mopidy-Webhooks/
    :alt: Latest PyPI version

`Mopidy <https://www.mopidy.com/>`_ extension for sending mopidy play status to
arbitrary URL endpoints

Installation
============

Install by running::

    sudo python3 -m pip install Mopidy-Webhooks


Configuration
=============

To enable this extension, make sure to add the following variables to your
Mopidy configuration file. Note that multiple URLs can be sent to by separating
them with a comma. Tokens match the listing of urls::

    [webhooks]
    enabled = true
    urls = https://example.com/api/receiver/,http://127.0.0.1:8000/webhook/
    tokens = ,2349080989234089

The following configuration values are available:

- ``webhooks/enabled``: If the webhooks extension should be enabled or not.
  Defaults to disabled.
- ``webhooks/urls``: Comma-separated list of endpoints to send play data to
- ``webhooks/tokens``: Comma-separated list of tokens to send in the
  Authorization header for each URL


Project resources
=================

- `Source code <https://github.com/powellc/mopidy-webhooks>`_
- `Issue tracker <https://github.com/powellc/mopidy-webhooks/issues>`_
- `Changelog <https://github.com/powellc/mopidy-webhooks/releases>`_


Credits
=======

- Author: `Colin Powell <https://github.com/powellc>`__
Description
No description provided
Readme Apache-2.0 114 KiB
0.3.1 Latest
2026-09-22 21:56:24 -04:00
Languages
Python 100%