Coder Social home page Coder Social logo

hugoh / hubitat-internet-monitor Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 46 KB

Hubitat driver to monitor Internet connection

Home Page: https://community.hubitat.com/t/release-internet-connection-monitor/119585

License: Other

Groovy 100.00%
hubitat hubitat-driver internet-connection-checker

hubitat-internet-monitor's Introduction

Hubitat Internet Connection Monitor

Version: 1.0.0

This is a user application for Hubitat to report on whether the Internet connection is up or down.

The application exposes a child presence sensor:

  • When the internet is up, the presence sensor is set to present.
  • When the internet is detected as down, it is set as not present.

Logic

Checks

A series of HTTP requests are attempted, and then a series of pings. As soon as one check is successful, the connection is detected as up.

Optionally, a latency error threshold can be specified in the configuration. When the response time for an HTTP request or an ICMP ping exceed the error threshold, the check is considered as failed. This allows to detect situations where the connection is still up but very deteriorated.

The list of URLs and hosts are configurable and rotated after each test.

Check loop

When the connection is up, tests are run every 5 minutes (configurable). When it's down, they're run every minute (also configurable).

Upgrading from version 0.x to 1.x

Version 0.x ran as a device driver. When upgrading to version 1.x, you will want to add a user app, and select "Internet Connection Monitor". You can then copy your configuration there, and this will create a new, child presence sensor.

You can then delete your old device driver.

Credits

The original code was initially based on achaudhari's ping presence sensor.

hubitat-internet-monitor's People

Contributors

hugoh avatar renovate[bot] avatar

Watchers

 avatar  avatar

hubitat-internet-monitor's Issues

Introduce proper versioning

  • Version identifier in the driver
  • Version identifier in the package manifest
  • Automatically sync and update the version identifier

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

github-actions
.github/workflows/bump-version.yml
  • actions/checkout v3
  • jasonamyers/github-bumpversion-action v1.0.5
.github/workflows/linter.yml
  • actions/checkout v3
  • github/super-linter v5

  • Check this box to trigger a request for Renovate to run again on this repository

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.