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

Unset Default temperature unit #206

Closed
ThePreviousOne opened this issue Jun 25, 2017 · 14 comments
Closed

Unset Default temperature unit #206

ThePreviousOne opened this issue Jun 25, 2017 · 14 comments
Labels

Comments

@ThePreviousOne
Copy link

ThePreviousOne commented Jun 25, 2017

screenshot_20170624-101252
screenshot_20170624-101625
screenshot_20170624-155437

@ildar
Copy link

ildar commented Jun 25, 2017 via email

@ThePreviousOne
Copy link
Author

ThePreviousOne commented Jun 25, 2017

No, actually it was unset....? Just checked. 297 K is cold isn't it?
BTW I'm on v1.4

@ildar
Copy link

ildar commented Jun 25, 2017 via email

@ThePreviousOne
Copy link
Author

ThePreviousOne commented Jun 25, 2017

ya setting the value fixed it

@ThePreviousOne
Copy link
Author

Unrelated did you just know that conversion or was some calculator involved ... I'm impressed

@ildar
Copy link

ildar commented Jun 25, 2017 via email

@ThePreviousOne ThePreviousOne changed the title [Possible Bug] Incorrect weather temputures [Possible Bug] Unset Default temperature unit Jun 25, 2017
@robinpaulson
Copy link
Contributor

Appears resolved, closing

@robinpaulson
Copy link
Contributor

As @brarcher points out, this is not actually resolved.

Suggestions what to do?

@robinpaulson robinpaulson reopened this Jun 29, 2017
@robinpaulson robinpaulson changed the title [Possible Bug] Unset Default temperature unit Unset Default temperature unit Jul 2, 2017
@DerVerruckteFuchs
Copy link

I'm getting a similar issue with the default temperature being measured in Kelvin, but I'm getting "F" for my unit. Normally Fahrenheit is "°F". Is the unit being set based on locale or location? The alpha/char portion of the unit seems to be set to a decent default, save for the missing "°". It seems that whatever detection is being used to determine a default unit is not quite complete. Assuming that's intended behavior.

@DerVerruckteFuchs
Copy link

Alright, so I cleared my app cache/config for Forcastie, force stopped it, and switched my system language to "English (United Kingdom)" from "English (United States)". Upon restarting the app I got my default location as "London, GB" with "C" as my units. Temperature is still in Kelvin. It seems part of the defaults are locale/system language based.

@robinpaulson
Copy link
Contributor

@DerVerruckteFuchs I'm not sure how units are selected, I assumed it was by the user, ignoring locale

@robinpaulson
Copy link
Contributor

This code:
https://github.com/martykan/forecastie/blob/master/app/src/main/java/cz/martykan/forecastie/utils/UnitConvertor.java

show no indication that temperature units are selected by locale.

@robinpaulson
Copy link
Contributor

robinpaulson commented Jul 6, 2017

martykan made some changes yesterday, they may have fixed the problem.
6870c15

If it builds OK, I may move v1.5 forward by 3 weeks, or more likely do a maintenance fix of v1.4.2

@robinpaulson
Copy link
Contributor

Closing, this will appear in v1.5 in a few days

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants