Git Product home page Git Product logo

highvolt-dev / tmo-live-graph Goto Github PK

View Code? Open in Web Editor NEW
31.0 3.0 5.0 3.17 MB

A simpe react app that plots a live view of the T-Mobile Home Internet Nokia 5G Gateway signal stats, helpful for optimizing signal.

License: MIT License

HTML 6.27% CSS 19.10% JavaScript 74.63%
visualization-application monitoring-tool tmobile t-mobile t-mobile-home-internet isp monitor monitoring signal signal-processing

tmo-live-graph's Introduction

tmo-live-graph logo

tmo-live-graph

A simpe react app that plots a live view of the T-Mobile Home Internet Nokia 5G Gateway signal stats, helpful for optimizing signal.

This project should be considered to be in a pre-release state.

desktop screenshot of tmo-live-graph

Getting Started

Ensure that you have nodejs installed on your machine, then run:

npm install

In order to properly fetch API responses from the Nokia Gateway in-browser, they must be proxied to work around CORS restrictions.

This is handled automatically when running the project in development mode using webpack-dev-server with the following command:

npm start

This will start the project at http://localhost:3000/

This project has not been prepared to handle proxying in a production-ready release mode.

Configuration

You can avoid specifying your gateway model and admin username/password by making use of an environment file.

The default environment configuration is specified in the .env file.

It is suggested that you make a copy as .env.local.

Inside .env.local you can specify your desired configuration, e.g.:

REACT_APP_GATEWAY_MODEL=NOK5G21
REACT_APP_USER=admin
REACT_APP_PASSWORD=yourpassword

Note that the file has further instructions (helpful if you have the Arcadyan gateway).

If necessary, you may need to enclose your value in single (') or double quotes (").

When your environment file is fully configured, the application will not prompt you for your gateway model (Nokia vs Arcadyan) and will automatically attempt to log you into your gateway with the provided username and password, enabling advanced functionality that requires authentication against your administrative credentials.

Cell Info

This section requires authentication with admin username and password - login form appears at top of app.

  • Connection Type
  • Operator (PLMN/MCC-MNC)
  • eNB ID (Cell Site)
  • Cell ID
  • Link to cellmapper.net for given operator. Zoomed to geographic center of US. To respect cellmapper.net, you must manually copy and paste the enNB ID to find your cell site.

Summarized Statistics

4G LTE

  • Connected band
  • Carrier Aggregation (Download, Upload, Bands)
  • Current/Best RSRP
  • Current/Best SNR
  • Current/Best RSRQ

5G NR

  • Connected band
  • Current/Best RSRP
  • Current/Best SNR
  • Current/Best RSRQ

Visualized Statistics

4G LTE

  • RSRP value with Min/Max reference lines
  • SNR value with Min/Max reference lines
  • RSRQ value with Min/Max reference lines

5G NR

  • RSRP value with Min/Max reference lines
  • SNR value with Min/Max reference lines
  • RSRQ value with Min/Max reference lines

Screenshots

Desktop

desktop screenshot of tmo-live-graph

Tablet

tablet screenshot of tmo-live-graph

Mobile

mobile screenshot of tmo-live-graph

Available Scripts

In the project directory, you can run:

npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

npm test

Launches the test runner in the interactive watch mode.
See the section about running tests for more information.

npm run build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
Your app is ready to be deployed!

See the section about deployment for more information.

npm run eject

Note: this is a one-way operation. Once you eject, you can’t go back!

If you aren’t satisfied with the build tool and configuration choices, you can eject at any time. This command will remove the single build dependency from your project.

Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except eject will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.

You don’t have to ever use eject. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.

Learn More

You can learn more in the Create React App documentation.

To learn React, check out the React documentation.

Code Splitting

This section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting

Analyzing the Bundle Size

This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size

Making a Progressive Web App

This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app

Advanced Configuration

This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration

Deployment

This section has moved here: https://facebook.github.io/create-react-app/docs/deployment

npm run build fails to minify

This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify

tmo-live-graph's People

Contributors

highvolt-dev 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

Watchers

 avatar  avatar  avatar

tmo-live-graph's Issues

Display of Carrier Aggregation Breaks with Firmware v1.2103.00.0338

There is a breaking change to the Carrier Aggregation data returned by Firmware v1.2103.00.0338 by the /fastmile_radio_status_web_app.cgi endpoint.

TypeError: Cannot read properties of undefined (reading 'X_ALU_COM_DLCarrierAggregationNumberOfEntries')
Card
C:/test/tmo-live-graph-0.0.2/src/components/card.js:16
13 | <h3>Carrier Aggregation</h3>
14 | <dl>
15 | <dt>Download</dt>
> 16 | <dd>{props.CA.ca.X_ALU_COM_DLCarrierAggregationNumberOfEntries ? `+${props.CA.ca.X_ALU_COM_DLCarrierAggregationNumberOfEntries}` : 'None'}</dd>
| ^ 17 | <dt>Upload</dt>
18 | <dd>{props.CA.ca.X_ALU_COM_ULCarrierAggregationNumberOfEntries ? `+${props.CA.ca.X_ALU_COM_ULCarrierAggregationNumberOfEntries}` : 'None'}</dd>
19 | {Object.keys(props.CA.ca).filter(key => props.CA.ca.hasOwnProperty(key) && !isNaN(key)).map(key => <>
View compiled
▶ 18 stack frames were collapsed.
current
C:/test/tmo-live-graph-0.0.2/src/App.js:98
95 | secondary['RSRPCurrent'] = null;
96 | secondary['RSRQCurrent'] = null;
97 | }
> 98 | setData(data => [...data.slice(-24), {date, time: `${date.getHours()}:${date.getMinutes()}:${date.getSeconds()}` , lte: primary, nr: secondary, ca: { ...json['cell_CA_stats_cfg'][0] }}]);
| ^ 99 | }, 2000);
100 |
101 | const doLogin = async e => {
View compiled
This screen is visible only in development. It will not appear if the app crashes in production.
Open your browser’s developer console to further inspect this error. Click the 'X' or hit ESC to dismiss this message.

Request for settings.properties file

Hello HighVolt-Dev,
May I request for a .properties file where we can specify static information like gateway type. It will eliminate the need for selecting values from a drop-down.
Another option can be to have a settings page, where the user can set values to various parameters from a drop-down value and those can be stored as browser cookies.
Thanks.

Refactor project

The initial release of this project is considered pre-alpha state and is a rough proof-of-concept. This project needs to be refactored into separate components and optimized for production builds

Request, add RSRQ

when I've fine tuned my tmobile internet, RSRQ has played a big factor in download quality, which makes sense since it's the main stat for signal receive. Even if other numbers are good, if RSRQ is bad, download will be bad.

It's also helpful to have continious monitoring on it when doing a speed test because that's when you can see how noisy/bad it can get.

5G Showing 4G Lte band

5G NR
Band b66

RSRP
Current: -70 dBm
Best: -70 dBm
SNR
Current: 29 dB
Best: 29 dB

I know I am on n41 on the 5G band.

Add toggles for different views

Add toggles for different views to enable/disable different metrics, primary/secondary bands, etc. This should also help reduce visual clutter on smaller viewports without sacrificing verbosity.

Exposing tmo-live-graph for your phone, say.

Fun trick. You can use Cloudflare's free tunnels offering to ease access to tmo-live-graph.

  • Step 1: Install cloudflared. Eg. on the mac do: brew install cloudflare/cloudflare/cloudflared.
  • Step 2: Create tunnel: cloudflared tunnel --localhost 3000, take note of the long random domain name is sets up.
  • Step 3: Run tmo-live-graph: DANGEROUSLY_DISABLE_HOST_CHECK=true npm start
  • Step 4: Enjoy, visit the random domain noted in step 2, for example only: https://long-random-something.trycloudflare.com

The real trick here is setting the environment variable.

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.