-
Notifications
You must be signed in to change notification settings - Fork 7
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
Temperature method in API should also allow other measurement systems #10
Comments
Just a slight enhancement to @Joncy suggestion. |
This is tricky: each device / plugin may announce the measured temperature in a different format. For that, what about implementing it through a JSON common format? If temperature is a string, it can be interpreted as CELSIUS, but in JSON:
We do like this with colors. Then we can transform between different systems as you guys mentioned above. |
Hope I get your point. |
The problem is that the data is shared across the plugin ecosystem, thus is not only matter of the developer only, and the rest of plugins must understand the data and the format. Having the So our best options are JSON
|
I feel that doing it with JSON and with the implementation @jsdario last proposed would be the best way |
Considering that the whole US and UK use Farenheit degrees instead of Celsius, support for such system should be provided.
Example proposal:
temperature.get/set(value, "measuring system")
┆Issue is synchronized with this Asana task
The text was updated successfully, but these errors were encountered: