『瀚思彼岸』» 智能家居技术论坛

 找回密码
 立即注册
楼主: lidicn

[基础教程] 【推荐】HA最华丽的播放器【mopidy】【填坑】增加本地媒体

  [复制链接]

6

主题

62

帖子

475

积分

论坛技术达人

积分
475
金钱
413
HASS币
0
发表于 2018-7-18 23:43:08 | 显示全部楼层
学习一下丫丫
回复

使用道具 举报

5

主题

75

帖子

434

积分

中级会员

Rank: 3Rank: 3

积分
434
金钱
359
HASS币
0
发表于 2018-7-18 23:55:56 | 显示全部楼层
感谢楼主分享
回复

使用道具 举报

2

主题

177

帖子

2667

积分

金牌会员

Rank: 6Rank: 6

积分
2667
金钱
2490
HASS币
0
发表于 2018-7-19 18:50:53 | 显示全部楼层
期待若琪能当DLNA音箱用呢。
回复

使用道具 举报

20

主题

459

帖子

2819

积分

金牌会员

Rank: 6Rank: 6

积分
2819
金钱
2360
HASS币
0
发表于 2018-7-19 22:37:09 | 显示全部楼层
carlos 发表于 2018-7-7 18:19
大佬我配置sqlite的时候进行扫描,报错是什么原因啊

找到解决办法了吗?我跟你类似。修改好了mopidy.conf,但是mopidy不知道调用的什么鬼配置文件
cat ~/.config/mopidy/mopidy.conf
# For further information about options in this file see:
..#   [url]http://docs.mopidy.com/.[/url]
#
# The initial commented out values reflect the defaults as of:
#   Mopidy 2.1.0
#   Mopidy-File 2.1.0
#   Mopidy-HTTP 2.1.0
#   Mopidy-Local 2.1.0
#   Mopidy-M3U 2.1.0
#   Mopidy-MPD 2.1.0
#   Mopidy-SoftwareMixer 2.1.0
#   Mopidy-Stream 2.1.0
#
# Available options and defaults might have changed since then,
# run `mopidy config` to see the current effective config and
# `mopidy --version` to check the current version.

[core]
cache_dir = $XDG_CACHE_DIR/mopidy
config_dir = $XDG_CONFIG_DIR/mopidy
data_dir = $XDG_DATA_DIR/mopidy
max_tracklist_length = 10000
restore_state = false

[logging]
#color = true
#console_format = %(levelname)-8s %(message)s
#debug_format = %(levelname)-8s %(asctime)s [%(process)d:%(threadName)s] %(name)s\n  %(message)s
#debug_file = mopidy.log
#config_file =

[audio]
mixer = software
mixer_volume = 
output = autoaudiosink
buffer_time = 

[proxy]
#scheme = 
#hostname = 
#port = 
#username = 
#password = 

[mpd]
enabled = true
hostname = 192.168.1.152
port = 6600
password = 
max_connections = 20
connection_timeout = 60
zeroconf = Mopidy MPD server on $hostname
command_blacklist = 
  listall
  listallinfo
default_playlist_scheme = m3u

[http]
enabled = true
hostname = 192.168.1.152
port = 6680
static_dir =
zeroconf = Mopidy HTTP server on $hostname

[stream]
#enabled = true
#protocols = 
#  http
#  https
#  mms
#  rtmp
#  rtmps
#  rtsp
#metadata_blacklist = 
#timeout = 5000

[m3u]
enabled = true
base_dir =
default_encoding = latin-1
default_extension = .m3u8
playlists_dir = /home/homeassistant/.homeassistant/www/playlist

[softwaremixer]
#enabled = true

[file]
#enabled = true
#media_dirs = 
#  $XDG_MUSIC_DIR|Music
#  ~/|Home
#excluded_file_extensions = 
#  .jpg
#  .jpeg
#show_dotfiles = false
#follow_symlinks = false
#metadata_timeout = 1000

[local]
enabled = true
library = sqlite
media_dir = /media
scan_timeout = 1000
scan_flush_threshold = 100
scan_follow_symlinks = false
excluded_file_extensions =
  .directory
  .html
  .jpeg
  .jpg
  .log
  .nfo
  .png
  .txt
 
[local-sqlite]
enabled = true
 
# top-level directories for browsing, as <name> <uri>
directories =
    Albums                  local:directory?type=album
    Artists                 local:directory?type=artist
    Composers               local:directory?type=artist&role=composer
    Genres                  local:directory?type=genre
    Performers              local:directory?type=artist&role=performer
    Release Years           local:directory?type=date&format=%25Y
    Tracks                  local:directory?type=track
    Last Week's Updates     local:directory?max-age=604800
    Last Month's Updates    local:directory?max-age=2592000
 
# database connection timeout in seconds
timeout = 10
 
# whether to use an album's musicbrainz_id for generating its URI
use_album_mbid_uri = true
 
# whether to use an artist's musicbrainz_id for generating its URI;
# disabled by default, since some taggers do not handle this well for
# multi-artist tracks [[url]https://github.com/sampsyo/beets/issues/907[/url]]
use_artist_mbid_uri = false
 
# whether to use the sortname field for sorting artist browse results;
# set to false to sort according to displayed name only
use_artist_sortname = true
pi@hassbian:~ $ mopidy config
WARNING  /home/pi/.config/mopidy/mopidy.conf does not have a config section, not loaded.
[core]
cache_dir = $XDG_CACHE_DIR/mopidy
config_dir = $XDG_CONFIG_DIR/mopidy
data_dir = $XDG_DATA_DIR/mopidy
max_tracklist_length = 10000
restore_state = false

[logging]
color = true
console_format = %(levelname)-8s %(message)s
debug_format = %(levelname)-8s %(asctime)s [%(process)d:%(threadName)s] %(name)s\n  %(message)s
debug_file = mopidy.log
config_file =

[audio]
mixer = software
mixer_volume = 
output = autoaudiosink
buffer_time = 

[proxy]
scheme = 
hostname = 
port = 
username = 
password = 

[mpd]
enabled = true
hostname = 127.0.0.1
port = 6600
password = 
max_connections = 20
connection_timeout = 60
zeroconf = Mopidy MPD server on $hostname
command_blacklist = 
  listall
  listallinfo
default_playlist_scheme = m3u

[http]
enabled = true
hostname = 127.0.0.1
port = 6680
static_dir =
zeroconf = Mopidy HTTP server on $hostname

[stream]
enabled = true
protocols = 
  http
  https
  mms
  rtmp
  rtmps
  rtsp
metadata_blacklist = 
timeout = 5000

[m3u]
enabled = true
base_dir =
default_encoding = latin-1
default_extension = .m3u8
playlists_dir =

[softwaremixer]
enabled = true

[file]
enabled = true
media_dirs = 
  $XDG_MUSIC_DIR|Music
  ~/|Home
excluded_file_extensions = 
  .jpg
  .jpeg
show_dotfiles = false
follow_symlinks = false
metadata_timeout = 1000

[local]
enabled = false  ; Extension disabled due to config errors.
library = json
media_dir =  ; Must be set.
scan_timeout = 1000
scan_flush_threshold = 100
scan_follow_symlinks = false
excluded_file_extensions = 
  .directory
  .html
  .jpeg
  .jpg
  .log
  .nfo
  .png
  .txt
回复

使用道具 举报

4

主题

92

帖子

581

积分

论坛积极会员

积分
581
金钱
489
HASS币
0
发表于 2018-7-22 18:17:59 | 显示全部楼层
看看先学习一下
回复

使用道具 举报

0

主题

22

帖子

111

积分

注册会员

Rank: 2

积分
111
金钱
89
HASS币
0
发表于 2018-7-22 19:21:27 | 显示全部楼层
来看看,学习一下
回复

使用道具 举报

0

主题

14

帖子

86

积分

注册会员

Rank: 2

积分
86
金钱
72
HASS币
0
发表于 2018-7-23 16:37:48 | 显示全部楼层
萌新入坑,求大佬带
回复

使用道具 举报

5

主题

115

帖子

519

积分

高级会员

Rank: 4

积分
519
金钱
404
HASS币
0
发表于 2018-7-23 16:55:36 | 显示全部楼层
学习一下。。。
回复

使用道具 举报

3

主题

220

帖子

2094

积分

金牌会员

Rank: 6Rank: 6

积分
2094
金钱
1874
HASS币
0
发表于 2018-8-9 18:33:21 | 显示全部楼层
KODI怎么装
回复

使用道具 举报

7

主题

109

帖子

750

积分

高级会员

Rank: 4

积分
750
金钱
641
HASS币
0
发表于 2018-8-16 21:52:13 | 显示全部楼层
学习学习
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-5-29 19:04 , Processed in 0.055814 second(s), 30 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表