Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

php processing #27

Closed
VanGog86 opened this issue Jan 7, 2018 · 3 comments
Closed

php processing #27

VanGog86 opened this issue Jan 7, 2018 · 3 comments

Comments

@VanGog86
Copy link

VanGog86 commented Jan 7, 2018

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
Copy link
Owner

PJCzx commented Jan 7, 2018 via email

@VanGog86
Copy link
Author

VanGog86 commented Jan 9, 2018

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
Copy link
Owner

PJCzx commented Jan 10, 2018

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

@PJCzx PJCzx closed this as completed Feb 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants