[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [cobalt-users] Raq4 LCD



-----Original Message-----
From: Jason Humphrey 
Subject: RE: [cobalt-users] Raq4 LCD

Thats a GOOD start but what do i need to change it to so it will show the
curent CPU temp.
It will need to update every so often so i will probably need a dron job to
stop and restart the LCD???
-----Original Message-----

pico /etc/rc.d/init.d/lcd-showip

Search for:
	/sbin/lcd-write "$WORDS" "$IPADDR"

Right BEFORE it, do this:

	WORDS="Current Temperature is:"
	IPADDR=`cat /proc/cpuinfo | grep temperature | cut -f2 -d:`

I personally suggest doing it this way, as if you ever want to convert
back, all you will have to do is to either delete just those two lines,
or put a '#' in front of them.

You can then create a symlink in /etc/cron.quarter-hourly like so:

ln -s /etc/rc.d/init.d/lcd-showip /etc/cron.quarter-hourly/show-temp

Then every 15 minutes it should update.

Thanks,
Brian