Supereg / homebridge-http-temperature-sensor

Http temperature sensor for Homebridge: https://github.com/homebridge/homebridge
ISC License
31 stars 18 forks source link

Added JSON response support #1

Closed rrroyal closed 6 years ago

rrroyal commented 6 years ago

It takes value 'jsonValue' from config.json of Homebridge, dont know how to implement it though. The base for parsing value from JSON response is done, the only thing that requires work is the editing value in config file (we dont want people editing source file of plugin ;) )

Expects JSON formatted response from server, and takes the value defined in config.json of Homebridge (for example status.temperature for [{"status":{"temperature":"12"}}]

Supereg commented 6 years ago

I already have plans to implement support for such things. However I would prefer an implementation which allow specifying a regex pattern, so any possible response can be achieved and accepted by the plugin. Also backwards compatibility isn't covered with your changes.