<kbd id="afajh"><form id="afajh"></form></kbd>
<strong id="afajh"><dl id="afajh"></dl></strong>
    <del id="afajh"><form id="afajh"></form></del>
        1. <th id="afajh"><progress id="afajh"></progress></th>
          <b id="afajh"><abbr id="afajh"></abbr></b>
          <th id="afajh"><progress id="afajh"></progress></th>

          homebridge-ping-hostsPing state sensor plugin for homebridge

          聯(lián)合創(chuàng)作 · 2023-09-26 09:29

          homebridge-ping-hosts

          A ping state sensor plugin for homebridge (https://github.com/nfarina/homebridge).

          Installation

          1. Install homebridge using: npm install -g homebridge
          2. Install this plugin: npm install -g --unsafe-perm @vectronic/homebridge-ping-hosts
          3. Update your config.json configuration file

          Configuration

          Example config.json entry:

              "platforms": [
          		{
          			"platform": "PingHosts",
          			"hosts": [
          				{
          					"name": "Router",
          					"host": "192.168.0.1",
          					"interval": 60,
          					"timeout": 25,
          					"retries": 1
          				},
          				{
          					"name": "Internet",
          					"host": "1.1.1.1",
          					"interval": 60,
          					"timeout": 25,
          					"retries": 1,
          					"startup_as_failed": false,
          					"closed_on_success": false
          				}
          			]
          		}
          	]
          

          Notes

          • Hostnames are not currently supported, only IPv4 Addresses.
          • retries defaults to 1
          • timeout defaults to 25
          • interval defaults to 60
          • Works better if timeout * (1 + retries) < interval
          • On startup the sensor will default to a 'failed' ping state. This can be overridden by configuring startup_as_failed: false.
          • The sensor will have a "closed" state for successful pings and an "open" state for failed pings (or for any other issues). This can be overridden by configuring closed_on_success: false.

          Permission Problem?

          If you get an error which looks like:

          Error: Operation not permitted
          at new Socket (/usr/local/lib/node_modules/@vectronic/homebridge-ping-hosts/node_modules/raw-socket/index.js:47:14)
          

          then you are probably running on a Linux based OS requiring the CAP_NET_RAW capability to be added to the NodeJS executable.

          Try something like this:

          sudo setcap cap_net_raw+eip $(eval readlink -f `which node`)
          
          瀏覽 12
          點(diǎn)贊
          評(píng)論
          收藏
          分享

          手機(jī)掃一掃分享

          編輯 分享
          舉報(bào)
          評(píng)論
          圖片
          表情
          推薦
          點(diǎn)贊
          評(píng)論
          收藏
          分享

          手機(jī)掃一掃分享

          編輯 分享
          舉報(bào)
          <kbd id="afajh"><form id="afajh"></form></kbd>
          <strong id="afajh"><dl id="afajh"></dl></strong>
            <del id="afajh"><form id="afajh"></form></del>
                1. <th id="afajh"><progress id="afajh"></progress></th>
                  <b id="afajh"><abbr id="afajh"></abbr></b>
                  <th id="afajh"><progress id="afajh"></progress></th>
                  青青草视频网在线观看 | 婷婷丁香五月小说 | 色青娱乐 | 奇米7777狠狠狠狠视频 | 成人无码高清在线 |