2005-08-05 01:06:17 +00:00
|
|
|
/*
|
|
|
|
* Conky, a system monitor, based on torsmo
|
|
|
|
*
|
|
|
|
* This program is licensed under BSD license, read COPYING
|
|
|
|
*
|
|
|
|
* $Id$
|
|
|
|
*/
|
|
|
|
|
2005-07-20 00:30:40 +00:00
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <math.h>
|
|
|
|
|
|
|
|
int calculateRelativeHumidity(int, int);
|
|
|
|
int calculateWindChill(int, int);
|
|
|
|
int knTokph(int);
|
|
|
|
const char *calculateWindDirectionString(int);
|
|
|
|
const char *calculateShortWindDirectionString(int);
|
|
|
|
|
2005-07-28 04:48:27 +00:00
|
|
|
char *line = NULL;
|
2005-07-20 00:30:40 +00:00
|
|
|
char *metar_station = NULL;
|
2005-07-28 04:48:27 +00:00
|
|
|
char *metar_server = NULL;
|
|
|
|
char *metar_path = NULL;
|
|
|
|
char ftp_ok = 0;
|
|
|
|
char metar_worked = 0;
|
2005-07-20 00:30:40 +00:00
|
|
|
|
|
|
|
Decoded_METAR data;
|