1#ifndef PROGRAM_HISTORICAL_WEATHER_H
2#define PROGRAM_HISTORICAL_WEATHER_H
15#define BOM_RESPONSE_BUFFER_SIZE 200
18#define BOM_TIME_STR_BUFFER_SIZE 30
21#define BOM_MAX_RESPONSE_SIZE 10000
36 const char* year_month);
void BOM_TimeseriesToDB(const char *start_time, PGconn *psql_conn)
Definition: historical_weather.c:261
#define BOM_RESPONSE_BUFFER_SIZE
Max number of items in weather dataset.
Definition: historical_weather.h:15
#define BOM_TIME_STR_BUFFER_SIZE
Max number of chars in timestamp buffer.
Definition: historical_weather.h:18
void BOM_HistoricalWeatherToDB(BOM_WeatherStation_TypeDef *weather_station, BOM_WeatherDataset_TypeDef *dataset, PGconn *psql_conn)
Write observed weather to PostgreSQL table (weather_bom)
Definition: historical_weather.c:200
CURLcode BOM_GetWeather(BOM_WeatherDataset_TypeDef *dataset, BOM_WeatherStation_TypeDef *station, const char *year_month)
Get historical weather for a particular BOM weather station.
Definition: historical_weather.c:21
int8_t BOM_LoadWeatherFromCSV(const char *filename, BOM_WeatherDataset_TypeDef *dataset, BOM_WeatherStation_TypeDef *station)
Load BOM weather station dataset from .csv file.
Definition: historical_weather.c:93
Definition: historical_weather.h:23
uint16_t count
Number of values in dataset.
Definition: historical_weather.h:24
BOM weather station (id, state, name, latitude, longitude)
Definition: stations.h:25