comparison util.c @ 5:b22a888eb975

Remove page1_*_pressure - it appears to be old code and is unused.
author Daniel O'Connor <darius@dons.net.au>
date Thu, 11 Feb 2010 12:44:56 +1030
parents 9dab44dcb331
children
comparison
equal deleted inserted replaced
4:f561c7f130a0 5:b22a888eb975
21 static int lines = 0; 21 static int lines = 0;
22 char timestamp [STAMPSIZE]; 22 char timestamp [STAMPSIZE];
23 23
24 if (lines == 0) 24 if (lines == 0)
25 printf ("\n" 25 printf ("\n"
26 " Page sv IT IH IDP OT OH ODP hPa SL abs rel Wind Gust Dir Rain CR PR \n"); 26 " Page sv IT IH IDP OT OH ODP hPa SL Wind Gust Dir Rain CR PR\n");
27 27
28 strftime (timestamp, STAMPSIZE, "%F %T", localtime (&readings->timestamp)); /* format time and date */ 28 strftime (timestamp, STAMPSIZE, "%F %T", localtime (&readings->timestamp)); /* format time and date */
29 29
30 printf ("%17s %5x %3d %5.1f %3d %5.1f %5.1f %3d %5.1f %6.1f %6.1f %6.1f %6.1f %5.1f %5.1f %3s %4.1f %4.1f %4.1f\n", 30 printf ("%19s %4x %2d %4.1f %3d %4.1f %4.1f %3d %5.1f %6.1f %6.1f %5.1f %5.1f %3s %4.1f %4.1f %4.1f\n",
31 timestamp, /* current time */ 31 timestamp, /* current time */
32 readings->page, /* machine page number */ 32 readings->page, /* machine page number */
33 readings->last_save_mins, /* last save minutes (?) */ 33 readings->last_save_mins, /* last save minutes (?) */
34 readings->inside_temp, /* inside temperature */ 34 readings->inside_temp, /* inside temperature */
35 readings->inside_humidity, /* humidity in percent */ 35 readings->inside_humidity, /* humidity in percent */
37 readings->outside_temp, /* outside temperature */ 37 readings->outside_temp, /* outside temperature */
38 readings->outside_humidity, /* humidity in percent */ 38 readings->outside_humidity, /* humidity in percent */
39 readings->outside_dewpoint, /* outside dewpoint */ 39 readings->outside_dewpoint, /* outside dewpoint */
40 readings->pressure, /* absolute pressure, hPa */ 40 readings->pressure, /* absolute pressure, hPa */
41 readings->pressure_sea_level, /* sea level pressure, hPa */ 41 readings->pressure_sea_level, /* sea level pressure, hPa */
42 readings->page1_abs_pressure, /* absolute pressure, hPa */
43 readings->page1_rel_pressure, /* relative pressure, hPa */
44 readings->wind_speed, /* wind speed in km/h */ 42 readings->wind_speed, /* wind speed in km/h */
45 readings->wind_gust, /* wind gust speed in km/h */ 43 readings->wind_gust, /* wind gust speed in km/h */
46 readings->wind_direction_text, /* wind direction */ 44 readings->wind_direction_text, /* wind direction */
47 readings->rain - print_previous_rain, /* delta rainfall in mm */ 45 readings->rain - print_previous_rain, /* delta rainfall in mm */
48 readings->rain, /* current rainfall in mm */ 46 readings->rain, /* current rainfall in mm */