![]() |
2009-01-23
, 23:46
|
|
Posts: 480 |
Thanked: 378 times |
Joined on Apr 2008
@ Chicago-ish
|
#2
|
tar xzvf pytwitemp.tgz
The Following User Says Thank You to TrueJournals For This Useful Post: | ||
![]() |
2009-01-24
, 01:04
|
|
Posts: 4,930 |
Thanked: 2,272 times |
Joined on Oct 2007
|
#3
|
$ cat twittertemp.sh #!/bin/sh TEMP_DEV=/sys/devices/platform/i2c_omap.1/i2c-1/1-0048/temp1_input #C TEMP_BASE=500 TEMP_MUL=1 TEMP_DIV=1000 #F #TEMP_BASE=18056 #TEMP_MUL=9 #TEMP_DIV=5000 TWIT_LOGIN= TWIT_PASS= temp=$(expr \( `cat $TEMP_DEV` + $TEMP_BASE \) \* $TEMP_MUL / $TEMP_DIV) wget --keep-session-cookies --http-user="$TWIT_USER" --http-password="$TWIT_PASS" --post-data="status=$temp" http://twitter.com/statuses/update.xml
![]() |
2009-01-24
, 02:59
|
Posts: 220 |
Thanked: 19 times |
Joined on Jun 2006
|
#4
|
the 770 temp sensors can be found by find /sys/ -name *temp* but they are not scaled to degrees c