diff --git a/.github/README.md b/.github/README.md index 90670488..b21ed281 100644 --- a/.github/README.md +++ b/.github/README.md @@ -148,6 +148,7 @@ | 🟢 | | Transmission | https://transmissionbt.com/ | 快速、简单、免费的 Bittorrent 客户端 | | | 🟢 | | Uptime Kuma | https://uptime.kuma.pet/ | 自托管监控工具 | | | 🟢 | | Umami | https://umami.is/ | 为速度和效率而构建的网站分析 | | +| 🟢 | | 路由设备监控 | https://github.com/aceberg/WatchYourLAN/ | 轻量级网络 IP 扫描器 | | | 🟢 | | WiseFlow | https://github.com/TeamWiseFlow/wiseflow/ | Wiseflow 首席情报官 | | | 🟢 | | 悟空IM | https://githubim.com/ | 让信息传递更简单 | | | 🟢 | | 迅雷 NAS版 | https://github.com/cnk3x/xunlei/ | 迅雷远程下载服务 NAS移植版 | | diff --git a/README.md b/README.md index 2f375690..6a053ab9 100644 --- a/README.md +++ b/README.md @@ -131,6 +131,7 @@ | 🟢 | | Transmission | https://transmissionbt.com/ | 快速、简单、免费的 Bittorrent 客户端 | | | 🟢 | | Uptime Kuma | https://uptime.kuma.pet/ | 自托管监控工具 | | | 🟢 | | Umami | https://umami.is/ | 为速度和效率而构建的网站分析 | | +| 🟢 | | 路由设备监控 | https://github.com/aceberg/WatchYourLAN/ | 轻量级网络 IP 扫描器 | | | 🟢 | | WiseFlow | https://github.com/TeamWiseFlow/wiseflow/ | Wiseflow 首席情报官 | | | 🟢 | | 悟空IM | https://githubim.com/ | 让信息传递更简单 | | | 🟢 | | 迅雷 NAS版 | https://github.com/cnk3x/xunlei/ | 迅雷远程下载服务 NAS移植版 | | diff --git a/apps/watchyourlan/2.0.3/data.yml b/apps/watchyourlan/2.0.3/data.yml new file mode 100644 index 00000000..ab4d657d --- /dev/null +++ b/apps/watchyourlan/2.0.3/data.yml @@ -0,0 +1,108 @@ +additionalProperties: + formFields: + - default: "/home/watchyourlan" + edit: true + envKey: WATCHYOURLAN_ROOT_PATH + labelZh: 数据持久化路径 + labelEn: Data persistence path + required: true + type: text + - default: 8840 + edit: true + envKey: PANEL_APP_PORT_HTTP + labelZh: 访问端口 + labelEn: Port + required: true + rule: paramPort + type: number + - default: "sand" + edit: true + envKey: THEME + labelZh: 主题 + labelEn: Theme + required: true + type: select + values: + - label: Sand + value: "sand" + - label: Emerald + value: "emerald" + - label: Grass + value: "grass" + - label: Grayscale + value: "grayscale" + - label: Ocean + value: "ocean" + - label: Wood + value: "wood" + - default: "dark" + edit: true + envKey: COLOR + labelZh: 颜色 + labelEn: Color + required: true + type: select + values: + - label: 浅色 + value: "light" + - label: 深色 + value: "dark" + - default: "" + edit: true + envKey: SHOUTRRR_URL + labelZh: 通知地址 + labelEn: Notification URL + required: false + type: text + - default: "enp2s0" + edit: true + envKey: IFACES + labelZh: 监听网卡 (多个用逗号分隔) + labelEn: Listening network card (separated by commas) + required: true + type: text + - default: 120 + edit: true + envKey: TIMEOUT + labelZh: 超时时间 (秒) + labelEn: Timeout (seconds) + required: true + type: number + - default: 48 + edit: true + envKey: TRIM_HIST + labelZh: 历史记录保留失效 (小时) + labelEn: Historical record retention invalid (hours) + required: true + type: number + - default: "false" + edit: true + envKey: HIST_IN_DB + labelZh: 历史记录存储方式 + labelEn: Historical record storage method + required: true + type: select + values: + - label: 内存存储 + value: "false" + - label: 数据库存储 + value: "true" + - default: "sqlite" + edit: true + envKey: USE_DB + labelZh: 数据存储方式 + labelEn: Data storage method + required: true + type: select + values: + - label: SQLite + value: "sqlite" + - label: PostgreSQL + value: "postgres" + - default: "" + edit: true + envKey: PG_CONNECT + labelZh: PostgreSQL 连接地址 + labelEn: PostgreSQL connection address + required: false + type: text diff --git a/apps/watchyourlan/2.0.3/docker-compose.yml b/apps/watchyourlan/2.0.3/docker-compose.yml new file mode 100644 index 00000000..db6951f6 --- /dev/null +++ b/apps/watchyourlan/2.0.3/docker-compose.yml @@ -0,0 +1,20 @@ +networks: + 1panel-network: + external: true + +services: + watchyourlan: + image: aceberg/watchyourlan:2.0.3 + container_name: ${CONTAINER_NAME} + labels: + createdBy: "Apps" + restart: always + network_mode: host + ports: + - ${PANEL_APP_PORT_HTTP}:8840 + volumes: + - ${WATCHYOURLAN_ROOT_PATH}/data:/data/WatchYourLAN + environment: + - HOST=0.0.0.0 + - PORT=8840 + - LOG_LEVEL=info diff --git a/apps/watchyourlan/2.0.3/scripts/init.sh b/apps/watchyourlan/2.0.3/scripts/init.sh new file mode 100644 index 00000000..77b84912 --- /dev/null +++ b/apps/watchyourlan/2.0.3/scripts/init.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +if [ -f .env ]; then + source .env + + # setup-1 add default values + CURRENT_DIR=$(pwd) + sed -i '/^ENV_FILE=/d' .env + echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env + + echo "Check Finish." + +else + echo "Error: .env file not found." +fi diff --git a/apps/watchyourlan/2.0.3/scripts/uninstall.sh b/apps/watchyourlan/2.0.3/scripts/uninstall.sh new file mode 100644 index 00000000..c86c4fbc --- /dev/null +++ b/apps/watchyourlan/2.0.3/scripts/uninstall.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +if [ -f .env ]; then + source .env + + echo "Check Finish." + +else + echo "Error: .env file not found." +fi diff --git a/apps/watchyourlan/2.0.3/scripts/upgrade.sh b/apps/watchyourlan/2.0.3/scripts/upgrade.sh new file mode 100644 index 00000000..77b84912 --- /dev/null +++ b/apps/watchyourlan/2.0.3/scripts/upgrade.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +if [ -f .env ]; then + source .env + + # setup-1 add default values + CURRENT_DIR=$(pwd) + sed -i '/^ENV_FILE=/d' .env + echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env + + echo "Check Finish." + +else + echo "Error: .env file not found." +fi diff --git a/apps/watchyourlan/README.md b/apps/watchyourlan/README.md new file mode 100644 index 00000000..9b0b90cd --- /dev/null +++ b/apps/watchyourlan/README.md @@ -0,0 +1,20 @@ +# 路由设备监控 + +轻量级网络 IP 扫描器。可用于通知新主机并监控主机在线/离线历史 + +![路由设备监控](https://file.lifebus.top/imgs/kimai_cover.png) + +![](https://img.shields.io/badge/%E6%96%B0%E7%96%86%E8%90%8C%E6%A3%AE%E8%BD%AF%E4%BB%B6%E5%BC%80%E5%8F%91%E5%B7%A5%E4%BD%9C%E5%AE%A4-%E6%8F%90%E4%BE%9B%E6%8A%80%E6%9C%AF%E6%94%AF%E6%8C%81-blue) + +## 简介 + +轻量级网络 IP 扫描器,带有 Web GUI。特性: Translation: + ++ 发现新主机时发送通知 ++ 监控主机在线/离线历史 ++ 保持网络中所有主机的列表 ++ 将数据发送到 InfluxDB2 以创建 Grafana 仪表板 + +--- + +![Ms Studio](https://file.lifebus.top/imgs/ms_blank_001.png) diff --git a/apps/watchyourlan/data.yml b/apps/watchyourlan/data.yml new file mode 100644 index 00000000..26a2837a --- /dev/null +++ b/apps/watchyourlan/data.yml @@ -0,0 +1,15 @@ +additionalProperties: + key: watchyourlan + name: 路由设备监控 + tags: + - WebSite + - Middleware + - Local + shortDescZh: 轻量级网络 IP 扫描器 + shortDescEn: Lightweight network IP scanner + type: website + crossVersionUpdate: true + limit: 0 + website: https://github.com/aceberg/WatchYourLAN/ + github: https://github.com/aceberg/WatchYourLAN/ + document: https://github.com/aceberg/WatchYourLAN/ diff --git a/apps/watchyourlan/logo.png b/apps/watchyourlan/logo.png new file mode 100644 index 00000000..2f2d5ca0 Binary files /dev/null and b/apps/watchyourlan/logo.png differ