Giter Club home page Giter Club logo

sirpdboy / luci-app-autotimeset Goto Github PK

View Code? Open in Web Editor NEW
131.0 6.0 34.0 92 KB

luci-app-autotimeset 任务设置2.0版:原定时设置的升级,开机任务设置和定时设置任务二合一, 预置功能:重启、关机、重启网络、释放内存、系统清理、网络共享、关闭网络、自动检测断网重连、MWAN3负载均衡检测重连、自定义脚本等10多个功能. 轻松点击启用就可生效,更多的功能就看自己需要在自定义脚本自己加入。日志中有每一条任务执行的日志和时间,其中: Startup_task代表的是开机任务, Scheduled_task代表的是定时任务

License: MIT License

Makefile 2.71% Lua 38.03% HTML 9.48% Shell 49.78%
luci-app-autotimeset

luci-app-autotimeset's Introduction

若部分图片无法正常显示,请挂上机场浏览或点这里到末尾看修复教程

autotimeset 定时设置插件

screenshots

认真阅读完毕 本页面,本页面包含注意事项和如何使用。

功能说明:

定时设置2.0版

2023.5.23 定时设置2.0版:定时执行任务设置和开机启动任务设置二合一版,并增加自定义脚本功能。

定时设置1.9版

2023.4.1 定时设置1.9版:加入定时断网重连、定时检测WAN3重启等服务。

定时设置1.6版

2023.1.15 定时设置1.6版:重新代码制作优化。在之前的版本上新增加:定时清理内存、定时清理系统垃圾、定时断网、定时重启网络共享、定时重拨 等 8大功能

定时设置1.4版

2021.2.7 新增功能定时重启网络。现包括:定时重启、定时关机、定时重启网络,各功能可一起使用。

定时设置1.3版

2020.10.6 原来重定关机正式改名为定时设置,实现定时重启和定时关机功能二合一。

定时关机1.1版

2020.7.19 定时关机功能,彻底解决需要保存二次才生效的问题。

定时关机1.0版

2019.2.24 定时关机功能借鉴前辈们的开源代码首发。

编译使用方法

将luci-app-autotimeset添加至 LEDE/OpenWRT 源码的方法。

下载源码方法一:

编辑源码文件夹根目录feeds.conf.default并加入如下内容:

    # feeds获取源码:
    src-git autotimeset  https://github.com/sirpdboy/luci-app-autotimeset
 # 更新feeds,并安装主题:
  scripts/feeds update autotimeset
  scripts/feeds install luci-app-autotimeset

下载源码方法二:

   # 下载源码
   git clone https://github.com/sirpdboy/luci-app-autotimeset package/luci-app-autotimeset
   make menuconfig

配置菜单

   make menuconfig
   # 找到 LuCI -> Applications, 选择 luci-app-autotimeset, 保存后退出。

编译

   # 编译固件
   make package/luci-app-autotimeset/compile V=s

说明

源码来源:https://github.com/sirpdboy/luci-app-autotimeset

使用与授权相关说明

  • 本人开源的所有源码,任何引用需注明本处出处,如需修改二次发布必告之本人,未经许可不得做于任何商用用途。

My other project

捐助

screenshots

图飞了😂 图飞了😂
xm1 xm1
图飞了😂

luci-app-autotimeset's People

Contributors

jjm2473 avatar rq1025330 avatar sirpdboy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

luci-app-autotimeset's Issues

延迟时间具体是什么意思?

延迟时间具体是什么意思?比如我设置了一个重启任务,设置了延时时间30分钟,是不是这个设备关机之后,不会立即启动,而是会在30分钟之后才启动,如果是这样的话,那延迟时间的具体单位是多少,分钟?毫秒?还是啥?

自定义脚本功能由于换行符问题无法使用

我不太清楚我是否找对了问题,但是我在网页编辑脚本并保存后,在终端查询脚本变成了只有一行,似乎是换行符的问题,这会导致脚本完全不能执行,另外我发现软件包会自动加上首行#环境,这也导致了问题,是否能让这个首行环境显示在网页上,或者去掉自动添加的功能?

lienol的源码,21.02分支编译后提示错误信息,无法显示界面

微信图片_20210403161106
编译后进到插件界面提示:
/usr/lib/lua/luci/model/cbi/autotimeset.lua:2: module 'luci.model.ipkg' not found:
no field package.preload['luci.model.ipkg']
no file './luci/model/ipkg.lua'
no file '/usr/share/lua/luci/model/ipkg.lua'
no file '/usr/share/lua/luci/model/ipkg/init.lua'
no file '/usr/lib/lua/luci/model/ipkg.lua'
no file '/usr/lib/lua/luci/model/ipkg/init.lua'
no file './luci/model/ipkg.so'
no file '/usr/lib/lua/luci/model/ipkg.so'
no file '/usr/lib/lua/loadall.so'
no file './luci.so'
no file '/usr/lib/lua/luci.so'
no file '/usr/lib/lua/loadall.so'
stack traceback:
[C]: in function 'require'
/usr/lib/lua/luci/model/cbi/autotimeset.lua:2: in function 'func'
/usr/lib/lua/luci/cbi.lua:66: in function 'load'
/usr/lib/lua/luci/dispatcher.lua:1353: in function '_cbi'
/usr/lib/lua/luci/dispatcher.lua:1024: in function 'dispatch'
/usr/lib/lua/luci/dispatcher.lua:479: in function </usr/lib/lua/luci/dispatcher.lua:478>

望大神帮忙分析一下 感激不尽!

大佬,最新openwrt官方源码编译失败

make[5]: Entering directory '/home/snakwu/openwrt/openwrt/build_dir/target-x86_64_musl/linux-x86_64/linux-5.15.79'
SYNC include/config/auto.conf.cmd
CALL scripts/checksyscalls.sh
CALL scripts/atomic/check-atomics.sh
DESCEND objtool
CHK include/generated/compile.h
GEN usr/initramfs_data.cpio
autotimeset ../init.d/autotimeset 777 0 0' line 327
autotimeset ../init.d/autotimeset 777 0 0' line 362
make[6]: *** [usr/Makefile:82: usr/initramfs_data.cpio] Error 255
make[6]: *** Deleting file 'usr/initramfs_data.cpio'
make[5]: *** [Makefile:1901: usr] Error 2
make[5]: Leaving directory '/home/snakwu/openwrt/openwrt/build_dir/target-x86_64_musl/linux-x86_64/linux-5.15.79'
make[4]: *** [Makefile:46: /home/snakwu/openwrt/openwrt/build_dir/target-x86_64_musl/linux-x86_64/linux-5.15.79/.image] Error 2
make[4]: Leaving directory '/home/snakwu/openwrt/openwrt/target/linux/x86'
make[3]: *** [Makefile:11: install] Error 2
make[3]: Leaving directory '/home/snakwu/openwrt/openwrt/target/linux'
time: target/linux/install#39.59#21.33#69.04
ERROR: target/linux failed to build.
make[2]: *** [target/Makefile:30: target/linux/install] Error 1
make[2]: Leaving directory '/home/snakwu/openwrt/openwrt'
make[1]: *** [target/Makefile:24: /home/snakwu/openwrt/openwrt/staging_dir/target-x86_64_musl/stamp/.target_install] Error 2
make[1]: Leaving directory '/home/snakwu/openwrt/openwrt'
make: *** [/home/snakwu/openwrt/openwrt/include/toplevel.mk:231: world] Error 2
snakwu@compiler-server:~/openwrt/openwrt$

Feature optimization suggestion

Thanks for your hard work, it's been an incredibly useful tool.

I'd like to share a small piece of feedback for your consideration. Currently, the plugin features only a single custom script box, which makes it somewhat cumbersome to manage different custom scripts for various times. If possible, an enhancement to allow for multiple script boxes or a more flexible scripting interface could greatly enhance the user experience. This feature would provide more convenience and efficiency, especially for those of us who frequently switch between different scripts.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.