diff --git a/README.md b/README.md index ecc03e2..cc1b657 100644 --- a/README.md +++ b/README.md @@ -48,4 +48,20 @@ MyIP一个更好的 IP 工具箱。可以查看IP、IP 信息(代理前后) ✓ [Zigbee2MQTT](zigbee2mqtt/) : -官方Zigbee2MQTT家庭助理插件 \ No newline at end of file +官方Zigbee2MQTT家庭助理插件 + +✓ [portainer](portainer/) : + +比较流行的docker管理工具 + +✓ [MPD](mpd/) : + +HA中有名的播放器 + +✓ [ddnsto](ddnsto/) : + +优秀的外网访问内网的插件 + +✓ [mi-scale](mi-scale/) : + +小米体脂称插件 \ No newline at end of file diff --git a/ddnsto/CHANGELOG.md b/ddnsto/CHANGELOG.md new file mode 100644 index 0000000..371cab7 --- /dev/null +++ b/ddnsto/CHANGELOG.md @@ -0,0 +1,3 @@ +## 3.0.5 + + - 首次发布。 \ No newline at end of file diff --git a/ddnsto/README.md b/ddnsto/README.md new file mode 100644 index 0000000..cbaedd8 --- /dev/null +++ b/ddnsto/README.md @@ -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/) + + + +评价: + +认真做好的带汉化的插件! \ No newline at end of file diff --git a/ddnsto/config.yaml b/ddnsto/config.yaml new file mode 100644 index 0000000..28eb840 --- /dev/null +++ b/ddnsto/config.yaml @@ -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}" \ No newline at end of file diff --git a/ddnsto/icon.png b/ddnsto/icon.png new file mode 100644 index 0000000..25f75ce Binary files /dev/null and b/ddnsto/icon.png differ diff --git a/ddnsto/logo.png b/ddnsto/logo.png new file mode 100644 index 0000000..25f75ce Binary files /dev/null and b/ddnsto/logo.png differ diff --git a/ddnsto/translations/en.yaml b/ddnsto/translations/en.yaml new file mode 100644 index 0000000..e17c9b1 --- /dev/null +++ b/ddnsto/translations/en.yaml @@ -0,0 +1,7 @@ +configuration: + user_token: + name: "User Token" + description: "到 ddnsto 控制台获取用户 Token。" + device_id: + name: "Device ID" + description: "如有多台设备 ID 重复,请修改设备编号用于区分。" \ No newline at end of file diff --git a/ddnsto/translations/zh-Hans.yaml b/ddnsto/translations/zh-Hans.yaml new file mode 100644 index 0000000..3bde314 --- /dev/null +++ b/ddnsto/translations/zh-Hans.yaml @@ -0,0 +1,7 @@ +configuration: + user_token: + name: "用户 Token" + description: "到 ddnsto 控制台获取用户 Token。" + device_id: + name: "设备编号" + description: "如有多台设备 ID 重复,请修改设备编号用于区分。" \ No newline at end of file diff --git a/emby/CHANGELOG.md b/emby/CHANGELOG.md index 9e52aeb..894dfe9 100644 --- a/emby/CHANGELOG.md +++ b/emby/CHANGELOG.md @@ -1,3 +1,6 @@ +## 4.8.0.63 (23-12-2023) +- linuxserver/docker-emby° + ## 4.8.0.62 (16-12-2023) - ״ύ diff --git a/emby/config.json b/emby/config.json index daf7bd0..6f9b2f8 100644 --- a/emby/config.json +++ b/emby/config.json @@ -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 } diff --git a/mi-scale/CHANGELOG.md b/mi-scale/CHANGELOG.md new file mode 100644 index 0000000..18133e8 --- /dev/null +++ b/mi-scale/CHANGELOG.md @@ -0,0 +1,2 @@ +## [0.3.6] - 2022-10-10 +- 首次提交 diff --git a/mi-scale/DOCS.md b/mi-scale/DOCS.md new file mode 100644 index 0000000..cacdecb --- /dev/null +++ b/mi-scale/DOCS.md @@ -0,0 +1,100 @@ +# 支持的电子秤 + +支持类型: +Name | Model | Picture +--- | --- | --- +[Mi Smart Scale 2](https://www.mi.com/global/scale)                                                                                               | XMTZC04HM | Mi Scale_2 +[Mi Body Composition Scale](https://www.mi.com/global/mi-body-composition-scale/) | XMTZC02HM | Mi Scale +[Mi Body Composition Scale 2](https://c.mi.com/thread-2289389-1-0.html) | XMTZC05HM | Mi Body Composition Scale 2 + +急着出,汉化后续调整!!!(冬瓜备注) + +# 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.
+Showing the MAC address in the Xiaomi Mi Fit app + + +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" +``` + +Example of the Lovelace card in HA 🠲 Example of the details of the Lovelace card in HA + + + +# 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. diff --git a/mi-scale/README.md b/mi-scale/README.md new file mode 100644 index 0000000..8a12d16 --- /dev/null +++ b/mi-scale/README.md @@ -0,0 +1,15 @@ +# 冬瓜甄选addons: 小米体脂称 + +## 关于 + +小米体脂称汉化版,通过低功耗蓝牙(BLE)连接到小米体脂秤,从设备读取体重测量值,包括体重指数(BMI)、基础代谢、内脏脂肪、瘦体重、体脂、水量、骨量、肌肉量、蛋白质含量、体型、体重类别和代谢年龄。 + +## 来源 + +汉化借鉴 + +https://github.com/5high/hassio-addons/tree/master/mi-scale + +原版引用 + +https://github.com/lolouk44/hassio-addons diff --git a/mi-scale/apparmor.txt b/mi-scale/apparmor.txt new file mode 100644 index 0000000..5d8afb7 --- /dev/null +++ b/mi-scale/apparmor.txt @@ -0,0 +1,96 @@ +#include + +profile xiaomi_mi_scale flags=(attach_disconnected,mediate_deleted) { + #include + + # 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//** 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, +} \ No newline at end of file diff --git a/mi-scale/config.json b/mi-scale/config.json new file mode 100644 index 0000000..f67dc2a --- /dev/null +++ b/mi-scale/config.json @@ -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" + } + ] + } +} diff --git a/mi-scale/icon.png b/mi-scale/icon.png new file mode 100644 index 0000000..0a115a0 Binary files /dev/null and b/mi-scale/icon.png differ diff --git a/mi-scale/logo.png b/mi-scale/logo.png new file mode 100644 index 0000000..2e9e697 Binary files /dev/null and b/mi-scale/logo.png differ diff --git a/mpd/CHANGELOG.md b/mpd/CHANGELOG.md new file mode 100644 index 0000000..1992c99 --- /dev/null +++ b/mpd/CHANGELOG.md @@ -0,0 +1,3 @@ +## 1.7.2 - 2022-08-17 + +* 首次推出 diff --git a/mpd/DOCS.md b/mpd/DOCS.md new file mode 100644 index 0000000..6c15805 --- /dev/null +++ b/mpd/DOCS.md @@ -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 +``` diff --git a/mpd/README.md b/mpd/README.md new file mode 100644 index 0000000..7e786f0 --- /dev/null +++ b/mpd/README.md @@ -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 diff --git a/mpd/config.yaml b/mpd/config.yaml new file mode 100644 index 0000000..ed7540f --- /dev/null +++ b/mpd/config.yaml @@ -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/.+)? diff --git a/mpd/icon.png b/mpd/icon.png new file mode 100644 index 0000000..0063045 Binary files /dev/null and b/mpd/icon.png differ diff --git a/mpd/logo.png b/mpd/logo.png new file mode 100644 index 0000000..fd42286 Binary files /dev/null and b/mpd/logo.png differ diff --git a/mpd/translations/en.yaml b/mpd/translations/en.yaml new file mode 100644 index 0000000..2983bd8 --- /dev/null +++ b/mpd/translations/en.yaml @@ -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 \ No newline at end of file diff --git a/mpd/translations/zh-Hans.yaml b/mpd/translations/zh-Hans.yaml new file mode 100644 index 0000000..b6ec2da --- /dev/null +++ b/mpd/translations/zh-Hans.yaml @@ -0,0 +1,14 @@ +--- +configuration: + media_folder: + name: 媒体文件夹 + playlist_folder: + name: 播放列表文件夹 + volume_normalization: + name: 音量标准化 + httpd_output: + name: httpd输出 + verbose: + name: 详细日志输出 + custom_config: + name: 自定义配置 \ No newline at end of file diff --git a/portainer/CHANGELOG.md b/portainer/CHANGELOG.md new file mode 100644 index 0000000..9c468ff --- /dev/null +++ b/portainer/CHANGELOG.md @@ -0,0 +1,2 @@ +### 2.19.4-3 (11-12-2023) +- 首次推出 diff --git a/portainer/DOCS.md b/portainer/DOCS.md new file mode 100644 index 0000000..e638b67 --- /dev/null +++ b/portainer/DOCS.md @@ -0,0 +1,10 @@ +Portainer 主要用于在 Docker 容器中执行自定义命令。它是一个开源的轻量级管理 UI,允许你轻松管理 Docker 主机或 Docker Swarm 集群。 + +# 快速开始 +- 在password中设置一下登录密码就行。 + + 默认用户名:admin + +- 在主页中,关闭“保护模式”,然后启动加载项。 + + diff --git a/portainer/README.md b/portainer/README.md new file mode 100644 index 0000000..559a58a --- /dev/null +++ b/portainer/README.md @@ -0,0 +1,13 @@ +# 冬瓜甄选addons:Portainer + +## 关于 + +这是一个很有名的docker可视化界面的管理工具。此版本为原始英文版,直接同步最新版本。 + +如对汉化版有兴趣,未来会出一个汉化专版。 + + + +## 来源 + +https://github.com/alexbelgium/hassio-addons/tree/master/portainer diff --git a/portainer/apparmor.txt b/portainer/apparmor.txt new file mode 100644 index 0000000..ef354c8 --- /dev/null +++ b/portainer/apparmor.txt @@ -0,0 +1,59 @@ +#include + +profile portainer_addon flags=(attach_disconnected,mediate_deleted) { + #include + + 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, + +} diff --git a/portainer/config.json b/portainer/config.json new file mode 100644 index 0000000..5d42cc8 --- /dev/null +++ b/portainer/config.json @@ -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" +} diff --git a/portainer/icon.png b/portainer/icon.png new file mode 100644 index 0000000..3e7635b Binary files /dev/null and b/portainer/icon.png differ diff --git a/portainer/logo.png b/portainer/logo.png new file mode 100644 index 0000000..3e7635b Binary files /dev/null and b/portainer/logo.png differ diff --git a/portainer/translations/en.yaml b/portainer/translations/en.yaml new file mode 100644 index 0000000..383947d --- /dev/null +++ b/portainer/translations/en.yaml @@ -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 \ No newline at end of file diff --git a/portainer/translations/zh-Hans.yaml b/portainer/translations/zh-Hans.yaml new file mode 100644 index 0000000..a39a73c --- /dev/null +++ b/portainer/translations/zh-Hans.yaml @@ -0,0 +1,16 @@ +--- +configuration: + certfile: + name: 证书文件 + description: >- + SSL证书,必须位于/ SSL目录下。 + password: + name: 密码 + description: >- + 定义admin密码。如果保持空白,将允许手动恢复以前的备份。至少12个字符。 + keyfile: + name: 密钥 + description: >- + ssl密钥,必须位于/SSL目录下。 + ssl: + name: ssl \ No newline at end of file diff --git a/samba-easy-nas/DOCS.md b/samba-easy-nas/DOCS.md index c2a46f4..12e2fbc 100644 --- a/samba-easy-nas/DOCS.md +++ b/samba-easy-nas/DOCS.md @@ -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“等。 diff --git a/samba-easy-nas/config.yaml b/samba-easy-nas/config.yaml index bd64aad..611de35 100644 --- a/samba-easy-nas/config.yaml +++ b/samba-easy-nas/config.yaml @@ -128,9 +128,7 @@ options: - fc00::/7 interfaces: - end0 - - eth0 - - wlan0 - - virtbr0 + - enp2s1 schema: username: str password: password diff --git a/samba-easy-nas/translations/zh-Hans.yaml b/samba-easy-nas/translations/zh-Hans.yaml index a105fc8..65d0bf2 100644 --- a/samba-easy-nas/translations/zh-Hans.yaml +++ b/samba-easy-nas/translations/zh-Hans.yaml @@ -27,8 +27,8 @@ configuration: interfaces: name: 网络适配器 description: >- - 这里填写samba使用的网络适配器. + 这里填写samba使用的网络适配器,x86一般为enp2s1,其他的end0,最好net info命令查看一下. localdisks: name: 本地存储器 description: >- - 挂载的本地存储器的路径. \ No newline at end of file + 挂载的本地存储器(填写sda1或sdb1),查看host主机中挂载的盘位于/dev. \ No newline at end of file