What's new

How to read the temperature without Merlin

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Logi

Senior Member
I remember being able to read the temperature without using Merlin, I think it was native to AsusWRT, but I can't find it, I think it was in the Log or Admin section, any help will be appreciated, thanks
 
I remember being able to read the temperature without using Merlin, I think it was native to AsusWRT, but I can't find it, I think it was in the Log or Admin section, any help will be appreciated, thanks

Login to the webUI and browse to http://router.asus.com/ajax_coretmp.asp.

If you have https enabled, you will have to modify the URL accordingly.

OE
 
This is much simpler and more elegant than using SSH.

But for everyone else, here's the OLD way of getting the temperature via SSH:

ARMv7 CPU:
Code:
cat /proc/dmu/temperature

ARMv8 CPU:
Code:
cat /sys/class/thermal/thermal_zone0/temp | awk '{print $1 / 1000}'

WiFi:
Code:
# 2.4GHz
wl -i `nvram get wl0_ifname` phy_tempsense | awk '{print $1 / 2 + 20}'

# 5GHz
wl -i `nvram get wl1_ifname` phy_tempsense | awk '{print $1 / 2 + 20}'

All results are in degrees Celsius.
 
WiFi:
Code:
# 2.4GHz
wl -i `nvram get wl0_ifname` phy_tempsense | awk '{print $1 / 2 + 20}'

# 5GHz
wl -i `nvram get wl1_ifname` phy_tempsense | awk '{print $1 / 2 + 20}'

All results are in degrees Celsius.
For the sake of completeness, and for those with tri-band routers here is some code to get the temperatures for all available wireless radios:
Bash:
for radioIF in $(nvram get wl_ifnames)
do
   wl -i $radioIF status | grep Chanspec | cut -d ' ' -f 2-5
   wl -i $radioIF phy_tempsense | awk '{print $1/2 + 20}'
   echo
done
 

Latest threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top