1、首次推出ddnsto、mi-scale、mpd、portainer;
2、完善emby及samba-easy-nas的docs及config。
18
README.md
@@ -48,4 +48,20 @@ MyIP一个更好的 IP 工具箱。可以查看IP、IP 信息(代理前后)
|
||||
|
||||
✓ [Zigbee2MQTT](zigbee2mqtt/) :
|
||||
|
||||
官方Zigbee2MQTT家庭助理插件
|
||||
官方Zigbee2MQTT家庭助理插件
|
||||
|
||||
✓ [portainer](portainer/) :
|
||||
|
||||
比较流行的docker管理工具
|
||||
|
||||
✓ [MPD](mpd/) :
|
||||
|
||||
HA中有名的播放器
|
||||
|
||||
✓ [ddnsto](ddnsto/) :
|
||||
|
||||
优秀的外网访问内网的插件
|
||||
|
||||
✓ [mi-scale](mi-scale/) :
|
||||
|
||||
小米体脂称插件
|
||||
3
ddnsto/CHANGELOG.md
Normal file
@@ -0,0 +1,3 @@
|
||||
## 3.0.5
|
||||
|
||||
- 首次发布。
|
||||
25
ddnsto/README.md
Normal file
@@ -0,0 +1,25 @@
|
||||
# 冬瓜甄选addons: DDNSTO
|
||||
|
||||
## 关于
|
||||
|
||||
非DDNSTO官方发布的第三方插件。
|
||||
|
||||
|
||||
|
||||
## 来源
|
||||
|
||||
https://github.com/TomCzHen/ddnsto-hassio
|
||||
|
||||
|
||||
|
||||
原作者写明:
|
||||
|
||||
**注意: 本插件并非 DDNSTO 官方发布。**
|
||||
|
||||
配置使用请查看 [https://doc.linkease.com/zh/guide/ddnsto/](https://doc.linkease.com/zh/guide/ddnsto/)
|
||||
|
||||
|
||||
|
||||
评价:
|
||||
|
||||
认真做好的带汉化的插件!
|
||||
20
ddnsto/config.yaml
Normal file
@@ -0,0 +1,20 @@
|
||||
name: "DDNSTO"
|
||||
slug: ddnsto
|
||||
version: "3.0.5"
|
||||
description: "DDNSTO 是一款稳定、快速、简单易用的内网穿透工具"
|
||||
url: https://gitcode.com/waxgourd/addons
|
||||
# codenotary: wghaos@163.com
|
||||
startup: services
|
||||
init: false
|
||||
apparmor: false
|
||||
arch:
|
||||
- aarch64
|
||||
- amd64
|
||||
host_network: true
|
||||
options:
|
||||
user_token:
|
||||
device_id: 0
|
||||
schema:
|
||||
user_token: match([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})
|
||||
device_id: list(0|1|2|3|4|5|6|7|8|9)
|
||||
image: "tomczhen/ddnsto-hassio-{arch}"
|
||||
BIN
ddnsto/icon.png
Normal file
|
After Width: | Height: | Size: 1.7 KiB |
BIN
ddnsto/logo.png
Normal file
|
After Width: | Height: | Size: 1.7 KiB |
7
ddnsto/translations/en.yaml
Normal file
@@ -0,0 +1,7 @@
|
||||
configuration:
|
||||
user_token:
|
||||
name: "User Token"
|
||||
description: "到 ddnsto 控制台获取用户 Token。"
|
||||
device_id:
|
||||
name: "Device ID"
|
||||
description: "如有多台设备 ID 重复,请修改设备编号用于区分。"
|
||||
7
ddnsto/translations/zh-Hans.yaml
Normal file
@@ -0,0 +1,7 @@
|
||||
configuration:
|
||||
user_token:
|
||||
name: "用户 Token"
|
||||
description: "到 ddnsto 控制台获取用户 Token。"
|
||||
device_id:
|
||||
name: "设备编号"
|
||||
description: "如有多台设备 ID 重复,请修改设备编号用于区分。"
|
||||
@@ -1,3 +1,6 @@
|
||||
|
||||
## 4.8.0.63 (23-12-2023)
|
||||
- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>linuxserver/docker-emby<62><79><EFBFBD>°<EFBFBD>
|
||||
|
||||
## 4.8.0.62 (16-12-2023)
|
||||
- <20>״<EFBFBD><D7B4>ύ
|
||||
|
||||
@@ -114,6 +114,6 @@
|
||||
"slug": "emby_nas",
|
||||
"udev": true,
|
||||
"url": "https://gitcode.com/waxgourd/addons",
|
||||
"version": "4.8.0.62",
|
||||
"version": "4.8.0.63",
|
||||
"video": true
|
||||
}
|
||||
|
||||
2
mi-scale/CHANGELOG.md
Normal file
@@ -0,0 +1,2 @@
|
||||
## [0.3.6] - 2022-10-10
|
||||
- 首次提交
|
||||
100
mi-scale/DOCS.md
Normal file
@@ -0,0 +1,100 @@
|
||||
# 支持的电子秤
|
||||
|
||||
支持类型:
|
||||
Name | Model | Picture
|
||||
--- | --- | ---
|
||||
[Mi Smart Scale 2](https://www.mi.com/global/scale) | XMTZC04HM | <img alt="Mi Scale_2" src="https://raw.githubusercontent.com/lolouk44/xiaomi_mi_scale/master/Screenshots/Mi_Smart_Scale_2_Thumb.png" width="150">
|
||||
[Mi Body Composition Scale](https://www.mi.com/global/mi-body-composition-scale/) | XMTZC02HM | <img alt="Mi Scale" src="https://raw.githubusercontent.com/lolouk44/xiaomi_mi_scale/master/Screenshots/Mi_Body_Composition_Scale_Thumb.png" width="150">
|
||||
[Mi Body Composition Scale 2](https://c.mi.com/thread-2289389-1-0.html) | XMTZC05HM | <img alt="Mi Body Composition Scale 2" src="https://raw.githubusercontent.com/lolouk44/xiaomi_mi_scale/master/Screenshots/Mi_Body_Composition_Scale_2_Thumb.png" width="150">
|
||||
|
||||
急着出,汉化后续调整!!!(冬瓜备注)
|
||||
|
||||
# Setup
|
||||
|
||||
1. Retrieve the scale's MAC address from the [Xiaomi Mi Fit app](https://play.google.com/store/apps/details?id=com.xiaomi.hm.health&hl=en&gl=US), or alternatively, you can also use the `bluetoothctl` tool on Linux and type `scan on` to scan for BLE devices (`sudo hcitool lescan` might also work). The device should be named `MIBFS` or similar.<br/>
|
||||
<img alt="Showing the MAC address in the Xiaomi Mi Fit app" src="https://raw.githubusercontent.com/lolouk44/xiaomi_mi_scale/master/Screenshots/MAC_Address.png" width="250">
|
||||
|
||||
|
||||
1. Open Home Assistant and navigate to the "Add-on Store". Click on the 3 dots (top right) and select "Repositories".
|
||||
2. Enter `https://github.com/lolouk44/hassio-addons` in the box and click on "Add".
|
||||
3. You should now see "Lolouk44 Add-Ons" at the bottom list.
|
||||
4. Click on "Xiaomi Mi Scale", then click "Install".
|
||||
5. Under the "Configuration" tab, change the settings appropriately (at least MQTT parameters, user properties, and MAC address), see [Parameters](#parameters).
|
||||
6. Start the Add-on.
|
||||
|
||||
## Important:
|
||||
If using the Add-On outside of Home Assistant Operating System / through a docker container, make sure the dbus is shared with the container running Home Assistant. This is typically done by adding the following line in your docker run command:
|
||||
`-v /var/run/dbus/:/var/run/dbus/:ro`
|
||||
or the following lines in your docker-compose file:
|
||||
```
|
||||
volumes:
|
||||
- /var/run/dbus/:/var/run/dbus/:ro
|
||||
```
|
||||
|
||||
## Parameters
|
||||
Option | Type | Required | Description
|
||||
--- | --- | --- | ---
|
||||
HCI_DEV | string | No | Bluetooth hci device to use. Defaults to `hci0`
|
||||
BLUEPY_PASSIVE_SCAN | bool | No | Try to set to true if getting an error like `Bluetooth connection error: Failed to execute management command ‘le on’` on a Raspberry Pi. Defaults to `false`
|
||||
MISCALE_MAC | string | Yes | MAC address of your scale
|
||||
MQTT_PREFIX | string | No | MQTT topic prefix, defaults to `miscale`
|
||||
MQTT_HOST | string | Yes | MQTT server, defaults to `127.0.0.1`
|
||||
MQTT_USERNAME | string | No | Username for MQTT server (comment out if not required)
|
||||
MQTT_PASSWORD | string | No | Password for MQTT (comment out if not required)
|
||||
MQTT_PORT | int | No | Port of your MQTT server, defaults to 1883
|
||||
MQTT_DISCOVERY | bool | No | Whether you want MQTT discovery for Home Assistant, defaults to `true`
|
||||
MQTT_DISCOVERY_PREFIX | string | No | MQTT discovery prefix for Home Assistant, defaults to `homeassistant`
|
||||
DEBUG_LEVEL | string | No | Logging level. Possible values: 'CRITICAL', 'ERROR', 'WARNING', 'INFO', 'DEBUG'. Defaults to 'INFO'
|
||||
USERS | List | Yes | List of users to add, see below
|
||||
|
||||
|
||||
Auto-gender selection/config: this is used to create the calculations such as BMI, Water/Bone Mass, etc.
|
||||
Here is the logic used to assign a measured weight to a user:
|
||||
- If the weight is within the range of a user's defined values for GT and LT, then it will be assigned (published) to that user.
|
||||
- If the weight matches two separate user ranges, it will only be assigned to the first user that matched. So don't create overlapping ranges!
|
||||
|
||||
User Option | Type | Required | Description
|
||||
--- | --- | --- | ---
|
||||
GT | int | Yes | Greater Than - Weight must be greater than this value; this will be the lower limit for the weight range of the user
|
||||
LT | int | Yes | Less Than - Weight must be less than this value; this will be the upper limit for the weight range of the user
|
||||
SEX | string | Yes | Gender of the user (male / female)
|
||||
NAME | string | Yes | Name of the user
|
||||
HEIGHT | int | Yes | Height (in cm) of the user
|
||||
DOB | string | Yes | Date of Birth of the user (in yyyy-mm-dd format)
|
||||
|
||||
Note: the weight definitions must be in the same unit as the scale (kg, Lbs, or jin).
|
||||
|
||||
|
||||
# Home Assistant Setup
|
||||
In the `mqtt:` block, enter as many blocks as users configured in your environment variables.
|
||||
If you already have an `mqtt:` and/or `sensor:` block, do not create another one but simply add the "missing" bits under the relevant block header.
|
||||
Note: Only weight entities are automatically added via the MQTT discovery.
|
||||
|
||||
|
||||
```yaml
|
||||
mqtt:
|
||||
sensor:
|
||||
- name: "Example Name Weight"
|
||||
state_topic: "miscale/USER_NAME/weight"
|
||||
value_template: "{{ value_json['weight'] }}"
|
||||
unit_of_measurement: "kg"
|
||||
json_attributes_topic: "miscale/USER_NAME/weight"
|
||||
icon: mdi:scale-bathroom
|
||||
# Below lines only needed if long term statistics are required
|
||||
state_class: "measurement"
|
||||
|
||||
- name: "Example Name BMI"
|
||||
state_topic: "miscale/USER_NAME/weight"
|
||||
value_template: "{{ value_json['bmi'] }}"
|
||||
icon: mdi:human-pregnant
|
||||
unit_of_measurement: "kg/m2"
|
||||
# Below lines only needed if long term statistics are required
|
||||
state_class: "measurement"
|
||||
```
|
||||
|
||||
<img align="center" alt="Example of the Lovelace card in HA" src="https://raw.githubusercontent.com/lolouk44/xiaomi_mi_scale/master/Screenshots/HA_Lovelace_Card.png" width="250"> 🠲 <img align="center" alt="Example of the details of the Lovelace card in HA" src="https://raw.githubusercontent.com/lolouk44/xiaomi_mi_scale/master/Screenshots/HA_Lovelace_Card_Details.png" width="250">
|
||||
|
||||
|
||||
|
||||
# Acknowledgements
|
||||
Thanks to @syssi (https://gist.github.com/syssi/4108a54877406dc231d95514e538bde9) and @prototux (https://github.com/wiecosystem/Bluetooth) for their initial code. Special thanks to [@ned-kelly](https://github.com/ned-kelly) for his help turning a "simple" Python script into a fully fledged Docker container. Thanks to [@bpaulin](https://github.com/bpaulin), [@fabir-git](https://github.com/fabir-git), [@snozzley](https://github.com/snozzley), [CodeFinder2](https://github.com/CodeFinder2) [@MariusHerget](https://github.com/MariusHerget) for their PRs and collaboration.
|
||||
15
mi-scale/README.md
Normal file
@@ -0,0 +1,15 @@
|
||||
# 冬瓜甄选addons: 小米体脂称
|
||||
|
||||
## 关于
|
||||
|
||||
小米体脂称汉化版,通过低功耗蓝牙(BLE)连接到小米体脂秤,从设备读取体重测量值,包括体重指数(BMI)、基础代谢、内脏脂肪、瘦体重、体脂、水量、骨量、肌肉量、蛋白质含量、体型、体重类别和代谢年龄。
|
||||
|
||||
## 来源
|
||||
|
||||
汉化借鉴
|
||||
|
||||
https://github.com/5high/hassio-addons/tree/master/mi-scale
|
||||
|
||||
原版引用
|
||||
|
||||
https://github.com/lolouk44/hassio-addons
|
||||
96
mi-scale/apparmor.txt
Normal file
@@ -0,0 +1,96 @@
|
||||
#include <tunables/global>
|
||||
|
||||
profile xiaomi_mi_scale flags=(attach_disconnected,mediate_deleted) {
|
||||
#include <abstractions/base>
|
||||
|
||||
# Capabilities
|
||||
network,
|
||||
capability,
|
||||
file,
|
||||
|
||||
# ###
|
||||
# included from https://github.com/edgexfoundry-holding/device-bluetooth-c/blob/main/docker-ble-policy
|
||||
# ###
|
||||
dbus (send, receive) bus=system peer=(name=org.bluez, label=unconfined),
|
||||
dbus (send, receive) bus=system interface=org.freedesktop.DBus peer=(label=unconfined),
|
||||
|
||||
# ###
|
||||
# included from https://github.com/jdstrand/snapd/blob/4befc00e3318a3231e96b38b575bf6e637ddad6c/interfaces/builtin/bluez.go
|
||||
# ###
|
||||
dbus (receive, send)
|
||||
bus=system
|
||||
interface=org.bluez.*
|
||||
peer=(label=unconfined),
|
||||
dbus (receive, send)
|
||||
bus=system
|
||||
path=/org/bluez{,/**}
|
||||
interface=org.freedesktop.DBus.*
|
||||
peer=(label=unconfined),
|
||||
dbus (receive, send)
|
||||
bus=system
|
||||
path=/
|
||||
interface=org.freedesktop.DBus.*
|
||||
peer=(label=unconfined),
|
||||
|
||||
|
||||
# ###
|
||||
# included from https://developers.home-assistant.io/docs/add-ons/presentation#apparmor
|
||||
# ###
|
||||
signal (send) set=(kill,term,int,hup,cont),
|
||||
|
||||
# Receive signals from S6-Overlay
|
||||
signal (send,receive) peer=*_xiaomi_mi_scale,
|
||||
|
||||
# S6-Overlay
|
||||
/init ix,
|
||||
/bin/** ix,
|
||||
/usr/bin/** ix,
|
||||
/run/{s6,s6-rc*,service}/** ix,
|
||||
/package/** ix,
|
||||
/command/** ix,
|
||||
/etc/services.d/** rwix,
|
||||
/etc/cont-init.d/** rwix,
|
||||
/etc/cont-finish.d/** rwix,
|
||||
/run/{,**} rwk,
|
||||
/dev/tty rw,
|
||||
|
||||
# Bashio
|
||||
/usr/lib/bashio/** ix,
|
||||
/tmp/** rwk,
|
||||
|
||||
# Access to options.json and other files within your addon
|
||||
/data/** rw,
|
||||
|
||||
# Access to mapped volumes specified in config.json
|
||||
/share/** rw,
|
||||
|
||||
|
||||
# ###
|
||||
# included from https://gist.github.com/disconnect3d/d578af68b09ab56db657854ec03879aa
|
||||
# (docker-default profile which would usually be used for this container)
|
||||
# ###
|
||||
signal (receive) peer=unconfined,
|
||||
signal (send,receive) peer=docker-default,
|
||||
|
||||
deny @{PROC}/* w, # deny write for all files directly in /proc (not in a subdir)
|
||||
# deny write to files not in /proc/<number>/** or /proc/sys/**
|
||||
deny @{PROC}/{[^1-9],[^1-9][^0-9],[^1-9s][^0-9y][^0-9s],[^1-9][^0-9][^0-9][^0-9]*}/** w,
|
||||
deny @{PROC}/sys/[^k]** w, # deny /proc/sys except /proc/sys/k* (effectively /proc/sys/kernel)
|
||||
deny @{PROC}/sys/kernel/{?,??,[^s][^h][^m]**} w, # deny everything except shm* in /proc/sys/kernel/
|
||||
deny @{PROC}/sysrq-trigger rwklx,
|
||||
deny @{PROC}/kcore rwklx,
|
||||
|
||||
deny mount,
|
||||
|
||||
deny /sys/[^f]*/** wklx,
|
||||
deny /sys/f[^s]*/** wklx,
|
||||
deny /sys/fs/[^c]*/** wklx,
|
||||
deny /sys/fs/c[^g]*/** wklx,
|
||||
deny /sys/fs/cg[^r]*/** wklx,
|
||||
deny /sys/firmware/** rwklx,
|
||||
deny /sys/kernel/security/** rwklx,
|
||||
|
||||
|
||||
# suppress ptrace denials when using 'docker ps' or using 'ps' inside a container
|
||||
ptrace (trace,read) peer=docker-default,
|
||||
}
|
||||
96
mi-scale/config.json
Normal file
@@ -0,0 +1,96 @@
|
||||
{
|
||||
"name": "Xiaomi Mi Scale",
|
||||
"version": "0.3.6",
|
||||
"slug": "xiaomi_mi_scale",
|
||||
"description": "通过蓝牙(BLE)读取小米体脂秤的测量值",
|
||||
"url": "https://github.com/alexbelgium/hassio-addons",
|
||||
"image": "wghaos/mi-scale",
|
||||
"arch": ["armhf", "armv7", "aarch64", "amd64", "i386"],
|
||||
"startup": "application",
|
||||
"boot": "auto",
|
||||
"host_dbus": true,
|
||||
"panel_admin": false,
|
||||
"host_network": true,
|
||||
"apparmor": true,
|
||||
"privileged": ["NET_ADMIN", "SYS_ADMIN"],
|
||||
|
||||
"options": {
|
||||
"HCI_DEV": "hci0",
|
||||
"BLUEPY_PASSIVE_SCAN": false,
|
||||
"MISCALE_MAC": "00:00:00:00:00:00",
|
||||
"MQTT_PREFIX": "miscale",
|
||||
"MQTT_HOST": "127.0.0.1",
|
||||
"MQTT_USERNAME": "user",
|
||||
"MQTT_PASSWORD": "passwd",
|
||||
"MQTT_PORT": 1883,
|
||||
"MQTT_RETAIN": true,
|
||||
"MQTT_DISCOVERY": true,
|
||||
"MQTT_DISCOVERY_PREFIX": "homeassistant",
|
||||
"MQTT_TLS_CACERTS": "Path to CA Cert File",
|
||||
"MQTT_TLS_INSECURE": false,
|
||||
"DEBUG_LEVEL": "error",
|
||||
|
||||
"USERS": [
|
||||
{
|
||||
"NAME": "Bob",
|
||||
"SEX": "male",
|
||||
"GT": 60,
|
||||
"LT": 80,
|
||||
"HEIGHT": 180,
|
||||
"DOB": "1980-01-01"
|
||||
},
|
||||
{
|
||||
"NAME": "Mary",
|
||||
"SEX": "female",
|
||||
"GT": 40,
|
||||
"LT": 60,
|
||||
"HEIGHT": 160,
|
||||
"DOB": "1990-01-01"
|
||||
},
|
||||
{
|
||||
"NAME": "Timmy",
|
||||
"SEX": "male",
|
||||
"GT": 20,
|
||||
"LT": 40,
|
||||
"HEIGHT": 120,
|
||||
"DOB": "2010-01-01"
|
||||
},
|
||||
{
|
||||
"NAME": "Baby Sally",
|
||||
"SEX": "female",
|
||||
"GT": 1,
|
||||
"LT": 20,
|
||||
"HEIGHT": 50,
|
||||
"DOB": "2020-01-01"
|
||||
}
|
||||
]
|
||||
|
||||
},
|
||||
"schema": {
|
||||
"HCI_DEV": "str?",
|
||||
"BLUEPY_PASSIVE_SCAN": "bool?",
|
||||
"MISCALE_MAC": "str",
|
||||
"MQTT_PREFIX": "str?",
|
||||
"MQTT_HOST": "str",
|
||||
"MQTT_USERNAME": "str?",
|
||||
"MQTT_PASSWORD": "str?",
|
||||
"MQTT_PORT": "int?",
|
||||
"MQTT_RETAIN": "bool?",
|
||||
"MQTT_DISCOVERY": "bool?",
|
||||
"MQTT_DISCOVERY_PREFIX": "str?",
|
||||
"MQTT_TLS_CACERTS": "str?",
|
||||
"MQTT_TLS_INSECURE": "bool?",
|
||||
"DEBUG_LEVEL": "str?",
|
||||
|
||||
"USERS": [
|
||||
{
|
||||
"NAME": "str",
|
||||
"SEX": "str",
|
||||
"GT": "int",
|
||||
"LT": "int",
|
||||
"HEIGHT": "int",
|
||||
"DOB": "str"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
BIN
mi-scale/icon.png
Normal file
|
After Width: | Height: | Size: 11 KiB |
BIN
mi-scale/logo.png
Normal file
|
After Width: | Height: | Size: 9.2 KiB |
3
mpd/CHANGELOG.md
Normal file
@@ -0,0 +1,3 @@
|
||||
## 1.7.2 - 2022-08-17
|
||||
|
||||
* 首次推出
|
||||
62
mpd/DOCS.md
Normal file
@@ -0,0 +1,62 @@
|
||||
# 配置项说明:
|
||||
|
||||
下面是插件作者的建议:
|
||||
|
||||
```yaml
|
||||
media_folder: /media/mpd/media
|
||||
playlist_folder: /media/mpd/playlists
|
||||
volume_normalization: false
|
||||
httpd_output: false
|
||||
```
|
||||
|
||||
### 音量标准化
|
||||
|
||||
启用内置的音量标准化功能。
|
||||
|
||||
### httpd输出
|
||||
|
||||
启用 httpd 音频输出。
|
||||
|
||||
### 媒体文件夹
|
||||
|
||||
此选项允许你指定自定义媒体文件夹。
|
||||
|
||||
### 播放列表文件夹
|
||||
|
||||
此选项允许你指定自定义播放列表文件夹。
|
||||
|
||||
### 详细 (可选项)
|
||||
|
||||
`MPD` 详细日志参数。
|
||||
|
||||
|
||||
### 自定义配置 (可选项)
|
||||
|
||||
**如果指定此选项,则忽略所有其他选项。**
|
||||
|
||||
此选项允许你为 MPD 指定自定义配置文件。
|
||||
为了将所有 MPD 文件保存在一个位置,己将路径前缀限制为“/share/MPD ”。
|
||||
请使用插件的默认 [MPD.conf](https://github.com/poeschl/hassio-addons/blob/main/mpd/root/etc/mpd.conf )作为参考。
|
||||
如果你的配置有问题,请查阅官方文档[MPD Docs](https://www.musicpd.org/doc/html/user.html#configuration),找解决方法。
|
||||
|
||||
# 故障排除
|
||||
|
||||
### `RTIOThread could not get realtime scheduling, continuing anyway: sched_setscheduler`
|
||||
|
||||
此错误显示在任何非 glibc 系统(如 Alpine Linux)上。MPD 应该在没有它的情况下工作。
|
||||
更多请看这里: [MPD Issue](https://github.com/MusicPlayerDaemon/MPD/issues/218)
|
||||
|
||||
### `Failed to open '/data/database/mpd.db': No such file or directory`
|
||||
|
||||
当数据库不存在时,此错误在第一次启动时显示。它将在第二次运行时出现。
|
||||
|
||||
# MPD
|
||||
|
||||
要从HA连接,请使用以下配置:
|
||||
|
||||
```yaml
|
||||
media_player:
|
||||
- platform: mpd
|
||||
host: 243ffc37-mpd
|
||||
port: 6600
|
||||
```
|
||||
11
mpd/README.md
Normal file
@@ -0,0 +1,11 @@
|
||||
# 冬瓜甄选addons: MPD
|
||||
|
||||
## 关于
|
||||
|
||||
[MPD](https://www.musicpd.org)是一款免费的开源音乐播放器。它可以播放音频文件、组织播放列表并维护音乐数据库。本插件中包含有简易的WEB前端[YMPD](https://ympd.org/)。
|
||||
|
||||
|
||||
|
||||
## 来源
|
||||
|
||||
https://github.com/Poeschl/Hassio-Addons/tree/main/mpd
|
||||
43
mpd/config.yaml
Normal file
@@ -0,0 +1,43 @@
|
||||
name: MPD
|
||||
version: 1.7.2
|
||||
slug: mpd
|
||||
panel_icon: mdi:music-circle
|
||||
description: >-
|
||||
音乐播放器守护进程是一个免费和开源的音乐播放器。它播放音频文件,组织播放列表和维护音乐数据库
|
||||
url: https://gitcode.com/waxgourd/addons
|
||||
ingress: true
|
||||
ingress_port: 6680
|
||||
arch:
|
||||
- armv7
|
||||
- armhf
|
||||
- aarch64
|
||||
- amd64
|
||||
- i386
|
||||
image: ghcr.nju.edu.cn/poeschl/ha-mpd-{arch}
|
||||
init: false
|
||||
audio: true
|
||||
devices:
|
||||
- /dev/snd
|
||||
map:
|
||||
- share:rw
|
||||
- media:rw
|
||||
ports:
|
||||
6680/tcp: null
|
||||
6600/tcp: 6600
|
||||
8000/tcp: null
|
||||
ports_description:
|
||||
6680/tcp: Web Frontend (Not needed with ingress feature)
|
||||
6600/tcp: MDP Connection
|
||||
8000/tcp: HTTPd Connection (if enabled)
|
||||
options:
|
||||
media_folder: /media/mpd/media
|
||||
playlist_folder: /media/mpd/playlists
|
||||
volume_normalization: false
|
||||
httpd_output: false
|
||||
schema:
|
||||
media_folder: match(/share/.+|/media/.+|(smb|nfs)://.+)
|
||||
playlist_folder: match(/share/.+|/media/.+|(smb|nfs)://.+)
|
||||
volume_normalization: bool
|
||||
httpd_output: bool
|
||||
verbose: bool?
|
||||
custom_config: match(/share/mpd/.+)?
|
||||
BIN
mpd/icon.png
Normal file
|
After Width: | Height: | Size: 11 KiB |
BIN
mpd/logo.png
Normal file
|
After Width: | Height: | Size: 10 KiB |
14
mpd/translations/en.yaml
Normal file
@@ -0,0 +1,14 @@
|
||||
---
|
||||
configuration:
|
||||
media_folder:
|
||||
name: media_folder
|
||||
playlist_folder:
|
||||
name: playlist_folder
|
||||
volume_normalization:
|
||||
name: volume_normalization
|
||||
httpd_output:
|
||||
name: httpd_output
|
||||
verbose:
|
||||
name: verbose
|
||||
custom_config:
|
||||
name: custom_config
|
||||
14
mpd/translations/zh-Hans.yaml
Normal file
@@ -0,0 +1,14 @@
|
||||
---
|
||||
configuration:
|
||||
media_folder:
|
||||
name: 媒体文件夹
|
||||
playlist_folder:
|
||||
name: 播放列表文件夹
|
||||
volume_normalization:
|
||||
name: 音量标准化
|
||||
httpd_output:
|
||||
name: httpd输出
|
||||
verbose:
|
||||
name: 详细日志输出
|
||||
custom_config:
|
||||
name: 自定义配置
|
||||
2
portainer/CHANGELOG.md
Normal file
@@ -0,0 +1,2 @@
|
||||
### 2.19.4-3 (11-12-2023)
|
||||
- 首次推出
|
||||
10
portainer/DOCS.md
Normal file
@@ -0,0 +1,10 @@
|
||||
Portainer 主要用于在 Docker 容器中执行自定义命令。它是一个开源的轻量级管理 UI,允许你轻松管理 Docker 主机或 Docker Swarm 集群。
|
||||
|
||||
# 快速开始
|
||||
- 在password中设置一下登录密码就行。
|
||||
|
||||
默认用户名:admin
|
||||
|
||||
- 在主页中,关闭“保护模式”,然后启动加载项。
|
||||
|
||||
|
||||
13
portainer/README.md
Normal file
@@ -0,0 +1,13 @@
|
||||
# 冬瓜甄选addons:Portainer
|
||||
|
||||
## 关于
|
||||
|
||||
这是一个很有名的docker可视化界面的管理工具。此版本为原始英文版,直接同步最新版本。
|
||||
|
||||
如对汉化版有兴趣,未来会出一个汉化专版。
|
||||
|
||||
|
||||
|
||||
## 来源
|
||||
|
||||
https://github.com/alexbelgium/hassio-addons/tree/master/portainer
|
||||
59
portainer/apparmor.txt
Normal file
@@ -0,0 +1,59 @@
|
||||
#include <tunables/global>
|
||||
|
||||
profile portainer_addon flags=(attach_disconnected,mediate_deleted) {
|
||||
#include <abstractions/base>
|
||||
|
||||
capability,
|
||||
file,
|
||||
signal,
|
||||
mount,
|
||||
umount,
|
||||
remount,
|
||||
network udp,
|
||||
network tcp,
|
||||
network dgram,
|
||||
network stream,
|
||||
network inet,
|
||||
network inet6,
|
||||
network netlink raw,
|
||||
network unix dgram,
|
||||
capability setgid,
|
||||
capability setuid,
|
||||
|
||||
|
||||
# S6-Overlay
|
||||
/init ix,
|
||||
/run/{s6,s6-rc*,service}/** ix,
|
||||
/package/** ix,
|
||||
/command/** ix,
|
||||
/run/{,**} rwk,
|
||||
/dev/tty rw,
|
||||
/bin/** ix,
|
||||
/usr/bin/** ix,
|
||||
/usr/lib/bashio/** ix,
|
||||
/etc/s6/** rix,
|
||||
/run/s6/** rix,
|
||||
/etc/services.d/** rwix,
|
||||
/etc/cont-init.d/** rwix,
|
||||
/etc/cont-finish.d/** rwix,
|
||||
/init rix,
|
||||
/var/run/** mrwkl,
|
||||
/var/run/ mrwkl,
|
||||
/dev/i2c-1 mrwkl,
|
||||
/dev/fuse mrwkl,
|
||||
/dev/sda1 mrwkl,
|
||||
/dev/sdb1 mrwkl,
|
||||
/dev/nvme0 mrwkl,
|
||||
/dev/nvme1 mrwkl,
|
||||
/dev/mmcblk0p1 mrwkl,
|
||||
|
||||
# Data access
|
||||
/data/** rw,
|
||||
|
||||
# suppress ptrace denials when using 'docker ps' or using 'ps' inside a container
|
||||
ptrace (trace,read) peer=docker-default,
|
||||
|
||||
# docker daemon confinement requires explict allow rule for signal
|
||||
signal (receive) set=(kill,term) peer=/usr/bin/docker,
|
||||
|
||||
}
|
||||
50
portainer/config.json
Normal file
@@ -0,0 +1,50 @@
|
||||
{
|
||||
"arch": [
|
||||
"aarch64",
|
||||
"amd64",
|
||||
"armv7"
|
||||
],
|
||||
"backup_exclude": [
|
||||
"backups",
|
||||
"docker_config/cli-plugins"
|
||||
],
|
||||
"codenotary": "wghaos@163.com",
|
||||
"description": "轻松管理您的Docker环境",
|
||||
"docker_api": true,
|
||||
"hassio_api": true,
|
||||
"image": "ghcr.nju.edu.cn/alexbelgium/portainer-{arch}",
|
||||
"ingress": true,
|
||||
"ingress_port": 1337,
|
||||
"ingress_stream": true,
|
||||
"init": false,
|
||||
"map": [
|
||||
"share:rw",
|
||||
"ssl"
|
||||
],
|
||||
"name": "Portainer",
|
||||
"options": {
|
||||
"certfile": "fullchain.pem",
|
||||
"keyfile": "privkey.pem",
|
||||
"password": "homeassistant",
|
||||
"ssl": false
|
||||
},
|
||||
"panel_icon": "mdi:docker",
|
||||
"ports": {
|
||||
"8000/tcp": null,
|
||||
"9099/tcp": 9000
|
||||
},
|
||||
"ports_description": {
|
||||
"8000/tcp": "Edge Agent Api (Enable when managing remote edge agents)",
|
||||
"9099/tcp": "Web UI port"
|
||||
},
|
||||
"schema": {
|
||||
"certfile": "str",
|
||||
"keyfile": "str",
|
||||
"password": "str?",
|
||||
"ssl": "bool"
|
||||
},
|
||||
"slug": "portainer",
|
||||
"udev": true,
|
||||
"url": "https://gitcode.com/waxgourd/addons",
|
||||
"version": "2.19.4-3"
|
||||
}
|
||||
BIN
portainer/icon.png
Normal file
|
After Width: | Height: | Size: 3.0 KiB |
BIN
portainer/logo.png
Normal file
|
After Width: | Height: | Size: 3.0 KiB |
16
portainer/translations/en.yaml
Normal file
@@ -0,0 +1,16 @@
|
||||
---
|
||||
configuration:
|
||||
certfile:
|
||||
name: certfile
|
||||
description: >-
|
||||
ssl certificate, must be located in /ssl.
|
||||
password:
|
||||
name: password
|
||||
description: >-
|
||||
define admin password. If kept blank, will allow manual restore of previous backup. At least 12 characters.
|
||||
keyfile:
|
||||
name: keyfile
|
||||
description: >-
|
||||
sslkeyfile, must be located in /ssl.
|
||||
ssl:
|
||||
name: ssl
|
||||
16
portainer/translations/zh-Hans.yaml
Normal file
@@ -0,0 +1,16 @@
|
||||
---
|
||||
configuration:
|
||||
certfile:
|
||||
name: 证书文件
|
||||
description: >-
|
||||
SSL证书,必须位于/ SSL目录下。
|
||||
password:
|
||||
name: 密码
|
||||
description: >-
|
||||
定义admin密码。如果保持空白,将允许手动恢复以前的备份。至少12个字符。
|
||||
keyfile:
|
||||
name: 密钥
|
||||
description: >-
|
||||
ssl密钥,必须位于/SSL目录下。
|
||||
ssl:
|
||||
name: ssl
|
||||
@@ -25,9 +25,8 @@
|
||||
允许那些IP地址或IP段可以访问本服务。非特殊需求可不做修改。
|
||||
|
||||
### 网络适配器:
|
||||
用于绑定特定的网络适配器,如虚拟网络适配器较多的情况下在访问不到本服务,则可以调整一下网卡的先后次序。
|
||||
这里填写samba使用的网络适配器,x86一般为enp2s1,其他的end0,最好net info命令查看一下。
|
||||
|
||||
### 本地存储器:
|
||||
挂载的本地存储器的路径,可根据个人需求更改。 支持文件系统“NTFS、FAT32、FAT16、EXT3、EXT4“等。
|
||||
|
||||
挂载的本地存储器(填写sda1或sdb1),查看host主机中挂载的盘位于/dev。 支持文件系统”FAT32、FAT16、EXT3、EXT4“等。
|
||||
|
||||
|
||||
@@ -128,9 +128,7 @@ options:
|
||||
- fc00::/7
|
||||
interfaces:
|
||||
- end0
|
||||
- eth0
|
||||
- wlan0
|
||||
- virtbr0
|
||||
- enp2s1
|
||||
schema:
|
||||
username: str
|
||||
password: password
|
||||
|
||||
@@ -27,8 +27,8 @@ configuration:
|
||||
interfaces:
|
||||
name: 网络适配器
|
||||
description: >-
|
||||
这里填写samba使用的网络适配器.
|
||||
这里填写samba使用的网络适配器,x86一般为enp2s1,其他的end0,最好net info命令查看一下.
|
||||
localdisks:
|
||||
name: 本地存储器
|
||||
description: >-
|
||||
挂载的本地存储器的路径.
|
||||
挂载的本地存储器(填写sda1或sdb1),查看host主机中挂载的盘位于/dev.
|
||||