Giter VIP home page Giter VIP logo

sync-time-'s Introduction

Đồng bộ hóa ngày openwrt bằng cách chọn ngày từ miền đã chọn.

Đồng bộ hóa thời gian trong OpenWrt bằng cách lấy dữ liệu thời gian từ miền đã chọn.

Hỗ trợ đồng bộ thời gian khi có kết nối modem/internet.

Trình kiểm tra kết nối (nếu sử dụng chế độ cron, tập lệnh sẽ kiểm tra kết nối, sau đó khởi động lại ứng dụng VPN nếu không có kết nối internet)

Cài đặt múi giờ tự động tuân theo LuCI - System - System - Timezone.

Hỗ trợ cài đặt múi giờ cho VPN:

OpenClash

Passwall

ShadowsocksR

ShadowsocksR++

v2ray

v2rayA

xray

Libernet

Xderm Mini

Wegare STL

Sử dụng mặc định - Sử dụng cơ bản

Cài đặt các gói yêu cầu trước bằng cách mở terminal:

opkg update && opkg install curl wget

Dán lệnh bên dưới để cài đặt tập lệnh times-openwrt

Dùng wget:

wget --no-check-certificate "https://raw.githubusercontent.com/thangnguyencl/Sync-time-/main/times-openwrt" -O /usr/bin/times-openwrt && chmod +x /usr/bin/times-openwrt

dùng curl:


curl -sL https://raw.githubusercontent.com/thangnguyencl/Sync-time-/main/times-openwrt > /usr/bin/times-openwrt && chmod +x /usr/bin/times-openwrt

Nhập lệnh bên dưới vào LuCI -> System -> Startup -> Local Startup hoặc tại rc.local nếu ở trong terminal

Ví dụ dùng mạng Viettel:


/usr/bin/times-openwrt m.tv360.vn

Nếu sử dụng crontab (kiểm tra kết nối cứ sau 1 giờ, sau đó khởi động lại vpn nếu không có kết nối), sao chép lệnh bên dưới vào LuCI -> System -> Schedule Tasks Ví dụ:


0 * * * * /usr/bin/times-openwrt m.tv360.vn cron

Lệnh trên cũng có thể được bao gồm trong tệp/etc/crontabs/root

Đối với các tùy chỉnh thời gian định kỳ khác, hãy xem crontab.guru

Để update tập lệnh hãy thực hiện lệnh bên dưới:


/usr/bin/times-openwrt update

Cập nhật thành công ta được như sau:

times-openwrt: Update tệp lệnh...

times-openwrt: Đang tải tệp lệnh...

times-openwrt: update thành công.

times-openwrt: Đã xóa tệp update!

Cách dùng: Thêm tên miền sau tệp lệnh!.

times-openwrt: Thiếu tên miền/URL!. Vào inbox FB Nguyễn Thắng để biết thêm chi tiết.

Đội ngũ phát triển

Tập lệnh và codes của AlkhaNet by Teguh Surya Mungaran

Mã GMT và các mã khác của Vito H.S

Trình kiểm tra và cài đặt opkg, kiểm tra internet, vpn manager, codes chọn GMT của Helmi Amirudin

sync-time-'s People

Contributors

vitoharhari avatar thangnguyencl avatar helmiau avatar alkhanet26 avatar

Watchers

 avatar

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.