mirror of
https://github.com/Finb/bark-server.git
synced 2026-04-26 14:15:56 +03:00
[GH-ISSUE #50] 群晖自建bark-server推送404 #40
Labels
No labels
enhancement
in progress
need test
pull-request
v2
v2
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/bark-server#40
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @shenmirenQUQ on GitHub (Mar 10, 2021).
Original GitHub issue: https://github.com/Finb/bark-server/issues/50
----这是路由器插件的推送代码-----
serverchan_send_title="${send_title} 路由器状态信息" serverchan_send_content=$(cat ${serverchan_info_text}) sckey_nu=$(dbus list serverchan_config_sckey | sort -n -t "_" -k 4 | cut -d "=" -f 1 | cut -d "_" -f 4) for nu in ${sckey_nu}; do serverchan_config_sckey=$(dbus get serverchan_config_sckey_${nu}) url="https://www.baidu.comz:8087/${serverchan_config_sckey}/" result=$(wget --no-check-certificate --post-data "title=${serverchan_send_title}&body=${serverchan_send_content}" -qO- ${url}) if [ -n $(echo $result | grep "success") ]; then [ "${serverchan_info_logger}" == "1" ] && logger "[ServerChan]: 路由器状态信息推送到 SCKEY No.${nu} 成功!" else [ "${serverchan_info_logger}" == "1" ] && logger "[ServerChan]: 路由器状态信息推送到 SCKEY No.${nu} 失败,请检查网络及配置!" fi done--------------------这是bark-server的日志------
` 2021-03-10 09:45:32 INFO 192.168.50.100 -> [404] POST 17.311µs / => /i00ddddddddddddddddr title=RT-AX86U 路由器状态信息&body=###### 本次信息推送:手动推送.
系统运行状态:
系统名称:
系统当前时间: 2021年03月10日 17点45分28秒
固件版本: 386.1_2
系统模式: 无线路由器
系统运行时间: 2天 23小时 58分钟 12秒
平均负载(1,5,15min): 1.08, 1.06, 1.02
总内存: 912.17MB 空闲数: 491.62MB
虚拟内存: 0.00 / 0.00 MB
JFFS: 15.8 / 47.0 MB
温度传感器状况:
2.4GHz: 45°C | 5GHz: 50°C | CPU: 70.4°C
网络状态信息:
WAN0状态信息:
联机类型: pppoe `
@shenmirenQUQ commented on GitHub (Mar 10, 2021):
用该服务器地址在Chrome浏览器插件上正常推送