Skip to content

Instantly share code, notes, and snippets.

@0tofu
Created December 12, 2016 14:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 0tofu/423d4db3a66268493d77e1e50c8ef506 to your computer and use it in GitHub Desktop.
Save 0tofu/423d4db3a66268493d77e1e50c8ef506 to your computer and use it in GitHub Desktop.
RT-AC68U temp
[plugin.metrics.system]
command = '''
echo -e "system.tempertures.cpu\t$(cat /proc/dmu/temperature | sed -e 's/[^0-9]//g')\t$(date -u +%s)\n\
system.tempertures.2_4GHz\t$(wl -i eth1 phy_tempsense | awk '{print $1 / 2 + 20}')\t$(date -u +%s)\n\
system.tempertures.5GHz\t$(wl -i eth2 phy_tempsense | awk '{print $1 / 2 + 20}')\t$(date -u +%s)"
'''
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment