/* WEATHER data */
typedef struct PWEATHER_ {
- char lastupd[17];
- int tmpC;
- int tmpF;
+ char lastupd[32];
+#ifdef XOAP
+ char xoap_t[32];
+ /*
+ * TODO:
+ * Is it worth investigating about using icons from weather.com?
+ * We could use them for data from noaa as well.
+ * They can display nicely with cimlib_add_image (with appropriate
+ * #ifdefs on imlib2 and x11), and an additional input argoment for position.
+
+ char icon[3];
+
+ */
+#endif /* XOAP */
+ int temp;
int dew;
int cc;
int bar;
} PWEATHER;
/* Prototypes */
-PWEATHER *get_weather_info(char *uri, int delay);
void init_weather_info(void);
void free_weather_info(void);
+void process_weather_info(char *p, int p_max_size, char *uri, char *data_type, int interval);
#endif /*WEATHER_H_*/