Temperature.sh for Asus RT-N66U

Discussion in 'Tomato Firmware' started by darkknight93, Feb 22, 2013.

  1. darkknight93

    darkknight93 Networkin' Nut Member

    Here's my custom logging script for temperature for the ASUS RT-N66U:

    TEMP=$(wl -i eth1 phy_tempsense | awk '{ print $1}')
    echo "$(date);$TEMP" >> $DEST

    you might change the variable DEST, also TEMP2=$(wl -i eth2 phy_tempsense | awk '{ print $1}') is the second Temperature you can meassure BUT only if 5ghz wlan is enabled
  2. kthaddock

    kthaddock Network Guru Member

    Can you add phy_tempsense / 2 + 20 to that script then we have real temp logged.
  3. ryzhov_al

    ryzhov_al Addicted to LI Member

    Take a look at RRD database script to accumulate and graph some statistics I've added. You may plot temperature graphics for both 2,4 and 5GHz PHY's separately for hour, day, week or even year.

    Elfew likes this.
  4. jeonny

    jeonny Serious Server Member

    This script only works on rt-n66u?:(
  5. shibby20

    shibby20 Network Guru Member

    Elfew likes this.
  6. shibby20

    shibby20 Network Guru Member

    No, Only on RT-N builds (newer "wl" tool supported "phy_tempsense" command)
  7. jeonny

    jeonny Serious Server Member

    GETTEMP1=`wl -i eth1 phy_tempsense | awk '{ print $1}'`
    echo "$TEMP1"
    thanks shibby it works on my rt-n10u

    root@ASUS:/tmp/home/root# echo "$TEMP1"
  8. Elfew

    Elfew Network Guru Member

    oh yeah! nice! do you include this to you build shibby? :D
  9. shibby20

    shibby20 Network Guru Member

    i will but i`m not sure i will be in v107 or maybe in another next release.
    Elfew likes this.
  10. eahm

    eahm LI Guru Member

    I don't know how useful it may be but this is a cool feature.

    Thanks ryzhov_al and Shibby for taking this in consideration.
  11. rs232

    rs232 Network Guru Member

    Is there any way to display the temperature using the same interface used by throughput for example (rather than rrd)?
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice