Giter VIP home page Giter VIP logo

att-uverse-automated-router-rebooter's Introduction

ATT U-verse Automated Router Rebooter

This script allows you to schedule a reboot of your AT&T U-verse router (Tested on 5268AC). Unfortunately the 5268AC router has a bug which causes network latency over time (more so when using Gigabit Fiber).

Installation

  • Clone repo to your server
  • Schedule "node reboot.js" via crontab, PM2 etc.

npm install
node reboot.js

Configuration

Inside reboot.js edit the following two values.

var routerAccessCode = "";
var routerIP = "192.168.1.254";

Additional code changes have been made to reference the THISPAGE & NEXTPAGE value as a variable called PAGE.

For a broadband restart, the code can be easily be modified to change RESTART to RESET_BB, and change the value of the PAGE variable from C_5_7 back to A_0_0 if needed.

att-uverse-automated-router-rebooter's People

Contributors

metekamil avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

att-uverse-automated-router-rebooter's Issues

Cannot read property 'substr' of undefined

Hey, I'm not good with node.js but can you help troubleshoot?

I have cloned repo, installed npm and nodejs from fresh install. When I attempt to run reboot.js on Node version v8.10.0 I get the following error:

/home/me/ATT-Uverse-Automated-Router-Rebooter/reboot.js:32
var nonce=body.substr(body.indexOf("NONCE")).toLowerCase();
^

TypeError: Cannot read property 'substr' of undefined
at Request._callback (/home/odroid/ATT-Uverse-Automated-Router-Rebooter/reboot.js:32:24)
at self.callback (/usr/lib/nodejs/request/index.js:148:22)
at emitOne (events.js:116:13)
at Request.emit (events.js:211:7)
at ClientRequest.self.clientErrorHandler (/usr/lib/nodejs/request/index.js:258:10)
at emitOne (events.js:116:13)
at ClientRequest.emit (events.js:211:7)
at Socket.socketErrorListener (_http_client.js:387:9)
at emitOne (events.js:116:13)
at Socket.emit (events.js:211:7)

This shits down my router

I have a battery backup. This script turns off the router. I tried backing the script to just reset the connection to att but was not able to finess it.

Support for BGW210-700?

Any chance you'd be willing to add support for the BGW210-770? I suck at node and can't figure it out, but would love to tie this into another script that I'm writing to automatically reboot when my router loses it's internet connection (which happens every day...

Landing Page: /cgi-bin/home.ha
Page with Security Code: /cgi-bin/restart.ha
Page after Security Code: cgi-bin/restart.ha

Let me know anything else that would help (happy to do a screen share if need be!)

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.