PJCzx / homebridge-thermostat

Supports thermostat devices on HomeBridge Platform
Apache License 2.0
34 stars 71 forks source link

php processing #27

Closed VanGog86 closed 6 years ago

VanGog86 commented 6 years ago

Good afternoon! I really liked your plugin, I apologize for my English. I can not understand in any way, I plan to use php to process the values received from the plugin, but for the GET request in the address bar there should be a "?" and in your example I see / targetTemperature / {FLOAT_VALUE} tell me how to get this value in my PHP script?

PJCzx commented 6 years ago

You can use the expected value directly in your URL construction a make a request on it without parameters.

Le 7 janv. 2018 à 20:25, VanGog86 notifications@github.com a écrit :

Good afternoon! I really liked your plugin, I apologize for my English. I can not understand in any way, I plan to use php to process the values received from the plugin, but for the GET request in the address bar there should be a "?" and in your example I see / targetTemperature / {FLOAT_VALUE} tell me how to get this value in my PHP script?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

VanGog86 commented 6 years ago

Thanks, I was able to pass the parameters! Can I specify the temperature range for the thermostat and for the current temperature in the room? The fact is that the current temperature in the room can be from -40 to +40 and the temperature of the thermostat differs from +10 to +30

PJCzx commented 6 years ago

Welcome. You have to keep in mind that you have the Temperature (fact, from thermometer) and the TargetTemperature (objective to be set with the API). There is a couple of settings to define the max and min value for your thermostat in terms of expectations in the room. These are the same settings than to define if you want °C or °F. As far as I remember, the min/max value have a possible setting in the conf.json.

Hope I helped, Best