GithubHelp home page GithubHelp logo

pilipo / modem-watcher Goto Github PK

View Code? Open in Web Editor NEW
3.0 4.0 2.0 15 KB

PHP script that watches for signal health and general operation of your Motorola Surfboard. Details are logged to SYSLOG for record-keeping.

PHP 82.64% Shell 17.36%

modem-watcher's Introduction

modem-watcher

PHP script that watches for signal health and general operation of your Motorola SB6121 Surfboard. Details are logged to SYSLOG for record-keeping.

Setup and Usage

  1. Verify that PHP CLI in installed
    • Execute php -v and see that PHP v5 or greater is installed
  2. Run Composer Installs ( More Details @ https://getcomposer.org/ )
    • In the project directory, execute: composer install
  3. Set the Cron
    • Execute crontab -e
    • Add 0 * * * * php /{your path}/modem-watcher/getSbDetails.php to the end (this set the script to run every hour)
  4. Execute the Script Directly
    • Execute php /{your path}/modem-watcher/getSbDetails.php

Details and Models Supported

This script loads the web interface for you Motorola surfboard and parses the page. It grabs details related to the status of the device and its signal strength. All the details are written to SYSLOG with the application stamp of "modem-watcher."

Currently, this script has only been tested using a model SB6121 Motorola Surfboard. I am interested in hearing about your success and failure on a specific model number.

modem-watcher's People

Contributors

pilipo avatar luketlancaster avatar

Stargazers

Muhammad Arsalan Siddiqui avatar  avatar  avatar

Watchers

 avatar James Cloos avatar  avatar  avatar

modem-watcher's Issues

Roll into a tidy class

Currently, the script is ugly and inefficient, but gets the job done. Moving to a class structure would stage this project to be more flexible to differences in models and other user-definable tweaks.

Set a config file

Isolate the user definable settings (like modem IP) to a separate file.

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.