Home Forums Firmware Changing displayed temperature to Fahrenheit, please help.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • ubergeekseven
    Participant
    Post count: 2

    I have been searching for this answer for a couple of days with no luck. Could someone please share the way to change the temperature display to Fahrenheit? I see that in the MAX31855.cpp there is a portion that seems to deal with this, but I do not see the variable “unit” that this then relates to. I would appreciate any help with this. maybe this could be added to the front end as well. Usually in an off the shelf PID I can change the unit within a few seconds.

    ubergeekseven
    Participant
    Post count: 2

    OK, after emailing Brett and then guessing and adding and removing things from the files. I have it working, not sure if it is 100% the correct way of doing it, but it now displays Fahrenheit. I did not remove some of the things I changed because this is working and I do not have time to verify if I needed to make all of the changes.

    Within the io.h file I changed two parts:

    1: `
    double ReadInputFromCard()
    {
    if(inputType == 0) return thermocouple.readFahrenheit(); //cahnged this from readCelcius
    else if(inputType == 1)
    {
    2:
    double ReadInputFromCard()
    {
    if(inputType == 0)
    {
    double val = thermocouple.readThermocouple(FAHRENHEIT); //changed this from (CELSIUS)
    if (val==FAULT_OPEN|| val==FAULT_SHORT_GND|| val==FAULT_SHORT_VCC)val = NAN;
    return val;
    }

    I also corrected the misspelled “farenheit” in the max6675 files. This was not necessary. I just could not handle it and had to fix it.

    I will try and leave more notes as I go on. I have been modifying the UI for my purposes and adding notifications using the pushbullet API through curl commands.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.