config.yaml
· 1.1 KiB · YAML
Raw
#!~/.config/platypush/config.yaml
# Platypush configuration file for Termux Mopidy Notifier
# A name for your device
device_id: phone
# Enable the Web server
backend.http:
# port: 8008
# Reduce the number of workers to avoid phantom process SIGKILL
# See https://ivonblog.com/en-us/posts/fix-termux-signal9-error/
num_workers: 1
ntfy:
# Uncomment and set your custom server URL if you're using a self-hosted ntfy server
# Otherwise, the default public server (https://ntfy.sh) will be used.
# server_url: https://your-ntfy-server.com
subscriptions:
# Subscribe to the topic where music commands will be sent
- music-commands-<your-unique-id>
music.mopidy:
host: localhost
# port: 6680
# Optional, if you also want to enable the MPD interface.
# The MPD interface provides better compatibility with MPD clients,
# but it will process events slower than the Mopidy interface
# (Mopidy dispatches events over WebSocket, while MPD clients poll for
# changes).
# Keep in mind that, on a mobile device, the MPD interface may consume more
# battery.
#
# music.mpd:
# host: localhost
# # port: 6600
# poll_interval: 20.0
| 1 | #!~/.config/platypush/config.yaml |
| 2 | |
| 3 | # Platypush configuration file for Termux Mopidy Notifier |
| 4 | |
| 5 | # A name for your device |
| 6 | device_id: phone |
| 7 | |
| 8 | # Enable the Web server |
| 9 | backend.http: |
| 10 | # port: 8008 |
| 11 | # Reduce the number of workers to avoid phantom process SIGKILL |
| 12 | # See https://ivonblog.com/en-us/posts/fix-termux-signal9-error/ |
| 13 | num_workers: 1 |
| 14 | |
| 15 | ntfy: |
| 16 | # Uncomment and set your custom server URL if you're using a self-hosted ntfy server |
| 17 | # Otherwise, the default public server (https://ntfy.sh) will be used. |
| 18 | # server_url: https://your-ntfy-server.com |
| 19 | subscriptions: |
| 20 | # Subscribe to the topic where music commands will be sent |
| 21 | - music-commands-<your-unique-id> |
| 22 | |
| 23 | music.mopidy: |
| 24 | host: localhost |
| 25 | # port: 6680 |
| 26 | |
| 27 | # Optional, if you also want to enable the MPD interface. |
| 28 | # The MPD interface provides better compatibility with MPD clients, |
| 29 | # but it will process events slower than the Mopidy interface |
| 30 | # (Mopidy dispatches events over WebSocket, while MPD clients poll for |
| 31 | # changes). |
| 32 | # Keep in mind that, on a mobile device, the MPD interface may consume more |
| 33 | # battery. |
| 34 | # |
| 35 | # music.mpd: |
| 36 | # host: localhost |
| 37 | # # port: 6600 |
| 38 | # poll_interval: 20.0 |