C source code for old weather station