Coder Social home page Coder Social logo

trendingtechnology / ping-stats Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jayantbh/ping-stats

0.0 1.0 0.0 1.41 MB

A react.js learning experiment, shows ping stats for `ping` command.

License: MIT License

HTML 9.63% JavaScript 81.84% CSS 8.52%

ping-stats's Introduction

Ping Stats

image

Shows stats for the ping command. That's all it does. Really.

I was just learning how to make a react app is all.

Development setup

yarn install
npm run start-all

From v0.2.0 you can ping any host with an environment variable.

export PINGDOMAIN=google.com
npm run start-all

If you want to be able to run this from anywhere, then for now add this in your .bashrc/.zshrc/etc.

alias pingstats='npm run start-all -prefix /path/to/ping-stats';
# And then from any directory...
pingstats

NGROK usage

ngrok start --all --config ./ngrok-conf.yml
# Then in a browser, visit
# http://<port3000-url>?ws=<port8888-url>
# Don't add the protocol for the port 8888 url.
# Example (using image below):
# http://70219c1b.ngrok.io?ws=12115b68.ngrok.io

Example image: image

Why does this exist?

Well, being a frequent online gamer, knowing how my internet connection is performing is important to me. And normally me or my friends just ping a public IP to see how our internet connection is doing. We keep it running for a while, all day sometimes, just so we know how it's been upto the time we decide to log in.

Let me give you an example.
We want to play a game at 6:30pm. I know my internet connection suffers some ping losses around 6pm and continues for an hour. If I have my program running and decide to check it at 6:30pm, then I can see if today I'm facing the same issues since the last half an hour, or if it's all good and I can bring in the clan to go guns blazing and what not.

All gamers use some form of ping testing tool every now and then, this is something I made for that purpose.

Also I wanted to learn React, so, that works.

ping-stats's People

Contributors

dependabot-support avatar dependabot[bot] avatar jayantbh 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.