Raspberry pi temp (MCU) on Klipper screen

Hi all!
The question as probably been asked a million time…but i can’t find a easy tuto!
How to add an icon and the temp of the MCU on klipperscreen next to the bed and extruder temp?

I’m sure it is easy to setup…but i don’t know where to look for…

Thanks for your help!

If you have defined the temp sensor for the RPi, then the sensor is automatically added to KS.
Refer to host-temperature-sensor

Thanks for your help! I got this point!

But where in the printer.cfg am i supposed to add it?

should i create a new section and add the following lines:

[mcu temp]
sensor_type: temperature_host
sensor_path:
"/sys/class/thermal/thermal_zone0/temp" 

Managed to get all working (MCU+Raspi Temperature), here is what I added to the MCU section of my printer.cfg:

[temperature_sensor SKR_Pro]
sensor_type: temperature_mcu
min_temp: 0
max_temp: 100

#[mcu rpi]
#serial: /tmp/klipper_host_mcu

[temperature_sensor raspberry_pi_4B]
sensor_type: temperature_host
min_temp: 10
max_temp: 100 
1 Like