Skip to content

Commit

Permalink
允许间隔时间为0
Browse files Browse the repository at this point in the history
  • Loading branch information
easychen committed May 25, 2022
1 parent adf49bc commit 059057c
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 16 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Check酱

**监测网页内容变化,并发送异动到微信**
**Check酱是一个通用网页内容监控工具,可以监测网页内容变化,并发送异动到微信**

⚠️ docker目录下的代码仅供安全核查和编译多平台镜像,采用附加条件的GPLV3授权:

Expand All @@ -18,7 +18,7 @@
docker run -e API_KEY=YouRAPiK1 -e TZ=Asia/Chongqing -e ERROR_IMAGE=NORMAL -p 8088:80 -v $PWD:/data -d ccr.ccs.tencentyun.com/ftqq/checkchan:latest
```
* 特别提醒:`/data`挂载的目录需要写权限
* 特别提醒2:此镜像为x86架构,暂时未提供arm架构镜像
* 特别提醒2:此镜像为x86架构,arm架构镜像可[拉取源码](https://github.com/easychen/checkchan-dist/tree/main/docker)自行构建



Expand Down
2 changes: 1 addition & 1 deletion build.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
"20220525011511"
"20220525124443"
Binary file renamed ckc.20220525011511.zip → ckc.20220525124443.zip
Binary file not shown.
7 changes: 6 additions & 1 deletion docker/api/cron.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ logit("开始载入任务");
for( const item of to_checks )
{
let do_now = false;
if( parseInt( item.interval ) < 1 ) item.interval = 10;
if( parseInt( item.interval ) < 0 ) item.interval = 0;

// 判断是否应该监测
if( item.last_time )
Expand All @@ -23,6 +23,11 @@ for( const item of to_checks )
{
if(dayjs(item.last_time).add(item.interval,'minutes').isBefore(dayjs())) do_now = true;
}

if( item.interval == 0 )
{
do_now = true;
}
}else
{
do_now = true;
Expand Down
2 changes: 1 addition & 1 deletion ext.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<div class='ext-info'><center>插件最后更新于2022-05-25 01:15:43 Build 20220525011511</center></div>
<div class='ext-info'><center>插件最后更新于2022-05-25 12:45:15 Build 20220525124443</center></div>
14 changes: 7 additions & 7 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
<title>Check酱官网</title>
</head>
<body>
<div class='ext-info'><center>插件最后更新于2022-05-25 01:15:43 Build 20220525011511</center></div><h1>Check酱</h1>
<p><strong>监测网页内容变化,并发送异动到微信</strong></p>
<div class='ext-info'><center>插件最后更新于2022-05-25 12:45:15 Build 20220525124443</center></div><h1>Check酱</h1>
<p><strong>Check酱是一个通用网页内容监控工具,可以监测网页内容变化,并发送异动到微信</strong></p>
<p><g-emoji class="g-emoji" alias="warning" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/26a0.png">⚠️</g-emoji> docker目录下的代码仅供安全核查和编译多平台镜像,采用附加条件的GPLV3授权:</p>
<ol>
<li>不得修改或删除默认对接的Server酱通道。</li>
Expand All @@ -19,13 +19,13 @@
</ol>
<h2>TLDR版</h2>
<ul>
<li>Chrome/Edge浏览器插件:<a href="ckc.20220525011511.zip">下载</a></li>
<li>Chrome/Edge浏览器插件:<a href="ckc.20220525124443.zip">下载</a></li>
<li>自架版云端 Docker 命令(<code class="notranslate">API Key</code><code class="notranslate">YouRAPiK1</code>):</li>
</ul>
<div class="highlight highlight-source-shell"><pre>docker run -e API_KEY=YouRAPiK1 -e TZ=Asia/Chongqing -e ERROR_IMAGE=NORMAL -p 8088:80 -v <span class="pl-smi">$PWD</span>:/data -d ccr.ccs.tencentyun.com/ftqq/checkchan:latest</pre></div>
<ul>
<li>特别提醒:<code class="notranslate">/data</code>挂载的目录需要写权限</li>
<li>特别提醒2:此镜像为x86架构,暂时未提供arm架构镜像</li>
<li>特别提醒2:此镜像为x86架构,arm架构镜像可<a href="https://github.com/easychen/checkchan-dist/tree/main/docker">拉取源码</a>自行构建</li>
</ul>
<h2>什么是「Check酱」</h2>
<p><a target="_blank" rel="noopener noreferrer" href="image/20220521132637.png"><img src="image/20220521132637.png" alt="" style="max-width: 100%;"></a></p>
Expand All @@ -43,7 +43,7 @@ <h3>安装</h3>
<blockquote>
<p>目前Check酱正在内测,尚未上架Edge商店,只能通过手工方式载入</p>
</blockquote>
<p>下载<a href="ckc.20220525011511.zip">插件ZIP包</a>,解压为目录(后文称其为A)。</p>
<p>下载<a href="ckc.20220525124443.zip">插件ZIP包</a>,解压为目录(后文称其为A)。</p>
<p>打开Edge的插件页面,打开「开发者模式」,点击「Load Unpacked」,选择上边解压得到的目录A。</p>
<p><a target="_blank" rel="noopener noreferrer" href="image/20220521140506.png"><img src="image/20220521140506.png" alt="" style="max-width: 100%;"></a></p>
<p>成功载入的话,就可以看到Check酱界面了。如果失败,通常是因为解压时多了一层目录导致的,可以试试重新选择A目录的下一级目录</p>
Expand Down Expand Up @@ -135,7 +135,7 @@ <h4>通过 Docker-compose 启动</h4>
<blockquote>
<p>如提示docker服务未安装/找不到/未启动,可在 docker-compose 前加 sudo 再试</p>
</blockquote>
<p>等待初始化完成后,访问 <code>http://$BBB:8088?key=$CCC</code>( 将$BBB替换为IP B,$CCC替换为密码C ),看到包含 <code>it works</code> 的提示即为架设成功。</p>
<p>等待初始化完成后,访问 <code class="notranslate">http://$BBB:8088?key=$CCC</code>( 将$BBB替换为IP B,$CCC替换为密码C ),看到包含 <code class="notranslate">it works</code> 的提示即为架设成功。</p>
<p><a target="_blank" rel="noopener noreferrer" href="image/20220521142747.png"><img src="image/20220521142747.png" alt="" style="max-width: 100%;"></a></p>
<h4>通过 Docker 启动</h4>
<div class="highlight highlight-source-shell"><pre>docker run -e API_KEY=<span class="pl-k">*</span> -e TZ=Asia/Chongqing -p 8088:80 -v <span class="pl-smi">$PWD</span>:/data -d ccr.ccs.tencentyun.com/ftqq/checkchan:latest</pre></div>
Expand All @@ -152,7 +152,7 @@ <h4>更新镜像</h4>
<h3>将浏览器插件对接云端</h3>
<p><a target="_blank" rel="noopener noreferrer" href="image/20220521144137.png"><img src="image/20220521144137.png" alt="" style="max-width: 100%;"></a></p>
<p>点击插件右上方菜单中的<code class="notranslate">云端服务</code></p>
<p><code>服务器地址</code>一栏输入 <code>http://$BBB:8088</code>(将$BBB替换为IP B,这里的URL不用加key参数);在<code>API_KEY</code>一栏输入密码C。</p>
<p><code class="notranslate">服务器地址</code>一栏输入 <code class="notranslate">http://$BBB:8088</code>(将$BBB替换为IP B,这里的URL不用加key参数);在<code class="notranslate">API_KEY</code>一栏输入密码C。</p>
<p>点击保存,连接成功后,配置完成。</p>
<h3>同步本地任务到云端</h3>
<p>配置好云端以后回到列表页,每行最右边会多出来一个「电脑」图标,点击后会变成「云」图标,该任务将改为在云端执行。</p>
Expand Down
8 changes: 4 additions & 4 deletions readme.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<h1>Check酱</h1>
<p><strong>监测网页内容变化,并发送异动到微信</strong></p>
<p><strong>Check酱是一个通用网页内容监控工具,可以监测网页内容变化,并发送异动到微信</strong></p>
<p><g-emoji class="g-emoji" alias="warning" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/26a0.png">⚠️</g-emoji> docker目录下的代码仅供安全核查和编译多平台镜像,采用附加条件的GPLV3授权:</p>
<ol>
<li>不得修改或删除默认对接的Server酱通道。</li>
Expand All @@ -14,7 +14,7 @@ <h2>TLDR版</h2>
<div class="highlight highlight-source-shell"><pre>docker run -e API_KEY=YouRAPiK1 -e TZ=Asia/Chongqing -e ERROR_IMAGE=NORMAL -p 8088:80 -v <span class="pl-smi">$PWD</span>:/data -d ccr.ccs.tencentyun.com/ftqq/checkchan:latest</pre></div>
<ul>
<li>特别提醒:<code class="notranslate">/data</code>挂载的目录需要写权限</li>
<li>特别提醒2:此镜像为x86架构,暂时未提供arm架构镜像</li>
<li>特别提醒2:此镜像为x86架构,arm架构镜像可<a href="https://github.com/easychen/checkchan-dist/tree/main/docker">拉取源码</a>自行构建</li>
</ul>
<h2>什么是「Check酱」</h2>
<p><a target="_blank" rel="noopener noreferrer" href="image/20220521132637.png"><img src="image/20220521132637.png" alt="" style="max-width: 100%;"></a></p>
Expand Down Expand Up @@ -124,7 +124,7 @@ <h4>通过 Docker-compose 启动</h4>
<blockquote>
<p>如提示docker服务未安装/找不到/未启动,可在 docker-compose 前加 sudo 再试</p>
</blockquote>
<p>等待初始化完成后,访问 <code>http://$BBB:8088?key=$CCC</code>( 将$BBB替换为IP B,$CCC替换为密码C ),看到包含 <code>it works</code> 的提示即为架设成功。</p>
<p>等待初始化完成后,访问 <code class="notranslate">http://$BBB:8088?key=$CCC</code>( 将$BBB替换为IP B,$CCC替换为密码C ),看到包含 <code class="notranslate">it works</code> 的提示即为架设成功。</p>
<p><a target="_blank" rel="noopener noreferrer" href="image/20220521142747.png"><img src="image/20220521142747.png" alt="" style="max-width: 100%;"></a></p>
<h4>通过 Docker 启动</h4>
<div class="highlight highlight-source-shell"><pre>docker run -e API_KEY=<span class="pl-k">*</span> -e TZ=Asia/Chongqing -p 8088:80 -v <span class="pl-smi">$PWD</span>:/data -d ccr.ccs.tencentyun.com/ftqq/checkchan:latest</pre></div>
Expand All @@ -141,7 +141,7 @@ <h4>更新镜像</h4>
<h3>将浏览器插件对接云端</h3>
<p><a target="_blank" rel="noopener noreferrer" href="image/20220521144137.png"><img src="image/20220521144137.png" alt="" style="max-width: 100%;"></a></p>
<p>点击插件右上方菜单中的<code class="notranslate">云端服务</code></p>
<p><code>服务器地址</code>一栏输入 <code>http://$BBB:8088</code>(将$BBB替换为IP B,这里的URL不用加key参数);在<code>API_KEY</code>一栏输入密码C。</p>
<p><code class="notranslate">服务器地址</code>一栏输入 <code class="notranslate">http://$BBB:8088</code>(将$BBB替换为IP B,这里的URL不用加key参数);在<code class="notranslate">API_KEY</code>一栏输入密码C。</p>
<p>点击保存,连接成功后,配置完成。</p>
<h3>同步本地任务到云端</h3>
<p>配置好云端以后回到列表页,每行最右边会多出来一个「电脑」图标,点击后会变成「云」图标,该任务将改为在云端执行。</p>
Expand Down

1 comment on commit 059057c

@vercel
Copy link

@vercel vercel bot commented on 059057c May 25, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

checkchan-dist – ./

checkchan-dist-morexmore.vercel.app
checkchan-dist-git-main-morexmore.vercel.app
ckc.ftqq.com

Please sign in to comment.