Comments (3)
A couple of points here:
- I haven't tried telling this plugin to use a different unit than metric
- I do know that HomeKit internally only uses metric values and it leaves it up to the clients to convert to units that are configured via platform settings or app settings.
- This plugin seems to assume that all values provided by data providers (eg OpenWeatherMap) are metric
- If the user has configured via this plugin's settings to use different units, then it converts all values to those units just before providing it the Homebridge. Conversion convenience functions are in util/characteristics.js
So, IMO, the above mentioned code is correct.
from homebridge-weather-plus.
I understand this better now. This is correct behavior. Internally the plugin keeps all values in metric units.
The reason this plugin has a settings parameter for different units is for when compatibility mode, used for Apple's Home app, has been enabled. When that is enabled, Occupancy sensors are used to report all values that Home app doesn't have native support for. As such, the values are not converted by HomeKit to the locale of your device, rather, they are converted to the units set in the settings and added to the sensor label.
from homebridge-weather-plus.
Closing this as resolved.
from homebridge-weather-plus.
Related Issues (20)
- Openweather map dew point and UV index HOT 10
- [Tempest Weatherflow] When station offline: 1) history repeats last measurement forever, 2) one warning per minute in log HOT 11
- [Tempest WeatherFlow] v3.3.2 ReferenceError: accumulation is not defined HOT 9
- [Weatherflow Tempest] Report additional failed sensors HOT 2
- Error retrieving weather report: undefined HOT 10
- thresholdCloudCover on openweathermap.org HOT 16
- Add Light Level history/graphing support HOT 4
- [Weatherflow Tempest] Bizarrely reporting 0ΒΊC, even though the Tempest app does not HOT 41
- Unable to uninstall or update HOT 1
- Getting error "Could not retreive weather report with API 3.0, trying API 2.5 now" HOT 3
- No wind sensor with 3.3.4 Beta 1 HOT 13
- Exceed quota on OWM and/or Wunderground when used in conjunction with Tempest
- Wondered why my threshold entries were empty in the settings HOT 6
- Homekit dropping occupancy sensors when Home Hub changes HOT 4
- Wind speed threshold error in v3.3.5 HOT 15
- Language names in home app HOT 1
- Windspeed and Windspeed Gust bad values in Weather Underground HOT 1
- What exactly is "Rainday"?
- Support for Homebridge 2.0 HOT 1
- Support fractional threshold HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from homebridge-weather-plus.