diff --git a/.github/README.md b/.github/README.md index 46a2807c3..2281fd1ab 100644 --- a/.github/README.md +++ b/.github/README.md @@ -129,7 +129,7 @@ | 🟢 | | PostgreSQL | https://www.postgresql.org/ | 世界上最先进的开源关系数据库 | | | 🟢 | | Prowlarr | https://prowlarr.com/ | 终极索引器管理器 | | | 🟢 | | qBittorrent | https://www.qbittorrent.org/ | qBittorrent 比特流客户端 | | -| 🟢 | | 青龙 | https://github.com/whyour/qinglong/ | 【青龙】支持 Python3、JavaScript、Shell、Typescript 的定时任务管理平台 | | +| 🟢 | | 青龙 | https://qinglong.online/ | 【青龙】支持 Python3、JavaScript、Shell、Typescript 的定时任务管理平台 | | | 🟢 | | radarr | https://radarr.video/ | 电影组织者/管理员,适用于 Usenet 和 torrent 用户 | | | 🟢 | | 阅读3 | https://github.com/hectorqin/reader/ | 【阅读3】阅读3服务器版,不需要手机 | | | 🟢 | | Redis | https://redis.io/ | 从世界上最快的内存数据库创建者那里获取该数据库 | | @@ -142,6 +142,7 @@ | 🟢 | | Stream-Rec | https://github.com/hua0512/stream-rec/ | Stream-rec是一个用于各种流媒体服务的自动流媒体录制工具 | | | 🟢 | | 唐僧叨叨 | https://tsdaodao.com/ | 让企业轻松拥有自己的即时通讯 | | | 🟢 | | Telegram Bot Api | https://telegram.org/ | 自建 Telegram Bot API 服务器 | | +| 🟢 | | Traccar 轨迹 | https://www.traccar.org/ | 现代 GPS 追踪系统 | | | 🟢 | | Transmission | https://transmissionbt.com/ | 快速、简单、免费的 Bittorrent 客户端 | | | 🟢 | | Uptime Kuma | https://uptime.kuma.pet/ | 自托管监控工具 | | | 🟢 | | Umami | https://umami.is/ | 为速度和效率而构建的网站分析 | | diff --git a/README.md b/README.md index 9315bc530..d0a3258d6 100644 --- a/README.md +++ b/README.md @@ -112,7 +112,7 @@ | 🟢 | | PostgreSQL | https://www.postgresql.org/ | 世界上最先进的开源关系数据库 | | | 🟢 | | Prowlarr | https://prowlarr.com/ | 终极索引器管理器 | | | 🟢 | | qBittorrent | https://www.qbittorrent.org/ | qBittorrent 比特流客户端 | | -| 🟢 | | 青龙 | https://github.com/whyour/qinglong/ | 【青龙】支持 Python3、JavaScript、Shell、Typescript 的定时任务管理平台 | | +| 🟢 | | 青龙 | https://qinglong.online/ | 【青龙】支持 Python3、JavaScript、Shell、Typescript 的定时任务管理平台 | | | 🟢 | | radarr | https://radarr.video/ | 电影组织者/管理员,适用于 Usenet 和 torrent 用户 | | | 🟢 | | 阅读3 | https://github.com/hectorqin/reader/ | 【阅读3】阅读3服务器版,不需要手机 | | | 🟢 | | Redis | https://redis.io/ | 从世界上最快的内存数据库创建者那里获取该数据库 | | @@ -125,6 +125,7 @@ | 🟢 | | Stream-Rec | https://github.com/hua0512/stream-rec/ | Stream-rec是一个用于各种流媒体服务的自动流媒体录制工具 | | | 🟢 | | 唐僧叨叨 | https://tsdaodao.com/ | 让企业轻松拥有自己的即时通讯 | | | 🟢 | | Telegram Bot Api | https://telegram.org/ | 自建 Telegram Bot API 服务器 | | +| 🟢 | | Traccar 轨迹 | https://www.traccar.org/ | 现代 GPS 追踪系统 | | | 🟢 | | Transmission | https://transmissionbt.com/ | 快速、简单、免费的 Bittorrent 客户端 | | | 🟢 | | Uptime Kuma | https://uptime.kuma.pet/ | 自托管监控工具 | | | 🟢 | | Umami | https://umami.is/ | 为速度和效率而构建的网站分析 | | diff --git a/apps/traccar/6.5/conf/traccar.xml b/apps/traccar/6.5/conf/traccar.xml new file mode 100644 index 000000000..2b4518307 --- /dev/null +++ b/apps/traccar/6.5/conf/traccar.xml @@ -0,0 +1,12 @@ + + + + + + + org.h2.Driver + jdbc:h2:./data/database + sa + + + diff --git a/apps/traccar/6.5/data.yml b/apps/traccar/6.5/data.yml new file mode 100644 index 000000000..593618f34 --- /dev/null +++ b/apps/traccar/6.5/data.yml @@ -0,0 +1,17 @@ +additionalProperties: + formFields: + - default: "/home/traccar" + edit: true + envKey: TRACCAR_ROOT_PATH + labelZh: 数据持久化路径 + labelEn: Data persistence path + required: true + type: text + - default: 8082 + edit: true + envKey: PANEL_APP_PORT_HTTP + labelZh: WebUI 端口 + labelEn: WebUI port + required: true + rule: paramPort + type: number diff --git a/apps/traccar/6.5/docker-compose.yml b/apps/traccar/6.5/docker-compose.yml new file mode 100644 index 000000000..cb70b14a4 --- /dev/null +++ b/apps/traccar/6.5/docker-compose.yml @@ -0,0 +1,24 @@ +networks: + 1panel-network: + external: true + +services: + traccar: + image: traccar/traccar:6.5 + container_name: ${CONTAINER_NAME} + labels: + createdBy: "Apps" + restart: always + networks: + - 1panel-network + hostname: traccar + ports: + - ${PANEL_APP_PORT_HTTP}:8082 + - 5000-5150:5000-5150 + - 5000-5150:5000-5150/udp + env_file: + - /etc/1panel/envs/global.env + - ${ENV_FILE:-/etc/1panel/envs/default.env} + volumes: + - ${TRACCAR_ROOT_PATH}/logs:/opt/traccar/logs:rw + - ${TRACCAR_ROOT_PATH}/traccar.xml:/opt/traccar/conf/traccar.xml:ro diff --git a/apps/traccar/6.5/scripts/init.sh b/apps/traccar/6.5/scripts/init.sh new file mode 100644 index 000000000..77b849120 --- /dev/null +++ b/apps/traccar/6.5/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/traccar/6.5/scripts/uninstall.sh b/apps/traccar/6.5/scripts/uninstall.sh new file mode 100644 index 000000000..c86c4fbca --- /dev/null +++ b/apps/traccar/6.5/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/traccar/6.5/scripts/upgrade.sh b/apps/traccar/6.5/scripts/upgrade.sh new file mode 100644 index 000000000..77b849120 --- /dev/null +++ b/apps/traccar/6.5/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/traccar/README.md b/apps/traccar/README.md new file mode 100644 index 000000000..b6ea7e50d --- /dev/null +++ b/apps/traccar/README.md @@ -0,0 +1,128 @@ +# Traccar 轨迹 + +Traccar GPS 追踪系统 + +![Traccar 轨迹](https://file.lifebus.top/imgs/traccar_cover.png) + +Traccar 是一个开源的 GPS 跟踪系统。此仓库包含基于 Java 的后端服务。它支持超过 200 种 GPS 协议和超过 2000 种 GPS +跟踪设备型号。Traccar 可以与任何主要的 SQL 数据库系统一起使用。它还提供易于使用的 REST API。 + +![](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) + +## 特性 + +🚀 服务器 + +Traccar 软件在 Windows、Linux 或其他任何平台上都提供了卓越的性能和稳定性。服务器可以部署在本地或云端,我们提供各种托管选项,并提供专业支持。 + +🚀 设备 + +Traccar 在市场上众多的 GPS 跟踪系统中脱颖而出,因为它支持广泛的各种协议和设备型号。无论您更喜欢低成本、无名的 GPS +跟踪器,还是高品质、有质量保证的品牌,Traccar 都能让您从众多供应商中进行选择。 + +🚀 界面 + +Traccar 提供了一个现代且全面的网络界面,适用于桌面和移动设备。 +此外,我们还提供针对 Android 和 iOS 平台的本地移动应用程序。此外,我们还提供一系列应用程序,可以将移动设备转变为 GPS 追踪器。 + +🚀 实时跟踪 + +Traccar 允许您实时查看 GPS 设备的位置,没有任何延迟。 +多种地图选项可供选择,包括道路地图和卫星图像,您可以选择最符合您需求的一个。此外,Traccar 可以高效管理由 GPS 单元提供的大量传感器和数据。 + +🚀 警报 + +Traccar 软件提供即时通知,包括推送通知、电子邮件和其他方法的支持。 +这些功能使软件能够提醒用户恶劣驾驶行为、燃油下降、维护事件、地理围栏违规以及多种其他类型的警报。 + +🚀 报告 + +Traccar 提供多种报告,包括位置历史、行程、图表和总结报告。这些报告可以直接通过网络或移动应用访问,也可以导出为 Excel 文件。 +此外,Traccar 允许用户在地图上可视化位置历史,以便更直观地理解他们的数据。 + +## 功能 + ++ 实时 GPS 追踪 ++ 驾驶员行为监控 ++ 详细报告和摘要报告 ++ 地理围栏功能 ++ 警报和通知 ++ 账户和设备管理 ++ 电子邮件和短信支持 + +## 平台 + +### 管理平台 + +[![Download on the App Store](http://www.tananaev.com/badges/app-store.svg)](https://itunes.apple.com/app/traccar-manager/id1113966562) [![Get it on Google Play](http://www.tananaev.com/badges/google-play.svg)](https://play.google.com/store/apps/details?id=org.traccar.manager) + +### 服务平台 + +[![Download on the App Store](http://www.tananaev.com/badges/app-store.svg)](https://itunes.apple.com/app/traccar-client/id843156974) [![Get it on Google Play](http://www.tananaev.com/badges/google-play.svg)](https://play.google.com/store/apps/details?id=org.traccar.client) [![Get it on F-Droid](http://www.tananaev.com/badges/f-droid.svg)](https://f-droid.org/repository/browse/?fdid=org.traccar.client) + +## 安装说明 + +> ### 账户说明 +> +> 在较旧版本的 Traccar 中,系统会自动创建默认管理员账户,登录名和密码均为 admin +> +> 在较新版本中,没有默认用户,因此需要进行注册。第一个注册的用户会自动成为管理员。 + +> ### 设备注册 +> +> 您需要填写名称和标识符字段。名称可以是任何内容。标识符必须与您的设备向服务器报告的唯一 ID 相匹配。对于大多数设备,您应该使用 +> IMEI 或序列号作为唯一标识符。 + +### 数据库选择 + +Traccar 支持以下数据库: + ++ MySQL ++ PostgreSQL ++ H2 + +其中,H2 为默认数据库,但不建议在生产环境中使用。因此,我们建议使用 MySQL 或 PostgreSQL。 + +请在持久化目录中,查看配置文件:`traccar.xml` + +#### H2 数据库配置 + +我们不建议您修改 H2 数据库配置。如果您执意要修改,请确保您知道自己在做什么。 +您可以在安装目录 `conf/traccar.xml` 中找到默认的 H2 数据库配置。 + +```xml +org.h2.Driver +jdbc:h2:./data/database +sa + +``` + +#### MySQL 数据库配置 + +修改持久化目录中的 `traccar.xml` 文件,配置 MySQL 数据库。 + +```xml +com.mysql.cj.jdbc.Driver +jdbc:mysql://[HOST]/[DATABASE]?zeroDateTimeBehavior=round&serverTimezone=UTC&allowPublicKeyRetrieval=true&useSSL=false&allowMultiQueries=true&autoReconnect=true&useUnicode=yes&characterEncoding=UTF-8&sessionVariables=sql_mode='' +[USER] +[PASSWORD] +``` + +请将 `[]` 替换为您的实际配置。 + +#### PostgreSQL 数据库配置 + +修改持久化目录中的 `traccar.xml` 文件,配置 PostgreSQL 数据库。 + +```xml +org.postgresql.Driver +jdbc:postgresql://[HOST]/[DATABASE] +[USER] +[PASSWORD] +``` + +请将 `[]` 替换为您的实际配置。 + +--- + +![Ms Studio](https://file.lifebus.top/imgs/ms_blank_001.png) diff --git a/apps/traccar/data.yml b/apps/traccar/data.yml new file mode 100644 index 000000000..054ebcebb --- /dev/null +++ b/apps/traccar/data.yml @@ -0,0 +1,15 @@ +additionalProperties: + key: traccar + name: Traccar 轨迹 + tags: + - WebSite + - Middleware + - Local + shortDescZh: 现代 GPS 追踪系统 + shortDescEn: Modern GPS tracking system + type: website + crossVersionUpdate: true + limit: 0 + website: https://www.traccar.org/ + github: https://github.com/traccar/traccar/ + document: https://www.traccar.org/documentation/ diff --git a/apps/traccar/logo.png b/apps/traccar/logo.png new file mode 100644 index 000000000..c747aea05 Binary files /dev/null and b/apps/traccar/logo.png differ