Skip to content
This repository was archived by the owner on Dec 8, 2019. It is now read-only.
This repository was archived by the owner on Dec 8, 2019. It is now read-only.

Temp in C not F? #28

@markrennie71

Description

@markrennie71

Hello

This is my 1st project like this and I love it thank you. Since I am English, how do I get it to display the temperature in C not F please?

Cheers
Mark

Activity

AaronLayton

AaronLayton commented on Jul 25, 2017

@AaronLayton
Contributor

Hi @markrennie71

Easy - just remove the true from this line
https://github.com/bruhautomation/ESP-MQTT-JSON-Multisensor/blob/master/bruh_mqtt_multisensor_github/bruh_mqtt_multisensor_github.ino#L449

so it should read

float newTempValue = dht.readTemperature();
justinjones

justinjones commented on Jul 26, 2017

@justinjones

I believe changing the recommended line of code causes the "Real Feel" value to be incorrect as the real feel algorithm uses the same temp value but is hard coded against F values.

FWIW, using home assistant, I left the value as F and noted that the input was F in the sensor config. I've got my units set to metric in home assistant config, and it "just worked". I get my values in Home Assistant in celsius and when I write automations I also specify celsius values.

markrennie71

markrennie71 commented on Jul 26, 2017

@markrennie71
Author

thanks guys, yeah I already found that and found the real free is incorrect. They are only for my loft and garage, so real free isn't required for me :)

AaronLayton

AaronLayton commented on Jul 26, 2017

@AaronLayton
Contributor

Yeah good points 🔼
Maybe that needs to be put into a setting so it can be easily changed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Participants

      @justinjones@AaronLayton@markrennie71

      Issue actions

        Temp in C not F? · Issue #28 · bruhautomation/ESP-MQTT-JSON-Multisensor