update 2023-06-15 16:21:20

This commit is contained in:
github-actions[bot] 2023-06-15 16:21:20 +08:00
parent cb903c5813
commit efd53afa12
20 changed files with 552 additions and 120 deletions

View File

@ -8,14 +8,14 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=ddnsgo
PKG_VERSION:=5.3.3
PKG_VERSION:=5.3.5
PKG_RELEASE:=1
PKG_SOURCE_PROTO:=git
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://github.com/jeessy2/ddns-go.git
PKG_MIRROR_HASH:=8e5223843ba33667ab8226f10ce1529dd96f36c6662b5caf8093339dc3ea77af
PKG_SOURCE_VERSION:=8e5ba0a3993f8bc3a32da03dcec12e15197e0858
PKG_MIRROR_HASH:=deaa225aa4f0f5e329520a97632f38f6389d0abf27f1e3adcf249beddd1a5d74
PKG_SOURCE_VERSION:=e283f7a9c84e3ebf61637d05150dc612ca489bb4
PKG_LICENSE:=AGPL-3.0-only
PKG_LICENSE_FILES:=LICENSE

View File

@ -0,0 +1,201 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright [yyyy] [name of copyright owner]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

View File

@ -1,4 +1,98 @@
# luci-app-argon-config
Argon Theme Config Plugin
<!-- markdownlint-configure-file {
"MD013": {
"code_blocks": false,
"tables": false,
"line_length":200
},
"MD033": false,
"MD041": false
} -->
You can set the blur and transparency of the login page of argon theme, and manage the background pictures and videos.
[license]: /LICENSE
[license-badge]: https://img.shields.io/github/license/jerrykuku/luci-app-argon-config?style=flat-square&a=1
[prs]: https://github.com/jerrykuku/luci-app-argon-config/pulls
[prs-badge]: https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square
[issues]: https://github.com/jerrykuku/luci-app-argon-config/issues/new
[issues-badge]: https://img.shields.io/badge/Issues-welcome-brightgreen.svg?style=flat-square
[release]: https://github.com/jerrykuku/luci-app-argon-config/releases
[release-badge]: https://img.shields.io/github/v/release/jerrykuku/luci-app-argon-config?include_prereleases&style=flat-square
[download]: https://github.com/jerrykuku/luci-app-argon-config/releases
[download-badge]: https://img.shields.io/github/downloads/jerrykuku/luci-app-argon-config/total?style=flat-square
[contact]: https://t.me/jerryk6
[contact-badge]: https://img.shields.io/badge/Contact-telegram-blue?style=flat-square
[en-us-link]: /README.md
[zh-cn-link]: /README_ZH.md
[en-us-release-log]: /RELEASE.md
[zh-cn-release-log]: /RELEASE_ZH.md
[config-link]: https://github.com/jerrykuku/luci-app-argon-config/releases
[lede]: https://github.com/coolsnowwolf/lede
[official]: https://github.com/openwrt/openwrt
[immortalwrt]: https://github.com/immortalwrt/immortalwrt
<div align="center">
<img src="https://raw.githubusercontent.com/jerrykuku/staff/master/argon_title4.svg">
# Argon Theme Config Plugin
You can set the blur and transparency of the login page of argon theme,
and manage the background pictures and videos.
[![license][license-badge]][license]
[![prs][prs-badge]][prs]
[![issues][issues-badge]][issues]
[![release][release-badge]][release]
[![download][download-badge]][download]
[![contact][contact-badge]][contact]
**English** |
[简体中文][zh-cn-link]
<img src="https://raw.githubusercontent.com/jerrykuku/staff/master/argon2.gif">
</div>
## Branch Introduction
There are currently two main branches that are adapted to different versions of the **OpenWrt** source code.
The table below will provide a detailed introduction:
| Branch | Version | Description | Matching source |
| ------ | ------- | ---------------------------------- | --------------------------------------------------------- |
| master | v1.x.x | Support the latest version of LuCI | [Official OpenWrt][official] • [ImmortalWrt][immortalwrt] |
| 18.06 | v0.9.x | Support the 18.06 version of LuCI | [Lean's LEDE][lede] |
## Getting started
### Build for Lean's LEDE project
```bash
cd lede/package/lean
rm -rf luci-app-argon-config # if have
git clone -b 18.06 https://github.com/jerrykuku/luci-app-argon-config.git luci-app-argon-config
make menuconfig #choose LUCI->Application->Luci-app-argon-config
make -j1 V=s
```
### Build for OpenWrt official SnapShots and ImmortalWrt
```bash
cd openwrt/package
git clone https://github.com/jerrykuku/luci-app-argon-config.git
make menuconfig #choose LUCI->Application->Luci-app-argon-config
make -j1 V=s
```
## Contributors
<a href="https://github.com/jerrykuku/luci-app-argon-config/graphs/contributors">
<img src="https://contrib.rocks/image?repo=jerrykuku/luci-app-argon-config" />
</a>
Made with [contrib.rocks](https://contrib.rocks).
## Related Projects
- [luci-theme-argon](https://github.com/jerrykuku/luci-theme-argon): Argon theme
- [luci-app-vssr](https://github.com/jerrykuku/luci-app-vssr): An OpenWrt internet surfing plugin
- [openwrt-package](https://github.com/jerrykuku/openwrt-package): My OpenWrt package
- [CasaOS](https://github.com/IceWhaleTech/CasaOS): A simple, easy-to-use, elegant open-source Personal Cloud system (My current main project)

View File

@ -0,0 +1,97 @@
<!-- markdownlint-configure-file {
"MD013": {
"code_blocks": false,
"tables": false,
"line_length":200
},
"MD033": false,
"MD041": false
} -->
[license]: /LICENSE
[license-badge]: https://img.shields.io/github/license/jerrykuku/luci-app-argon-config?style=flat-square&a=1
[prs]: https://github.com/jerrykuku/luci-app-argon-config/pulls
[prs-badge]: https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square
[issues]: https://github.com/jerrykuku/luci-app-argon-config/issues/new
[issues-badge]: https://img.shields.io/badge/Issues-welcome-brightgreen.svg?style=flat-square
[release]: https://github.com/jerrykuku/luci-app-argon-config/releases
[release-badge]: https://img.shields.io/github/v/release/jerrykuku/luci-app-argon-config?include_prereleases&style=flat-square
[download]: https://github.com/jerrykuku/luci-app-argon-config/releases
[download-badge]: https://img.shields.io/github/downloads/jerrykuku/luci-app-argon-config/total?style=flat-square
[contact]: https://t.me/jerryk6
[contact-badge]: https://img.shields.io/badge/Contact-telegram-blue?style=flat-square
[en-us-link]: /README.md
[zh-cn-link]: /README_ZH.md
[en-us-release-log]: /RELEASE.md
[zh-cn-release-log]: /RELEASE_ZH.md
[config-link]: https://github.com/jerrykuku/luci-app-argon-config/releases
[lede]: https://github.com/coolsnowwolf/lede
[official]: https://github.com/openwrt/openwrt
[immortalwrt]: https://github.com/immortalwrt/immortalwrt
<div align="center">
<img src="https://raw.githubusercontent.com/jerrykuku/staff/master/argon_title4.svg">
# Argon 主题设置插件
您可以设置 Argon 主题登录页面的模糊度和透明度,并管理背景图片和视频。
[![license][license-badge]][license]
[![prs][prs-badge]][prs]
[![issues][issues-badge]][issues]
[![release][release-badge]][release]
[![download][download-badge]][download]
[![contact][contact-badge]][contact]
[Engilish][en-us-link] |
**简体中文**
<img src="https://raw.githubusercontent.com/jerrykuku/staff/master/argon2.gif">
</div>
## Branch Introduction
目前有两个主要的分支,适应于不同版本的**OpenWrt**源代码。
下表为详细的介绍:
| 分支 | 版本 | 介绍 | 匹配源码 |
| ------ | ------ | --------------------------- | ----------------------------------------------------- |
| master | v1.x.x | 支持最新和比较新版本的 LuCI | [官方 OpenWrt][official] • [ImmortalWrt][immortalwrt] |
| 18.06 | v0.9.x | 支持 18.06 版本的 LuCI | [Lean's LEDE][lede] |
## G快速开始
### 使用 Lean's LEDE 构建
```bash
cd lede/package/lean
rm -rf luci-app-argon-config # if have
git clone -b 18.06 https://github.com/jerrykuku/luci-app-argon-config.git luci-app-argon-config
make menuconfig #choose LUCI->Application->Luci-app-argon-config
make -j1 V=s
```
### 使用官方 OpenWrt SnapShots 和 ImmortalWrt 构建
```bash
cd openwrt/package
git clone https://github.com/jerrykuku/luci-app-argon-config.git
make menuconfig #choose LUCI->Application->Luci-app-argon-config
make -j1 V=s
```
## 贡献者
<a href="https://github.com/jerrykuku/luci-app-argon-config/graphs/contributors">
<img src="https://contrib.rocks/image?repo=jerrykuku/luci-app-argon-config" />
</a>
Made with [contrib.rocks](https://contrib.rocks).
## 相关项目
- [luci-theme-argon](https://github.com/jerrykuku/luci-theme-argon): Argon theme
- [luci-app-vssr](https://github.com/jerrykuku/luci-app-vssr): An OpenWrt internet surfing plugin
- [openwrt-package](https://github.com/jerrykuku/openwrt-package): My OpenWrt package
- [CasaOS](https://github.com/IceWhaleTech/CasaOS): A simple, easy-to-use, elegant open-source Personal Cloud system (My current main project)

View File

@ -6,9 +6,9 @@
'require ui';
'require view';
var callSystemInfo = rpc.declare({
object: 'system',
method: 'info'
var callAvailSpace = rpc.declare({
object: 'luci.argon',
method: 'avail'
});
var callRemoveArgon = rpc.declare({
@ -34,7 +34,7 @@ return view.extend({
load: function() {
return Promise.all([
uci.load('argon'),
L.resolveDefault(callSystemInfo(), {}),
L.resolveDefault(callAvailSpace(), {}),
L.resolveDefault(fs.list(bg_path), {})
]);
},
@ -120,7 +120,7 @@ return view.extend({
}
s = m.section(form.TypedSection, null, _('Upload background (available space: %1024.2mB)')
.format(data[1].root.avail * 1024),
.format(data[1].avail * 1024),
_('You can upload files such as gif/jpg/mp4/png/webm/webp files, to change the login page background.'));
s.addremove = false;
s.anonymous = true;

View File

@ -1,10 +1,10 @@
config global
option primary '#5e72e4'
option dark_primary '#483d8b'
option blur '0'
option blur_dark '0'
option transparency '0.3'
option transparency_dark '0.3'
option blur '10'
option blur_dark '10'
option transparency '0.5'
option transparency_dark '0.5'
option mode 'normal'
option online_wallpaper 'bing'

View File

@ -9,6 +9,8 @@ readonly tmp_path="/tmp/argon_background.tmp"
case "$1" in
"list")
json_init
json_add_object "avail"
json_close_object
json_add_object "remove"
json_add_string "filename" "filename"
json_close_object
@ -20,6 +22,12 @@ case "$1" in
;;
"call")
case "$2" in
"avail")
json_init
json_add_int "avail" "$(df | grep -E '/$' | awk '{print $4}')"
json_dump
json_cleanup
;;
"remove")
read -r input
json_load "$input"

View File

@ -6,8 +6,7 @@
"/www/luci-static/argon/background/*": [ "list" ]
},
"ubus": {
"luci.argon": [ "remove", "rename" ],
"system": [ "info" ]
"luci.argon": [ "avail", "remove", "rename" ]
},
"uci": [ "argon" ]
},

View File

@ -2,7 +2,7 @@
include $(TOPDIR)/rules.mk
PKG_VERSION:=1.0.0-20230614
PKG_VERSION:=1.0.0-20230615
PKG_RELEASE:=
LUCI_TITLE:=LuCI support for bmtedge

View File

@ -8,7 +8,7 @@ local m, s, o
m = taskd.docker_map("bmtedge", "bmtedge", "/usr/libexec/istorec/bmtedge.sh",
translate("BlueMountain Edge"),
"蓝山云-流量宝由蓝山联合金山云推出的一款镜像软件,通过简单安装后可快速加入蓝山的边缘计算生态,在线共享带宽即可赚钱,每月可获取一定的现金报!了解更多,请登录「<a href=\"www.bmtcloud.com.cn\" target=\"_blank\" >蓝山云官网</a>」")
"蓝山云-流量宝由蓝山联合金山云推出的一款镜像软件,通过简单安装后可快速加入蓝山的边缘计算生态,在线共享带宽即可赚钱,每月可获取一定的现金报!了解更多,请登录「<a href=\"https://www.bmtcloud.com.cn\" target=\"_blank\" >蓝山云官网</a>」并查看<a href=\"https://doc.linkease.com/zh/guide/istoreos/software/bmtedge.html\" target=\"_blank\">「教程」</a>")
s = m:section(SimpleSection, translate("Service Status"), translate("BlueMountain Edge status:"), "注意网心云会以超级权限运行!")
s:append(Template("bmtedge/status"))

View File

@ -4,58 +4,70 @@ local container_status = util.trim(util.exec("/usr/libexec/istorec/bmtedge.sh st
local container_install = (string.len(container_status) > 0)
local container_running = container_status == "running"
local uci = require "luci.model.uci".cursor()
local uid = uci:get_first("bmtedge", "bmtedge", "uid", ""),
local uid = uci:get_first("bmtedge", "bmtedge", "uid", "")
-%>
<script src="/luci-static/bmtedge/qrcode.min.js"></script>
<div class="cbi-value">
<label class="cbi-value-title"><%:Status%></label>
<div class="cbi-value-field">
<% if container_running then %>
<button class="cbi-button cbi-button-success" disabled="true"><%:BlueMountain Edge is running%></button>
<div class="cbi-value cbi-value-last">
<label class="cbi-value-title">&nbsp;</label>
<div class="cbi-value-field">
<input type="button" class="btn cbi-button cbi-button-apply" id="btnShowQr" name="start" value="显示二维码" />
</div>
</div>
<button class="cbi-button cbi-button-success" id="btnShowQr"><%:Running, click to show QR%></button>
<% else %>
<button class="cbi-button cbi-button-negative" disabled="true"><%:BlueMountain Edge is not running%></button>
<% end %>
</div>
</div>
<div class="cbi-value" id="winContainer" style="display: none">
<label class="cbi-value-title"></label>
<div class="cbi-value-field">
<div style="display: flex;flex-direction: column;align-items: center; width:276px; background-color: white;">
<div style="
width: 256px;
height: 256px;
margin: 10px;
">
<div id="qrimage" >
</div>
<div id="weapp" style="display: none">
<img src="/luci-static/bmtedge/weapp.jpg" alt="小程序码" style="
width: 256px;
height: 256px;
">
</div>
</div>
<h6><a id="btnShowWeapp" href="javascript:void(0);">“蓝山云”小程序</a>扫码,请查看:<a href="https://doc.linkease.com/zh/guide/istoreos/software/bmtedge.html" target="_blank">教程</a></h6>
<div id="winContainer" style="display: none">
<div id="qrimage" style="
width: 256px;
height: 256px;
">
</div>
</div>
<h6>用“蓝山云”小程序扫码,请查看:<a href="https://doc.linkease.com" target="_blank">教程</a></h6>
</div>
<script src="/luci-static/bmtedge/qrcode.min.js"></script>
<script>
<script>
(function() {
'use strict';
var shown = false;
var tryShowTips = function() {
var tryShowQr = function() {
if (shown) {
return;
}
shown = true;
$("#winContainer").show();
$("#winContainer").find(".button").click(function(){
$("#winContainer").hide();
show = false;
});
new QRCode(document.getElementById("qrimage"), "lsyK17032_"+"<%=uid%>");
document.getElementById("winContainer").style.removeProperty('display');
};
$('#btnShowQr').click(function(){
new QRCode(document.getElementById("qrimage"), "lsyK17032_"+"<%=uid%>");
tryShowTips();
document.getElementById("btnShowQr").addEventListener("click", function(e){
e.preventDefault();
tryShowQr();
});
document.getElementById("btnShowWeapp").addEventListener("mouseenter", function(e){
e.preventDefault();
document.getElementById("qrimage").style.display='none';
document.getElementById("weapp").style.removeProperty('display');
});
document.getElementById("btnShowWeapp").addEventListener("mouseleave", function(e){
e.preventDefault();
document.getElementById("weapp").style.display='none';
document.getElementById("qrimage").style.removeProperty('display');
});
})();
</script>
</script>

View File

@ -22,14 +22,18 @@ msgstr "以下参数只在安装或者升级时才会生效:"
msgid "Status"
msgstr "状态"
msgid "BlueMountain Edge is running"
msgstr "蓝山云运行中"
msgid "Running, click to show QR"
msgstr "运行中,点击查看二维码"
msgid "BlueMountain Edge is not running"
msgstr "蓝山云未运行"
msgid "Open the BlueMountain Edge"
msgstr "打开蓝山云"
msgid "Use “蓝山云” Wechat Little APP to scan the QR, click:"
msgstr "用“蓝山云”小程序扫码,请查看:"
msgid "Guide"
msgstr "教程"
msgid "UID"
msgstr "唯一标识"

View File

@ -1,4 +1,4 @@
config bmtedge
option 'cache_path' ''
option 'image_name' ''
option 'uid' ''
# option cache_path ''
# option image_name ''
# option uid ''

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

View File

@ -21,29 +21,38 @@ return view.extend({
s.addremove = false
o = s.option(form.Value, 'up_timeout', _('Device online detection timeout (s)'));
o.default = "2"
o.placeholder = "2"
o.optional = false
o.datatype = "uinteger"
o.rmempty = false;
o = s.option(form.Value, "down_timeout", _('Device offline detection timeout (s)'))
o.default = "20"
o.placeholder = "10"
o.optional = false
o.datatype = "uinteger"
o.rmempty = false;
o = s.option(form.Value, "timeout_retry_count", _('Offline detection count'))
o.default = "2"
o.placeholder = "2"
o.optional = false
o.datatype = "uinteger"
o.rmempty = false;
o.description = _("If the device has good signal strength and no Wi-Fi sleep issues, you can reduce the above values.<br/>Due to the mysterious nature of Wi-Fi sleep during the night, if you encounter frequent disconnections, please adjust the parameters accordingly.<br/>..╮(╯_╰╭..")
o = s.option(form.Flag, "only_timeout_push", _("Offline timeout applies only to the devices that receive push notifications"))
o.default = 0
o.rmempty = true
o.description = _("When this option is selected, the offline timeout and offline detection count apply only to the devices that require push notifications. Other devices will use default values, which can significantly reduce the time required for detection. However, it may result in inaccurate online time displayed in the online devices list. It is recommended to enable this option only when there are many devices and frequent offline occurrences are observed for specific devices of interest.")
o = s.option(form.Flag, "passive_mode", _("Disable active detection"))
o.default = 0
o.rmempty = true
o.description = _("Disable active detection of client online status. Enabling this feature will no longer prompt device online/offline events.<br/>Suitable for users who are not sensitive to online devices but need other features.")
o = s.option(form.Value, "thread_num", _('Maximum concurrent processes'))
o.default = "3"
o.placeholder = "3"
o.datatype = "uinteger"
o.rmempty = false;
o.description = _("Do not change the setting value for low-performance devices, or reduce the parameters as appropriate.")
o = s.option(form.Value, "soc_code", _('Custom temperature reading command'))

View File

@ -748,199 +748,208 @@ msgstr "离线检测次数"
msgid "If the device has good signal strength and no Wi-Fi sleep issues, you can reduce the above values.<br/>Due to the mysterious nature of Wi-Fi sleep during the night, if you encounter frequent disconnections, please adjust the parameters accordingly.<br/>..╮(╯_╰╭.."
msgstr "若设备信号强度良好,无息屏 WiFi 休眠问题,可以减少以上数值<br/>因夜间 WiFi 息屏休眠较为玄学,遇到设备频繁推送断开,烦请自行调整参数<br/>..╮(╯_╰╭.."
#: applications/luci-app-wechatpush/htdocs/luci-static/resources/view/wechatpush/advanced.js:39
#: applications/luci-app-wechatpush/htdocs/luci-static/resources/view/wechatpush/advanced.js:42
msgid "Offline timeout applies only to the devices that receive push notifications"
msgstr "离线超时只针对推送设备"
#: applications/luci-app-wechatpush/htdocs/luci-static/resources/view/wechatpush/advanced.js:45
msgid "When this option is selected, the offline timeout and offline detection count apply only to the devices that require push notifications. Other devices will use default values, which can significantly reduce the time required for detection. However, it may result in inaccurate online time displayed in the online devices list. It is recommended to enable this option only when there are many devices and frequent offline occurrences are observed for specific devices of interest."
msgstr "选中此项后,离线超时时间和离线检测次数只针对需要推送的设备,其余设备使用默认值,可有效减少检测所需的时间,但会造成在线设备列表中的在线时间不准确,仅建议设备较多且关注的设备离线频繁时使用"
#: applications/luci-app-wechatpush/htdocs/luci-static/resources/view/wechatpush/advanced.js:47
msgid "Disable active detection"
msgstr "关闭主动探测"
#: applications/luci-app-wechatpush/htdocs/luci-static/resources/view/wechatpush/advanced.js:
#: applications/luci-app-wechatpush/htdocs/luci-static/resources/view/wechatpush/advanced.js:50
msgid "Disable active detection of client online status. Enabling this feature will no longer prompt device online/offline events.<br/>Suitable for users who are not sensitive to online devices but need other features."
msgstr "关闭客户端在线状态的主动探测,因误报较为严重,启用此功能后设备上下线将不再提示<br/>适用于对在线设备不敏感,但需要其他功能的用户"
#: applications/luci-app-wechatpush/htdocs/luci-static/resources/view/wechatpush/advanced.js:44
#: applications/luci-app-wechatpush/htdocs/luci-static/resources/view/wechatpush/advanced.js:52
msgid "Maximum concurrent processes"
msgstr "最大并发进程数"
#: applications/luci-app-wechatpush/htdocs/luci-static/resources/view/wechatpush/advanced.js:47
#: applications/luci-app-wechatpush/htdocs/luci-static/resources/view/wechatpush/advanced.js:56
msgid "Do not change the setting value for low-performance devices, or reduce the parameters as appropriate."
msgstr "低性能设备请勿更改设置值,或酌情减少参数"
#: applications/luci-app-wechatpush/htdocs/luci-static/resources/view/wechatpush/advanced.js:49
#: applications/luci-app-wechatpush/htdocs/luci-static/resources/view/wechatpush/advanced.js:58
msgid "Custom temperature reading command"
msgstr "自定义温度读取命令"
#: applications/luci-app-wechatpush/htdocs/luci-static/resources/view/wechatpush/advanced.js:51
#: applications/luci-app-wechatpush/htdocs/luci-static/resources/view/wechatpush/advanced.js:60
msgid "Default"
msgstr "默认"
#: applications/luci-app-wechatpush/htdocs/luci-static/resources/view/wechatpush/advanced.js:52
#: applications/luci-app-wechatpush/htdocs/luci-static/resources/view/wechatpush/advanced.js:61
msgid "Proxmox Virtual Environment"
msgstr "PVE 虚拟机"
#: applications/luci-app-wechatpush/htdocs/luci-static/resources/view/wechatpush/advanced.js:53
#: applications/luci-app-wechatpush/htdocs/luci-static/resources/view/wechatpush/advanced.js:62
msgid "If you need to use special symbols such as quotes, $, !, etc. in custom commands, you need to escape them yourself.<br/>You can use the command eval echo $(uci get wechatpush.wechatpush.soc_code) to view command output and error information.<br/>The execution result should be a pure number (including decimals) for temperature comparison.<br/>Here is an example that does not require escaping:<br/>cat /sys/class/thermal/thermal_zone0/temp|sort -nr|head -n1|cut -c-2"
msgstr "自定义命令如需使用特殊符号,如引号、$、!等,则需要自行转义<br/>可以使用 eval echo $(uci get wechatpush.wechatpush.soc_code) 命令查看命令输出及错误信息<br/>执行结果需为纯数字(可带小数),用于温度对比<br/>一个无需转义的例子:<br/>cat /sys/class/thermal/thermal_zone0/temp|sort -nr|head -n1|cut -c-2"
#: applications/luci-app-wechatpush/htdocs/luci-static/resources/view/wechatpush/advanced.js:55
#: applications/luci-app-wechatpush/htdocs/luci-static/resources/view/wechatpush/advanced.js:64
msgid "Host machine address"
msgstr "宿主机地址"
#: applications/luci-app-wechatpush/htdocs/luci-static/resources/view/wechatpush/advanced.js:61
#: applications/luci-app-wechatpush/htdocs/luci-static/resources/view/wechatpush/advanced.js:70
msgid "Host machine SSH port"
msgstr "宿主机 SSH 端口"
#: applications/luci-app-wechatpush/htdocs/luci-static/resources/view/wechatpush/advanced.js:64
#: applications/luci-app-wechatpush/htdocs/luci-static/resources/view/wechatpush/advanced.js:73
msgid "The default SSH port is 22. If you have a custom port, please fill in the custom SSH port.<br/>Please make sure you have set up key-based login, otherwise it may cause script errors.<br/>Install the sensors command on PVE by searching on the internet.<br/>Example for key-based login (modify the address and port number accordingly):<br/>opkg update # Update package list<br/>opkg install openssh-client openssh-keygen # Install openssh client<br/>echo -e \"\\n\" | ssh-keygen -t rsa # Generate key file (no passphrase)<br/>pve_host=`uci get wechatpush.config.server_host` || pve_host=\"10.0.0.3\" # Read the PVE host address from the configuration file, If not saved, please fill in by yourself.<br/>pve_port=`uci get wechatpush.config.server_port` || pve_host=\"22\" # Read the PVE host SSH port number from the configuration file, If not saved, please fill in by yourself.<br/>ssh root@${pve_host} -p ${pve_port} \"tee -a ~/.ssh/id_rso.pub\" < ~/.ssh/id_rso.pub # Transfer public key to PVE<br/>ssh root@${pve_host} -p ${pve_port} \"cat ~/.ssh/id_rso.pub >> ~/.ssh/authorized_keys\" # Write public key to PVE<br/>ssh -i /root/.ssh/id_rsa root@${pve_host} -p ${pve_port} sensors # To avoid script errors during the initial connection, please use a private key to connect to PVE and test the temperature command for its proper functioning.<br/>For users who frequently flash firmware, please add /root/.ssh/ to the backup list to avoid duplicate operations."
msgstr "SSH 端口默认为 22如有自定义请填写自定义 SSH 端口<br/>请确认已经设置好密钥登陆,否则会引起脚本无法运行等错误!<br/>PVE 安装 sensors 命令自行百度<br/>密钥登陆例(自行修改地址与端口号):<br/>opkg update #更新列表<br/>opkg install openssh-client openssh-keygen #安装openssh客户端<br/>echo -e \"\\n\" | ssh-keygen -t rsa # 生成密钥文件(空密码)<br/>pve_host=`uci get serverchan.serverchan.server_host` || pve_host=\"10.0.0.3\" # 读取配置文件中的 pve 主机地址,如果未保存设置,请自行填写 <br/>pve_port=`uci get serverchan.serverchan.server_port` || pve_host=\"22\" # 读取配置文件中的 pve 主机 ssh 端口号,如果未保存设置,请自行填写 <br/>ssh root@${pve_host} -p ${pve_port} \"tee -a ~/.ssh/id_rso.pub\" < ~/.ssh/id_rso.pub # 传送公钥到 PVE<br/>ssh root@${pve_host} -p ${pve_port} \"cat ~/.ssh/id_rso.pub >> ~/.ssh/authorized_keys\" # 写入公钥到 PVE<br/>ssh -i /root/.ssh/id_rsa root@${pve_host} -p ${pve_port} sensors # 因首次连接时需要确认,为避免脚本错误,请使用私钥连接 PVE 并测试温度命令是否正常运行。<br/>刷机党自行将 /root/.ssh/ 加入备份列表,避免重复操作"
#: applications/luci-app-wechatpush/htdocs/luci-static/resources/view/wechatpush/advanced.js:67
#: applications/luci-app-wechatpush/htdocs/luci-static/resources/view/wechatpush/advanced.js:76
msgid "Test temperature command"
msgstr "测试温度命令"
#: applications/luci-app-wechatpush/htdocs/luci-static/resources/view/wechatpush/advanced.js:73
#: applications/luci-app-wechatpush/htdocs/luci-static/resources/view/wechatpush/advanced.js:82
msgid "Returned temperature value is empty"
msgstr "返回的温度值为空"
#: applications/luci-app-wechatpush/htdocs/luci-static/resources/view/wechatpush/advanced.js:78
#: applications/luci-app-wechatpush/htdocs/luci-static/resources/view/wechatpush/advanced.js:87
msgid "Fetch failed"
msgstr "获取失败:"
#: applications/luci-app-wechatpush/htdocs/luci-static/resources/view/wechatpush/advanced.js:82
#: applications/luci-app-wechatpush/htdocs/luci-static/resources/view/wechatpush/advanced.js:91
msgid "Assist in obtaining device information"
msgstr "辅助获取设备列表"
#: applications/luci-app-wechatpush/htdocs/luci-static/resources/view/wechatpush/advanced.js:83
#: applications/luci-app-wechatpush/htdocs/luci-static/resources/view/wechatpush/advanced.js:92
msgid "Retrieve hostname list from modem"
msgstr "从光猫获取主机名等信息"
#: applications/luci-app-wechatpush/htdocs/luci-static/resources/view/wechatpush/advanced.js:84
#: applications/luci-app-wechatpush/htdocs/luci-static/resources/view/wechatpush/advanced.js:93
msgid "Scan local IP"
msgstr "扫描局域网 IP"
#: applications/luci-app-wechatpush/htdocs/luci-static/resources/view/wechatpush/advanced.js:86
#: applications/luci-app-wechatpush/htdocs/luci-static/resources/view/wechatpush/advanced.js:95
msgid "When OpenWrt is used as a bypass gateway and cannot obtain device hostnames or a complete list of local network devices.<br/>the \"Retrieve hostname list from modem\" option has only been tested with HG5143F/HN8145V China Telecom gateways and may not be universally applicable.<br/>The \"Scan local IP\" option may not retrieve hostnames, so please use device name annotations in conjunction with it."
msgstr "适用于 OpenWrt 作为旁路网关,无法获取设备主机名及完整的局域网设备列表时<br/>\"从光猫获取主机名列表\"选项仅测试通过 HG5143F/HN8145V 天翼网关,不保证通用性<br/>\"定期扫描局域网 IP\"选项可能无法获取主机名,请配合设备名备注使用"
#: applications/luci-app-wechatpush/htdocs/luci-static/resources/view/wechatpush/advanced.js:88
#: applications/luci-app-wechatpush/htdocs/luci-static/resources/view/wechatpush/advanced.js:97
msgid "Optical modem login URL"
msgstr "光猫登录地址 URL"
#: applications/luci-app-wechatpush/htdocs/luci-static/resources/view/wechatpush/advanced.js:93
#: applications/luci-app-wechatpush/htdocs/luci-static/resources/view/wechatpush/advanced.js:102
msgid "Device list JSON URL"
msgstr "设备列表 JSON URL"
#: applications/luci-app-wechatpush/htdocs/luci-static/resources/view/wechatpush/advanced.js:96
#: applications/luci-app-wechatpush/htdocs/luci-static/resources/view/wechatpush/advanced.js:105
msgid "Use F12 console to capture<br/>ip, devName, model are mandatory fields. Example JSON file information:<br/>{\"pc1\":{\"devName\":\"RouterOS\",\"model\":\"\",\"type\":\"pc\",\"ip\":\"192.168.1.7\"}}"
msgstr "使用 F12 控制台自行抓取<br/>ip、devName、model 为必须项JSON 文件信息范例:<br/>{\"pc1\":{\"devName\":\"RouterOS\",\"model\":\"\",\"type\":\"pc\",\"ip\":\"192.168.1.7\"}}"
#: applications/luci-app-wechatpush/htdocs/luci-static/resources/view/wechatpush/advanced.js:99
#: applications/luci-app-wechatpush/htdocs/luci-static/resources/view/wechatpush/advanced.js:108
msgid "Optical modem logout URL"
msgstr "光猫注销登录 URL"
#: applications/luci-app-wechatpush/htdocs/luci-static/resources/view/wechatpush/advanced.js:102
#: applications/luci-app-wechatpush/htdocs/luci-static/resources/view/wechatpush/advanced.js:111
msgid "Not a mandatory field, but it may affect other users logging into the web management page, e.g., HG5143F"
msgstr "非必须项,但可能会影响其他用户登录 Web 管理页面,如 HG5143F"
#: applications/luci-app-wechatpush/htdocs/luci-static/resources/view/wechatpush/advanced.js:105
#: applications/luci-app-wechatpush/htdocs/luci-static/resources/view/wechatpush/advanced.js:114
msgid "Login page account input box ID"
msgstr "登录页面帐号输入框 ID"
#: applications/luci-app-wechatpush/htdocs/luci-static/resources/view/wechatpush/advanced.js:110
#: applications/luci-app-wechatpush/htdocs/luci-static/resources/view/wechatpush/advanced.js:119
msgid "Login page password input box ID"
msgstr "登录页面密码输入框 ID"
#: applications/luci-app-wechatpush/htdocs/luci-static/resources/view/wechatpush/advanced.js:113
#: applications/luci-app-wechatpush/htdocs/luci-static/resources/view/wechatpush/advanced.js:122
msgid "Right-click in the browser and select 'Inspect Element'"
msgstr "浏览器右键-检查元素"
#: applications/luci-app-wechatpush/htdocs/luci-static/resources/view/wechatpush/advanced.js:116
#: applications/luci-app-wechatpush/htdocs/luci-static/resources/view/wechatpush/advanced.js:125
msgid "Optical modem login account"
msgstr "光猫登录帐号"
#: applications/luci-app-wechatpush/htdocs/luci-static/resources/view/wechatpush/advanced.js:121
#: applications/luci-app-wechatpush/htdocs/luci-static/resources/view/wechatpush/advanced.js:130
msgid "Optical modem login password"
msgstr "光猫登录密码"
#: applications/luci-app-wechatpush/htdocs/luci-static/resources/view/wechatpush/advanced.js:123
#: applications/luci-app-wechatpush/htdocs/luci-static/resources/view/wechatpush/advanced.js:132
msgid "Use a regular account, no need for super password"
msgstr "使用普通账号即可,不需要超密"
#: applications/luci-app-wechatpush/htdocs/luci-static/resources/view/wechatpush/advanced.js:126
#: applications/luci-app-wechatpush/htdocs/luci-static/resources/view/wechatpush/advanced.js:135
msgid "IP range to be scanned"
msgstr "需要扫描的 IP 段"
#: applications/luci-app-wechatpush/htdocs/luci-static/resources/view/wechatpush/advanced.js:131
#: applications/luci-app-wechatpush/htdocs/luci-static/resources/view/wechatpush/advanced.js:140
msgid "Interval for capturing info"
msgstr "抓取信息时间间隔"
#: applications/luci-app-wechatpush/htdocs/luci-static/resources/view/wechatpush/advanced.js:135
#: applications/luci-app-wechatpush/htdocs/luci-static/resources/view/wechatpush/advanced.js:144
msgid "Generally, frequent capturing is not necessary. Adjust it as needed."
msgstr "一般不需要频繁抓取,酌情设置"
#: applications/luci-app-wechatpush/htdocs/luci-static/resources/view/wechatpush/advanced.js:139
#: applications/luci-app-wechatpush/htdocs/luci-static/resources/view/wechatpush/advanced.js:148
msgid "Unattended tasks"
msgstr "无人值守任务"
#: applications/luci-app-wechatpush/htdocs/luci-static/resources/view/wechatpush/advanced.js:142
#: applications/luci-app-wechatpush/htdocs/luci-static/resources/view/wechatpush/advanced.js:151
msgid "Please make sure the script can run properly, otherwise it may cause frequent restarts and other errors!"
msgstr "请确认脚本可以正常运行,否则可能造成频繁重启等错误!"
#: applications/luci-app-wechatpush/htdocs/luci-static/resources/view/wechatpush/advanced.js:144
#: applications/luci-app-wechatpush/htdocs/luci-static/resources/view/wechatpush/advanced.js:153
msgid "Restart zerotier after IP change"
msgstr "IP 变化后重启 zerotier"
#: applications/luci-app-wechatpush/htdocs/luci-static/resources/view/wechatpush/advanced.js:145
#: applications/luci-app-wechatpush/htdocs/luci-static/resources/view/wechatpush/advanced.js:154
msgid "An old issue with zerotier<br/>Cannot reconnect after disconnection, emmm, I don't know if it has been fixed now."
msgstr "zerotier 的陈年老问题<br/>断网后不能重新打洞emmm我也不知道修了没有"
#: applications/luci-app-wechatpush/htdocs/luci-static/resources/view/wechatpush/advanced.js:148
#: applications/luci-app-wechatpush/htdocs/luci-static/resources/view/wechatpush/advanced.js:157
msgid "Redial only during Do-Not-Disturb period"
msgstr "仅在免打扰时段重拨"
#: applications/luci-app-wechatpush/htdocs/luci-static/resources/view/wechatpush/advanced.js:151
#: applications/luci-app-wechatpush/htdocs/luci-static/resources/view/wechatpush/advanced.js:160
msgid "Avoid redialing network during the day to prevent waiting for DDNS domain resolution. This feature does not affect disconnection detection.<br/>Due to the issue of certain apps consuming excessive data at night, this feature may be unstable."
msgstr "避免在白天重拨网络造成 DDNS 域名等待解析,此功能不影响断网检测<br/>因夜间某些 APP 偷跑流量问题,该功能可能不稳定"
#: applications/luci-app-wechatpush/htdocs/luci-static/resources/view/wechatpush/advanced.js:156
#: applications/luci-app-wechatpush/htdocs/luci-static/resources/view/wechatpush/advanced.js:165
msgid "Will only be executed when none of the devices in the list are online.<br/>After an hour of Do-Not-Disturb period, if the devices in the focus list have low traffic (around 100kb/m) for five minutes, they will be considered offline."
msgstr "只会在列表中设备都不在线时才会执行<br/>免打扰时段一小时后关注设备五分钟低流量约100kb/m将视为离线"
#: applications/luci-app-wechatpush/htdocs/luci-static/resources/view/wechatpush/advanced.js:160
#: applications/luci-app-wechatpush/htdocs/luci-static/resources/view/wechatpush/advanced.js:169
msgid "When the network is disconnected"
msgstr "网络断开时"
#: applications/luci-app-wechatpush/htdocs/luci-static/resources/view/wechatpush/advanced.js:162
#: applications/luci-app-wechatpush/htdocs/luci-static/resources/view/wechatpush/advanced.js:170
#: applications/luci-app-wechatpush/htdocs/luci-static/resources/view/wechatpush/advanced.js:171
#: applications/luci-app-wechatpush/htdocs/luci-static/resources/view/wechatpush/advanced.js:179
msgid "No operation"
msgstr "无操作"
#: applications/luci-app-wechatpush/htdocs/luci-static/resources/view/wechatpush/advanced.js:163
#: applications/luci-app-wechatpush/htdocs/luci-static/resources/view/wechatpush/advanced.js:171
#: applications/luci-app-wechatpush/htdocs/luci-static/resources/view/wechatpush/advanced.js:172
#: applications/luci-app-wechatpush/htdocs/luci-static/resources/view/wechatpush/advanced.js:180
msgid "Restart the router"
msgstr "重启路由器"
#: applications/luci-app-wechatpush/htdocs/luci-static/resources/view/wechatpush/advanced.js:164
#: applications/luci-app-wechatpush/htdocs/luci-static/resources/view/wechatpush/advanced.js:172
#: applications/luci-app-wechatpush/htdocs/luci-static/resources/view/wechatpush/advanced.js:173
#: applications/luci-app-wechatpush/htdocs/luci-static/resources/view/wechatpush/advanced.js:181
msgid "Redialing network"
msgstr "重新拨号"
#: applications/luci-app-wechatpush/htdocs/luci-static/resources/view/wechatpush/advanced.js:165
#: applications/luci-app-wechatpush/htdocs/luci-static/resources/view/wechatpush/advanced.js:174
msgid "Option 1 and Option 2 will not modify settings and will try a maximum of 2 times.<br/>【!!This feature cannot guarantee compatibility!!】"
msgstr "选项 1 选项 2 不会修改设置,并最多尝试 2 次。<br/>【!!此功能无法保证兼容性!!】"
#: applications/luci-app-wechatpush/htdocs/luci-static/resources/view/wechatpush/advanced.js:168
#: applications/luci-app-wechatpush/htdocs/luci-static/resources/view/wechatpush/advanced.js:177
msgid "Scheduled reboot"
msgstr "定时重启"
#: applications/luci-app-wechatpush/htdocs/luci-static/resources/view/wechatpush/advanced.js:175
#: applications/luci-app-wechatpush/htdocs/luci-static/resources/view/wechatpush/advanced.js:184
msgid "System uptime greater than"
msgstr "系统运行时间大于"
#: applications/luci-app-wechatpush/htdocs/luci-static/resources/view/wechatpush/advanced.js:179
#: applications/luci-app-wechatpush/htdocs/luci-static/resources/view/wechatpush/advanced.js:186
#: applications/luci-app-wechatpush/htdocs/luci-static/resources/view/wechatpush/advanced.js:188
#: applications/luci-app-wechatpush/htdocs/luci-static/resources/view/wechatpush/advanced.js:195
msgid "Unit: hours"
msgstr "单位为小时"
#: applications/luci-app-wechatpush/htdocs/luci-static/resources/view/wechatpush/advanced.js:182
#: applications/luci-app-wechatpush/htdocs/luci-static/resources/view/wechatpush/advanced.js:191
msgid "Network uptime greater than"
msgstr "网络在线时间大于"

View File

@ -4,6 +4,6 @@ config wechatpush "config"
option sleeptime '60'
option debuglevel '1'
option up_timeout '2'
option down_timeout '20'
option down_timeout '10'
option timeout_retry_count '2'
option thread_num '3'

View File

@ -39,7 +39,7 @@ function read_config(){
"login_notification" "login_max_num" "login_web_black" "login_ip_black_timeout" "login_ip_white_list" "port_knocking_enable" "login_ip_white_timeout" "login_port_white" "login_port_forward_list" \
"crontab_regular_time" "crontab_interval_time" \
"do_not_disturb_mode" "do_not_disturb_starttime" "do_not_disturb_endtime" "up_down_push_whitelist" "up_down_push_blacklist" "up_down_push_interface" "mac_online_list" "mac_offline_list" "login_disturb" "login_notification_delay" "login_log_enable" \
"up_timeout" "down_timeout" "timeout_retry_count" "passive_mode" "thread_num" "soc_code" "server_host" "server_port" \
"up_timeout" "down_timeout" "timeout_retry_count" "only_timeout_push" "passive_mode" "thread_num" "soc_code" "server_host" "server_port" \
"unattended_enable" "zerotier_helper" "unattended_only_on_disturb_time" "unattended_device_aliases" "network_disconnect_event" "unattended_autoreboot_mode" "autoreboot_system_uptime" "autoreboot_network_uptime" \
"device_info_helper" "gateway_host_url" "gateway_info_url" "gateway_logout_url" "gateway_username_id" "gateway_password_id" "gateway_username" "gateway_password" "scan_ip_range" "device_info_helper_sleeptime"
@ -79,9 +79,6 @@ function read_config(){
[ -z "$login_ip_black_timeout" ] && login_ip_black_timeout="86400"
[ -z "$login_ip_white_timeout" ] && login_ip_white_timeout="600"
[ "$iw_version" ] && wlan_interface=`iw dev 2>/dev/null|grep Interface|awk '{print $2}'` >/dev/null 2>&1
[ -z "$up_timeout" ] || [ "$up_timeout" -eq "0" ] && up_timeout="2"
[ -z "$down_timeout" ] || [ "$down_timeout" -eq "0" ] && down_timeout="20";down_timeout=`expr ${down_timeout} / 2 + 1`
[ -z "$timeout_retry_count" ] && timeout_retry_count="2";[ "$timeout_retry_count" -eq "0" ] && timeout_retry_count="1"
[ -z "$server_port" ] && server_port="22"
output_dir="/tmp/wechatpush/json_output"
mkdir -p "$output_dir"
@ -929,7 +926,9 @@ function down(){
local ip_name=`getname ${1} ${ip_mac}`
local ip_interface=`getinterface ${ip_mac}`
getping ${1} ${ip_mac} ${down_timeout} ${timeout_retry_count};local ping_online=$?
tmp_timeout=$down_timeout && tmp_retry_count=$timeout_retry_count
[ -n "$only_timeout_push" ] && blackwhitelist ${ip_mac};local ip_blackwhite=$? && [ "$ip_blackwhite" -ne "0" ] && tmp_timeout=10 && tmp_retry_count=2
getping ${1} ${ip_mac} ${tmp_timeout} ${tmp_retry_count};local ping_online=$?
# 离线,置入二次验证区
if [ "$ping_online" -eq "1" ]; then
LockFile lock

View File

@ -8,7 +8,7 @@ local m, s, o
m = taskd.docker_map("wxedge", "wxedge", "/usr/libexec/istorec/wxedge.sh",
translate("Onething Edge"),
"「网心云-容器魔方」由网心云推出的一款 docker 容器镜像软件,通过在简单安装后即可快速加入网心云共享计算生态网络,用户可根据每日的贡献量获得相应的现金收益回报。了解更多,请登录「<a href=\"https://www.onethingcloud.com/\" target=\"_blank\" >网心云官网</a>」")
"「网心云-容器魔方」由网心云推出的一款 docker 容器镜像软件,通过在简单安装后即可快速加入网心云共享计算生态网络,用户可根据每日的贡献量获得相应的现金收益回报。了解更多,请登录「<a href=\"https://www.onethingcloud.com/\" target=\"_blank\" >网心云官网</a>」并查看<a href=\"https://doc.linkease.com/zh/guide/istoreos/software/wxedge.html\" target=\"_blank\">「教程」</a>")
s = m:section(SimpleSection, translate("Service Status"), translate("Onething Edge status:"), "注意网心云会以超级权限运行!")
s:append(Template("wxedge/status"))

View File

@ -12,13 +12,13 @@ PKG_MAINTAINER:=Tianling Shen <cnsztl@immortalwrt.org>
include $(INCLUDE_DIR)/package.mk
GEOIP_VER:=202306080049
GEOIP_VER:=202306150049
GEOIP_FILE:=geoip.dat.$(GEOIP_VER)
define Download/geoip
URL:=https://github.com/v2fly/geoip/releases/download/$(GEOIP_VER)/
URL_FILE:=geoip.dat
FILE:=$(GEOIP_FILE)
HASH:=a3c407051f1e2bbeef98c82372cec8de3ee6d44f645eeb07699bfcaec4ea3f1b
HASH:=811085edc67057690c783e735182db32e5a4b446ee5f6d70ef9e12960ce910da
endef
GEOSITE_VER:=20230614081211