当前位置: 首页 > 软件库 > 其他开源 > 物联网 >

homebridge-http-is-it-down

授权协议 Readme
开发语言 JavaScript
所属分类 其他开源、 物联网
软件类型 开源软件
地区 不详
投 递 者 华振
操作系统 跨平台
开源组织
适用人群 未知
 软件概览

homebridge-http-is-it-down

NPM

Homebridge Plugin to check whether the endpoint is active/inactive. Occupancy Sensor will be set to Occupancy Detected whenever the host is down/up.

Description :

This plugin makes GET request to the endpoint and validates its expected HTTP Status Code. Works like UpTime Robot. The Occupancy sensor will be activated whenever the validation fails.You can use this helpful plugin to trigger automations whenever your target host/website/server/ip-camera etc. gets down or up.

Installation :

$ npm install -g homebridge-http-is-it-down

Sample Config :

{
    "accessories": [
        {
            "accessory": "IsItDown",
            "name": "Camera Status",
            "url": "https://192.168.0.186", // Target URL
            "auth": {
                "user": "root",
                "pass": "ismart12"
            },
            "maxTryOuts": 3,
            "interval": 300000, // in ms
            "expectedStatusCode": 200, // Expected HTTP Status Code
            "debug": true
        },
        {
            "accessory": "IsItDown",
            "name": "MyWebsiteIsItDown",
            "url": "http://sahilchaddha.com",
            "maxTryOuts": 3,
            "interval": 1000,
            "expectedStatusCode": 200
        },
                {
            "accessory": "IsItDown",
            "name": "MyWebsiteIsItUP",
            "url": "http://sahilchaddha.com/pingu",
            "maxTryOuts": 3,
            "interval": 1000,
            "expectedStatusCode": 404
        }
    ]
}

 相关资料
  • 问题内容: 我认为HTML 4.01应该“允许”单个标记为and 。然后XHTML与and 一起出现了。 现在,我想知道练习HTML 5时应该如何格式化代码。 是不是,还是? 问题答案: 简单地就足够了。 还有其他形式是为了与XHTML兼容。使编写与XHTML相同的代码成为可能,并使它也可以用作HTML。某些生成HTML的系统可能基于XML生成器,因此不能仅输出裸标签。如果您使用的是这样的系统,则

  • It is…that…的句型在英文中非常常见。学过中学英语的人都都知道,这是强调句型,理解时应当把that后面的部分放到前面来,比如: It is no wonder that she is so ill. 她病得这么厉害,这不奇怪。 It is strange that she should have failed to see her own shortcomings. 她竟然看不到自己的缺点

  • homebridge-http-lightbulb Plugin homebridge-http-lightbulb is a Homebridge plugin with which you can configureHomeKit light bulbs which forward any requests to a defined http server. This comes in han

  • homebridge-http-switch Plugin homebridge-http-switch is a Homebridge plugin with which you can configureHomeKit switches which forward any requests to a defined http server. This comes in handy when y

  • Homebridge HTTP TV Plugin A Homebridge plugin to let you control your TV (or a bridge server) using HTTP Features Exposes a HomeKit TV accessory Characteristics changes trigger HTTP requests to user-d

  • These calendars can be associated with the authenticated user's mailbox, a shared mailbox, an impersonateddelegated mailbox, or a public mailbox.And now I'd like to go from the FolderId to the mailbox