1 /* -*- mode: c; c-basic-offset: 4; tab-width: 4; indent-tabs-mode: t -*-
3 * Conky, a system monitor, based on torsmo
5 * Any original torsmo code is licensed under the BSD license
7 * All code written since the fork of torsmo is licensed under the GPL
9 * Please see COPYING for details
11 * Copyright (c) 2004, Hannu Saransaari and Lauri Hakkarainen
12 * Copyright (c) 2005-2009 Brenden Matthews, Philip Kovacs, et. al.
14 * All rights reserved.
16 * This program is free software: you can redistribute it and/or modify
17 * it under the terms of the GNU General Public License as published by
18 * the Free Software Foundation, either version 3 of the License, or
19 * (at your option) any later version.
21 * This program is distributed in the hope that it will be useful,
22 * but WITHOUT ANY WARRANTY; without even the implied warranty of
23 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24 * GNU General Public License for more details.
25 * You should have received a copy of the GNU General Public License
26 * along with this program. If not, see <http://www.gnu.org/licenses/>.
36 typedef struct PWEATHER_ {
53 #define FORECAST_DAYS 5
54 typedef struct PWEATHER_FORECAST_ {
55 int hi[FORECAST_DAYS];
56 int low[FORECAST_DAYS];
57 char icon[FORECAST_DAYS][3];
58 char xoap_t[FORECAST_DAYS][32];
59 int wind_s[FORECAST_DAYS];
60 int wind_d[FORECAST_DAYS];
61 int hmid[FORECAST_DAYS];
62 int ppcp[FORECAST_DAYS];
67 void weather_free_info(void);
68 void weather_process_info(char *p, int p_max_size, char *uri, char *data_type, int interval);
70 void weather_forecast_process_info(char *p, int p_max_size, char *uri, unsigned int day, char *data_type, int interval);
72 int process_weather_uri(char *uri, char *locID, int dayf);
75 void load_xoap_keys(void);