ioBroker / ioBroker.ping

Pings configured IPs for ioBroker
MIT License
21 stars 17 forks source link
iobroker ping smarthome

Logo

PING Adapter

Number of Installations Number of Installations NPM version

Test and Release Translation status Downloads

Pings configured IP addresses.

Pings specified IP addresses in a defined interval and monitors the results.

This adapter uses Sentry libraries to automatically report exceptions and code errors to the developers. For more details and for information how to disable the error reporting see Sentry-Plugin Documentation! Sentry reporting is used starting with js-controller 3.0.

Ping from javascript adapter

You can ping any IP address from the javascript adapter with command:

sendTo('ping.0', 'ping', '192.168.1.1', (res) => {
    console.log('Result: ' + JSON.stringify(res)); // Result: {"result": {"host": "192.168.1.1", "alive": true, "ms": 250}} 
});

Known Issues

You can give the adapter the rights to execute the ping command as root.

For this, you need to add the following line to the /etc/sudoers file with sudo visudo command: iobroker ALL=(ALL) NOPASSWD: /bin/ping.

Or you can allow the ping execution by sudo setcap cap_net_raw+ep /bin/ping command.

You must install setcap with sudo apt-get install libcap2-bin before if setcup not found.

Changelog

1.6.4 (2024-07-17)

1.6.3 (2024-07-16)

1.6.2 (2023-07-19)

1.5.3 (2022-02-24)

1.5.2 (2022-01-20)

1.5.0 (2021-07-14)

1.4.12 (2020-09-18)

1.4.11 (2020-08-26)

1.4.8 (2020-06-29)

1.4.7 (2020-05-02)

1.4.6 (2020-04-29)

1.4.5 (2020-04-23)

1.4.4 (2020-04-17)

1.4.3 (2020-04-17)

1.4.2 (2020-01-23)

1.4.1 (2019-01-08)

1.4.0 (2018-01-25)

1.3.2 (2017-09-20)

1.3.0 (2017-02-21)

1.2.0 (2016-12-09)

1.1.3 (2016-11-16)

1.1.1 (2016-04-10)

1.1.0 (2016-04-10)

1.0.0 (2016-04-03)

0.1.3 (2015-01-26)

0.1.2 (2015-01-14)

0.1.1 (2015-01-03)

0.1.0 (2014-11-26)

0.0.5 (2014-11-21)

0.0.4 (2014-11-07)

0.0.3 (2014-11-03)

0.0.1 (2014-11-02)

License

The MIT License (MIT)

Copyright (c) 2014-2024, bluefox dogafox@gmail.com

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.