sirpdboy / netspeedtest Goto Github PK
View Code? Open in Web Editor NEWluci-app-netspeedtest 网络速度诊断测试(包括:内网网页版测速、内网iperf3吞吐测速、外网speedtest.net网速测试、特定服务器的端口延迟测速)
luci-app-netspeedtest 网络速度诊断测试(包括:内网网页版测速、内网iperf3吞吐测速、外网speedtest.net网速测试、特定服务器的端口延迟测速)
5.15.98版本
PKG_VERSION:=2.1.3
PKG_RELEASE:=20230302
PKG_MAINTAINER:=https://github.com/sirpdboy/netspeedtest
speedtest测速
测服信息: 延时:
下行速率: ---- 上行速率:
测试时间: 2023-03-17 20:00:42
————————————————————————————
netperf测速
测服信息:netperf.bufferbloat.net 协议:(ipv4) 线程:4
下行速率: Mbps ---- 上行速率: Mbps
测试时间: 2023-03-17 20:00:48
————————————————————————————
测速无结果。
make[3]: Entering directory '/home/lu/data/source/lede_new/feeds/netspeedtest/homebox'
mkdir -p /home/lu/data/source/lede_new/dl
SHELL= flock /home/lu/data/source/lede_new/tmp/.homebox-0.0.0-dev.2020062901.tar.gz.flock -c ' /home/lu/data/source/lede_new/scripts/download.pl "/home/lu/data/source/lede_new/dl" "homebox-0.0.0-dev.2020062901.tar.gz" "skip" "v0.0.0-dev.2020062901.tar.gz" "https://github.com/XGHeaven/homebox/archive/refs/tags/" '
rm -f /home/lu/data/source/lede_new/build_dir/target-x86_64_musl/homebox-0.0.0-dev.2020062901/.built
touch /home/lu/data/source/lede_new/build_dir/target-x86_64_musl/homebox-0.0.0-dev.2020062901/.built_check
rm -rf /home/lu/data/source/lede_new/build_dir/target-x86_64_musl/homebox-0.0.0-dev.2020062901/build/static
mkdir -p /home/lu/data/source/lede_new/build_dir/target-x86_64_musl/homebox-0.0.0-dev.2020062901/build
cp -fpR /home/lu/data/source/lede_new/build_dir/hostpkg/homebox/build/static /home/lu/data/source/lede_new/build_dir/target-x86_64_musl/homebox-0.0.0-dev.2020062901/build/
( cd /home/lu/data/source/lede_new/build_dir/target-x86_64_musl/homebox-0.0.0-dev.2020062901; GOOS="linux" GOARCH="amd64" GO386="" GOAMD64="v1" GOARM="" GOMIPS="" GOMIPS64="" GOPPC64="" CGO_ENABLED=1 CC="x86_64-openwrt-linux-musl-gcc" CXX="x86_64-openwrt-linux-musl-g++" CGO_CFLAGS="-Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -fmacro-prefix-map=/home/lu/data/source/lede_new/build_dir/target-x86_64_musl/homebox-0.0.0-dev.2020062901=homebox-0.0.0-dev.2020062901 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro" CGO_CPPFLAGS="-I/home/lu/data/source/lede_new/staging_dir/toolchain-x86_64_gcc-11.3.0_musl/usr/include -I/home/lu/data/source/lede_new/staging_dir/toolchain-x86_64_gcc-11.3.0_musl/include/fortify -I/home/lu/data/source/lede_new/staging_dir/toolchain-x86_64_gcc-11.3.0_musl/include" CGO_CXXFLAGS="-Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -fmacro-prefix-map=/home/lu/data/source/lede_new/build_dir/target-x86_64_musl/homebox-0.0.0-dev.2020062901=homebox-0.0.0-dev.2020062901 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro" CGO_LDFLAGS="-L/home/lu/data/source/lede_new/staging_dir/toolchain-x86_64_gcc-11.3.0_musl/usr/lib -L/home/lu/data/source/lede_new/staging_dir/toolchain-x86_64_gcc-11.3.0_musl/lib -znow -zrelro" GOPATH="/home/lu/data/source/lede_new/build_dir/target-x86_64_musl/homebox-0.0.0-dev.2020062901/.go_work/build" GOCACHE="/home/lu/data/source/lede_new/tmp/go-build" GOMODCACHE="/home/lu/data/source/lede_new/dl/go-mod-cache" GOENV=off GO111MODULE=auto PATH=/home/lu/data/source/lede_new/build_dir/target-x86_64_musl/homebox-0.0.0-dev.2020062901/.go_work/build/bin:$PATH make build-server; )
make[4]: Entering directory '/home/lu/data/source/lede_new/build_dir/target-x86_64_musl/homebox-0.0.0-dev.2020062901'
go-bindata -fs -o server/assets.go -prefix build/static build/static
flag provided but not defined: -fs
-debug
Do not embed the assets, but provide the embedding API. Contents will still be loaded from disk.
-dev
Similar to debug, but does not emit absolute paths. Expects a rootDir variable to already exist in the generated code's package.
Usage: go-bindata [options]
-ignore value
Regex pattern to ignore
-mode uint
Optional file mode override for all files.
-modtime int
Optional modification unix timestamp override for all files.
-nocompress
Assets will not be GZIP compressed when this flag is specified.
-nomemcopy
Use a .rodata hack to get rid of unnecessary memcopies. Refer to the documentation to see what implications this carries.
-nometadata
Assets will not preserve size, mode, and modtime info.
-o string
Optional name of the output file to be generated. (default "./bindata.go")
-pkg string
Package name to use in the generated code. (default "main")
-prefix string
Optional path prefix to strip off asset names.
-tags string
Optional set of build tags to include.
-version
Displays version information.
make[4]: *** [Makefile:24: build-assets] Error 2
make[4]: Leaving directory '/home/lu/data/source/lede_new/build_dir/target-x86_64_musl/homebox-0.0.0-dev.2020062901'
make[3]: *** [Makefile:91: /home/lu/data/source/lede_new/build_dir/target-x86_64_musl/homebox-0.0.0-dev.2020062901/.built] Error 2
make[3]: Leaving directory '/home/lu/data/source/lede_new/feeds/netspeedtest/homebox'
time: package/feeds/netspeedtest/homebox/compile#0.17#0.06#0.21
ERROR: package/feeds/netspeedtest/homebox failed to build.
make[2]: *** [package/Makefile:116: package/feeds/netspeedtest/homebox/compile] Error 1
make[2]: Leaving directory '/home/lu/data/source/lede_new'
make[1]: *** [package/Makefile:110: /home/lu/data/source/lede_new/staging_dir/target-x86_64_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/lu/data/source/lede_new'
make: *** [/home/lu/data/source/lede_new/include/toplevel.mk:231:world] 错误 2
netperf测速
测服信息:netperf.bufferbloat.net 协议:(ipv4) 线程:4
下行速率: Mbps ---- 上行速率: Mbps
测试时间: 2023-01-16 14:13:23
路由器上显示iperf3 服务端已停止。
下面选择 iperf 服务启动,之后点击执行操作按钮。
下面显示正在收集数据。
Finding targets
Building targets
/workdir/openwrt/staging_dir/host/bin/upx --lzma --best /workdir/openwrt/build_dir/target-x86_64_musl/speedtest-web-1.1.5/.go_work/build/bin/speedtest
bash: line 1: /workdir/openwrt/staging_dir/host/bin/upx: No such file or directory
make[3]: *** [Makefile:79: /workdir/openwrt/build_dir/target-x86_64_musl/speedtest-web-1.1.5/.built] Error 127
make[3]: Leaving directory '/workdir/openwrt/feeds/netspeedtest/speedtest-web'
time: package/feeds/netspeedtest/speedtest-web/compile#1.07#0.42#1.20
ERROR: package/feeds/netspeedtest/speedtest-web failed to build.
make[2]: Leaving directory '/workdir/openwrt'
make[2]: *** [package/Makefile:116: package/feeds/netspeedtest/speedtest-web/compile] Error 1
make[1]: *** [package/Makefile:110: /workdir/openwrt/staging_dir/target-x86_64_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/workdir/openwrt'
make: *** [/workdir/openwrt/include/toplevel.mk:231: world] Error 2
Error: Process completed with exit code 2.
在nginx https下页面不显示,怎么开启ssl?https下访问?
1、客户端软件,能否设置默认的服务端地址?避免每次都要手动输入。
2、测速包大小是10M,能否手动设定?
root@iStoreOS:/tmp/upload# opkg install *.ipk --force-depends
Unknown package 'luci-app-netspeedtest'.
Installing luci-i18n-netspeedtest-zh-cn (2.1.3-20230302) to root...
Installing luci-app-netspeedtest (2.1.3-20230302) to root...
Collected errors:
homebox
git clone https://github.com/sirpdboy/netspeedtest.git package/netspeedtest
make menuconfig
make package/netspeedtest/luci-app-netspeedtest/compile V=s
echo "kmod-drm-i915" >> /home/ssvs/lede/staging_dir/target-x86_64_musl/pkginfo/linux.default.install
WARNING: kmod-amazon-ena is not available in the kernel config - generating empty package
echo "kmod-amazon-ena" >> /home/ssvs/lede/staging_dir/target-x86_64_musl/pkginfo/linux.default.install
WARNING: kmod-amd-xgbe is not available in the kernel config - generating empty package
echo "kmod-amd-xgbe" >> /home/ssvs/lede/staging_dir/target-x86_64_musl/pkginfo/linux.default.install
make[2]: Leaving directory '/home/ssvs/lede/package/kernel/linux'
time: package/kernel/linux/compile#3.74#0.51#4.32
make[2]: Entering directory '/home/ssvs/lede/package/kernel/cryptodev-linux'
make[2]: *** No rule to make target '/home/ssvs/lede/build_dir/target-x86_64_musl/linux-x86_64/linux-5.15.98/.config', needed by '/home/ssvs/lede/build_dir/target-x86_64_musl/linux-x86_64/cryptodev-linux-cryptodev-linux-1.12/.built'. Stop.
make[2]: Leaving directory '/home/ssvs/lede/package/kernel/cryptodev-linux'
time: package/kernel/cryptodev-linux/compile#0.20#0.09#0.30
ERROR: package/kernel/cryptodev-linux failed to build.
package/Makefile:114: recipe for target 'package/kernel/cryptodev-linux/compile' failed
make[1]: *** [package/kernel/cryptodev-linux/compile] Error 1
make[1]: Leaving directory '/home/ssvs/lede'
/home/ssvs/lede/include/toplevel.mk:229: recipe for target 'package/netspeedtest/luci-app-netspeedtest/compile' failed
make: *** [package/netspeedtest/luci-app-netspeedtest/compile] Error 2
make[3] -C feeds/netspeedtest/speedtest-web compile
ERROR: package/feeds/netspeedtest/speedtest-web failed to build.
make -r world: build failed. Please re-run make with -j1 V=s or V=sc for a higher verbosity level to see what's going on
具体编译失败细节不清楚sorry,用的官方源22.02
[V2.0.3]配合arm64的speedtest-web,当从 luci界面关闭启用后,会自动重新拉起,再关闭再被拉起,重复5次。猜测是触发了procd的检测机制。init.d中start_service()脚本,注释speedtestweb_prepare一行即可解决,它的作用是kill进程(也可以保留speedtestweb_prepare,注释procd_set_param respawn,但这样貌似不太正规);另外stop_service中speedtestweb_prepare也是多余,导致当从命令行运行/etc/init.d/netspeedtest stop时,会被procd_set_param respawn自动拉起,procd会自己关闭运行的服务,无需设置额外的kill进程指令,反而会认为是意外终止而触发重启。
start_service() {
speedtestweb_prepare
config_load netspeedtest
config_foreach get_config speedtestweb
[ x$enabled == x1 ] || return 1
logger -t netspeedtest -p warn "Netspeedtest speedtest-web is start."
echo "Netspeedtest speedtest-web is start."
procd_open_instance
procd_set_param command
[ "x$logger" == x1 ] && procd_set_param stderr 1
procd_set_param respawn
procd_close_instance
}
stop_service() {
speedtestweb_prepare
echo "Netspeedtest speedtest-web is stop."
}
我用外网测试没速度,看了下readme说需要依赖speedtest,这个依赖请问如何安装?
n1编译了之后开机报错
/usr/lib/lua/luci/dispatcher.lua:527: Invalid controller file found
The file '/usr/lib/lua/luci/controller/NetSpeedTest.lua' contains an invalid module line.
Please verify whether the module name is set to 'luci.controller.NetSpeedTest' - It must correspond to the file path!
stack traceback:
[C]: in function 'assert'
/usr/lib/lua/luci/dispatcher.lua:527: in function 'createindex'
/usr/lib/lua/luci/dispatcher.lua:553: in function 'createtree'
/usr/lib/lua/luci/dispatcher.lua:238: in function 'dispatch'
/usr/lib/lua/luci/dispatcher.lua:121: in function </usr/lib/lua/luci/dispatcher.lua:120>
和 sirpdboy/luci-app-netdata#1 这个问题一样,
编译后的包没有关联任何依赖,
curl: (28) Resolving timed out after 5000 milliseconds
—————ookla-speedtest测速—————
因客户端在LUCI下运行错误,测试失败!
请SSH运行:/etc/init.d/netspeedtest wantest 0 测试,完成后,在日志中有测试结果!
测试时间: 2024-06-27 01:38:10
————————————————————
如题
/etc/init.d/netspeedtest的权限默认是0644,调用提示'-ash: /etc/init.d/netspeedtest: Permission denied',导致netspeedtest相关程序都开不起来,比如speedtest-web,改为0755正常启动
大佬请问外网测速,能否增加wan选项,比如有2个wan口或者是多个wan口
另外看到上游homebo也更新了(https://github.com/XGHeaven/homebox/releases/tag/v0.0.0-dev.2023102203 ),或许也可以更新下?
scripts/feeds update NetSpeedTest
scripts/feeds install luci-app-NetSpeedTest
执行 scripts/feeds install luci-app-NetSpeedTest 会提示
WARNING: No feed for package 'luci-app-NetSpeedTest' found
但是 改成全小写 scripts/feeds install luci-app-netspeedtest 就OK了 😂
默认情况下 。speedtest.net会被机场代理、
加入了规则。内网其他客户端都可以正常识别国内的server ID。
但是这个还是只有外网的,也就是指定不走代理无效。
确认netspeedtest在启动项中开启,但是软路由重启后未能重新自动开启,需手动拉起。
软路由版本:
ImmortalWrt 21.02-SNAPSHOT r19403-80080fa5b5 / LuCI openwrt-21.02 branch git-22.163.47328-e24e8f3
系统日志:
Tue Jun 21 23:31:30 2022 daemon.notice procd: /etc/rc.d/S95netspeedtest:
Tue Jun 21 23:31:32 2022 daemon.notice netifd: Interface 'wan_6' is now up
Tue Jun 21 23:31:32 2022 user.notice firewall: Reloading firewall due to ifup of wan_6 (pppoe-wan)
Tue Jun 21 23:31:32 2022 daemon.notice procd: /etc/rc.d/S95netspeedtest: ————————————————————————————Retrieving speedtest.net configuration...
Tue Jun 21 23:31:37 2022 daemon.notice procd: /etc/rc.d/S95netspeedtest: Cannot retrieve speedtest configuration
Tue Jun 21 23:31:37 2022 daemon.notice procd: /etc/rc.d/S95netspeedtest: ERROR: <urlopen error [Errno -3] Try again>
Tue Jun 21 23:31:37 2022 daemon.notice procd: /etc/rc.d/S95netspeedtest:
Tue Jun 21 23:31:37 2022 daemon.notice procd: /etc/rc.d/S95netspeedtest: 测服信息:
Tue Jun 21 23:31:37 2022 daemon.notice procd: /etc/rc.d/S95netspeedtest: 下行速率: ---- 上行速率:
Tue Jun 21 23:31:37 2022 daemon.notice procd: /etc/rc.d/S95netspeedtest: 测试时间: 2022-06-21 23:31:37
* check_conflicts_for: The following packages conflict with iperf3-ssl:
* check_conflicts_for: iperf3 *
* opkg_install_cmd: Cannot install package luci-app-netspeedtest.
* check_conflicts_for: The following packages conflict with iperf3-ssl:
* check_conflicts_for: iperf3 *
* opkg_install_cmd: Cannot install package iperf3-ssl.
make[1]: *** [package/Makefile:70: package/install] Error 255
可否告知一下外网测速的域名,添加到直连列表去,我已经把Speedtest.net加入直连貌似您用的不是
Sent from PPHub
新版本有问题吗?单独编译插件也报错,固件编译scripts/feeds install netspeedtest这步就报错了
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.