homebridge-http-temperature-humidity icon indicating copy to clipboard operation
homebridge-http-temperature-humidity copied to clipboard

DOESNT WORK AT ALL

Open louia opened this issue 5 years ago • 4 comments

I have my config.json :

{
    "bridge": {
        "name": "Homebridge",
        "username": "CC:22:3D:E3:CE:30",
        "port": 51826,
        "pin": "031-45-154"
    },
    "description": "This is an example configuration file with one fake accessory and one fake platform. You can use this as a template for creating your own configuration file containing devices you actually own.",
    "ports": {
        "start": 52100,
        "end": 52150,
        "comment": "This section is used to control the range of ports that separate accessory (like camera or television) should be bind to."
    },
    "accessories": [
        {
            "accessory": "HttpTemphum",
            "name": "Living Room Weather",
            "url": "http://192.168.1.24/dht",
            "httpMethod": "GET",
            "humidity": true,
            "cacheExpiration": 60
        }
    ],
    "platforms": [
        
    ]
}

and my result of the adress : image

and this doesn't work at all... i have this when i reload my Home App on my iPhone :

[Living Room Weather] HTTP success ({"method":"GET","uri":"http://192.168.1.24/dht","params":null,"options":{"accept":"application/json"}})

but temp and humidity is still at 0 and when i do console.log on res.body it still gave me {}

louia avatar Dec 08 '19 22:12 louia

Sorry, I haven't used this plugin in years. If you find out what's happening, feel free to create a PR to fix the documentation

lucacri avatar Dec 10 '19 06:12 lucacri

Oh, verry sad to listen. I don't understand what you've done in index.js with your request.

Btw now there is a plugin for temp http. I will try to inspired and made a PR in futur weeks.

louia avatar Dec 11 '19 15:12 louia

I Have the same problem.. is this already fixed?

theOracle1984 avatar Apr 04 '20 00:04 theOracle1984

@louia Unfortunately, this repo is no longer maintained. However, there is a working fork out there. See repo here. It is not listed in the NPM registry, so to install, you will have to run

sudo npm install -g vknabel/homebridge-http-temperature-humidity#master

yuqian5 avatar Oct 19 '20 05:10 yuqian5