Sign inSign up

janvda/ping

By janvda

Updated over 1 year ago

Image
0

1.0K

janvda/ping repository overview

node-red-ping

github location: janvda/my-ping

  1. This flows measures every 5 sec the ping times of several hosts and shows it in the Node-RED UI dashboard (see screenshot dashboard)
  2. Moreover these ping times are also stored in an influx database (http://influxdb2.local) which are visualized by the following 2 influx db dashboards:
    • ping
    • ping-dev
  3. Logs internet disconnect/connect in the container log file.
  4. every 6 hours does a speedtest to measure internet upload/download speed.

Screenshot of the node-red dashboard

screenshot node-red dashboard

A screenshot example of the ping influx DB dashboard

screenshot influxdb dashboard

Prerequisites

Requires an influx database which is specified by following environment variables (see .env file)

Notes

  1. macOS’s firewall can block the ICMP packets that ping uses, which will interfere with this test. Make sure you disable “Stealth Mode” in “System Preferences”->“Security & Privacy” -> “Firewall
  2. Currently my macbook doesn't get the same IP address from DHCP - so you might need to manually update the flow for this.

Change History

  • 1.9.0 : bumped to node-red version 2.2.3 + updated node-red node versions
  • 1.8.0 : run speedtest 20 sec after container start.
  • 1.7.0 : updated to latest version of node-red-dashboard and node-red-node-ping
  • 1.6.0 : added speedtest functionality (every 6 hours)
  • 1.5.0 : also build for architecture linux/arm/v7 (fixed issue: #1 buildx for architecture linux/arm/v7 doesn't work)
  • 1.4.0 : also monitored my site: nia...be
  • 1.3.0 : also logged internet availability percentage
  • 1.2.0 : logged internet status connection changes
  • 1.1.1 : makefile and README.md updated, also published README.md, excluded architecture linux/arm/v7 as buildx didn't work for it.

Tag summary

Content type

Image

Digest

sha256:cffd240a8

Size

183.5 MB

Last updated

over 1 year ago

docker pull janvda/ping