The latest Raspbian has the GPU temperature output at this command
/opt/vc/bin/vcgencmd measure_temp
and has a result of...
temp=49.2'C
But the system also has the CPU temp- I am not sure if they are different sensors or the same but they output slightly different values.
/sys/class/thermal/thermal_zone0/temp
Install watchdog
sudo apt-get install watchdog
Uncomment the following line in /etc/watchdog.conf
watchdog-device = /dev/watchdog
In the watchdog configuration file add the following line for temperate sensor
temperature-sensor = /sys/class/thermal/thermal_zone0/temp
Edit /etc/modules
sudo editor /etc/modules
And add the following:
# hardware watchdog
bcm2708_wdog
To load the watchdog you use these command
sudo modprobe bcm2708_wdog
sudo nano /etc/modules (add line “bcm2708_wdog”)
In the configuration file you set programs for the watchdog too