-
-
Notifications
You must be signed in to change notification settings - Fork 944
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
weather: Add functions for temperature in Fahrenheit #1785
Conversation
Build size and comparison to main:
|
I really wouldn't add the helper to the data struct definitions, that file is ideally just about the data. There are other helper functions in the weather controller, that seems like a better place for it? |
Ah OK, I was just looking at what you said here, but I've just pushed a change that adds the functions to the WeatherService instead. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good in this form. I'd appreciate if for example @kieranc could test it out with PTS, if he has the time.
Hi, wondering if there's anything missing to allow this and the PTS change to be merged? Was very surprised to discover weather service does not support Fahrenheit. |
I don't think there's anything blocking this in particular. There are a couple of issues to be worked out with the weather implementation, which take priority over problems like Fahrenheit not being supported. |
f8100f2
to
9375e77
Compare
This is superseded by #1805. |
This adds some functions to the
WeatherService
class for getting the temperature in Fahrenheit. This could theoretically overflow, but only if the temperature is 164.27 °C or higher (or -164.28 °C or lower), which I believe is unlikely enough that we don't need to worry about it. Please tell me if you think that is an issue.This doesn't add a setting to display the temperature in Fahrenheit in PTS.
Related to #1783.