# Mostrar temperaturas

Podemos ver las temperaturas de la CPU, y wifi 2.4Ghz y 5Ghz.\
\
Entrar por SSH en el router

```sh
ssh user@ip_router
```

Ver temperatura CPU

```sh
cat /sys/class/thermal/thermal_zone0/temp | awk '{print $1 / 1000}'
```

Nos mostrara el valor numérico en celsius

<pre class="language-bash"><code class="lang-bash">$ cat /sys/class/thermal/thermal_zone0/temp | awk '{print $1 / 1000}'
<strong>51.531
</strong></code></pre>

Si lo queremos con 1 decimal

```sh
cat /sys/class/thermal/thermal_zone0/temp | awk '{printf("%.1f\n", $1 / 1000) }'
```

```sh
$ cat /sys/class/thermal/thermal_zone0/temp | awk '{printf("%.1f\n", $1 / 1000) }'
51.5
```

Para ver la temp de la red 2.4/5Ghz, podemos consultar en la NVRAM el dispositivo.

```sh
nvram get wl0_ifname
nvram get wl1_ifname
```

y nos mostrara el nombre del dispositivo correspondiente.

Temperatura red 2.4Ghz

<pre class="language-sh"><code class="lang-sh"><strong>wl -i eth6 phy_tempsense | awk '{print $1 / 2 + 20}'
</strong></code></pre>

Temperatura red 5Ghz

```sh
wl -i eth7 phy_tempsense | awk '{print $1 / 2 + 20}'
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://blog.azagra.dev/asus-router/mostrar-temperaturas.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
