#Temperature Plot

1 messages · Page 1 of 1 (latest)

jagged kelp
#

I have a custom sensor that reports temperature, humidity, gas, and voc. The UI does not show the temperature. Instead it uses the voc value. How do I see the temperature?

bleak oarBOT
#

Ahoi @jagged kelp!
It looks like you did not provide all the necessary information we need to help you.
Please upload your logfiles and a detailed description of your problem.
For further information see: https://docs.mainsail.xyz/faq/getting-help/discord#provide-information
Note: We only accept .log and .txt files as log files.
This is an automated message

We are glad to help and chat with you on our Community Discord, but if you need help and want the best support possible you should, follow a few simple rules:

wary arrow
#

pls close this post when all questions are answered.

jagged kelp
#

Is returning real temperature

wary arrow
jagged kelp
#

I'm out of town for a few days so I can't run that now. Will do when I get home. Thanks for help

wary arrow
jagged kelp
#

The hack is in moonraker?

wary arrow
#

why should this hack be in moonraker?

jagged kelp
#

What do you mean by "the wrong way"?

#

My code is reporting temperature as temperature

wary arrow
#

these unofficial moduls uses the wrong value to "hack" the system to show it in the chart

wary arrow
wary arrow
#

why do you create another unofficial module for the same sensor?

#

(just out of interresst)

jagged kelp
#

Because I couldn't find one that worked with moonraker update manager and vanilla klipper instead of a custom firmware

wary arrow
#

this one would work...

jagged kelp
#

Archived

wary arrow
#

and here is also already an open PR for klipper itself

#
wary arrow
wary arrow
#

at first, you look on the wrong object. do you use the nevermore module also?

#

(i see no log for your system here, so i dont know your system)

jagged kelp
wary arrow
wary arrow
# jagged kelp Ahhh ty

but before you continue working on your other sgp40 fork / unofficial klipper modules, would you help me work on the PR for klipper so that the sensor simply gets “mainline klipper support”?

#

or can help me testing it? i hope to have time to finish the pr next week

jagged kelp
#

I probably won't have time until the new year, but I'd be happy to help

jagged kelp
jagged kelp
#

it looks like sgp40 initialization depends on temperature/humidity sensor initialization but that order isn't guaranteed

wary arrow
jagged kelp
jagged kelp
#

This will validate the ref_temp_sensor and ref_humidity_sensor settings at startup and adds a QUERY_SGP40 command

#

I still don't quite understand why mainsail is reporting the gas status as temperature though

#

I'm using the sensirion library from the pull request, but can switch to a local implementation fairly easily.

wary arrow
jagged kelp
#

ya, it's somewhere in moonraker or klipper

wary arrow
#

@jagged kelp i tested my module today again and it display the right temperature:

#

so it have to be the module you are using here

jagged kelp
#

yes, i think I figured it out. This line appears to be what passes the sensor's stored value in moonraker.