Programming for the Newton: Using Macintosh
The included CD contains a demo of the Newton Toolkit (NTK) programming environment, but there is a newer version of this software on Apple's web site. Note that the demo version creates Newton packages which can't be redistributed, so you'll eventually need to purchase a full copy of NTK.
This temperature measurement script is one that comes from the original NPDS package. As formatted, it is meant to be used as an NPDS SSI tag. It obtains the current battery temperature and returns it in degrees Celsius.