-arm-cx2450x-linux-gnueabi-gcc -g -o tuxwetter tuxwetter.c gfx.c io.c text.c parser.c php.c http.c jpeg.c fb_display.c resize.c pngw.c gif.c -L$PREFIX/lib -I$PREFIX/include -I$PREFIX/include/freetype2 -I$PREFIX/include/freetype2 -O2 -lfreetype -lz -ljpeg -lpng -lungif gifdecomp.c
+arm-cx2450x-linux-gnueabi-gcc -g -o tuxwetter tuxwetter.c gfx.c io.c text.c parser.c php.c http.c jpeg.c fb_display.c resize.c pngw.c gif.c -L$PREFIX/lib -I$PREFIX/include -I$PREFIX/include/freetype2 -O2 -lfreetype -lz -ljpeg -lpng -lgif -DWWEATHER gifdecomp.c
{
CURL *curl;
CURLcode res=-1;
- char *pt1,*pt2,*pt3=NULL,*tstr=NULL,*surl=URL,myself[25];
- FILE *headerfile,*netfile;
+ //char *pt1,*pt2,*pt3=NULL,myself[25];
+ char *tstr=NULL,*surl=URL;
+ FILE *headerfile;
+ //FILE *netfile;
int i=strlen(URL),y;
for(y=0; y<4; y++) // change HTTP to lower case
curl = curl_easy_init();
if(curl)
{
- pt1=strstr(URL,"localhost");
+/* pt1=strstr(URL,"localhost");
if(!pt1)
{
pt1=strstr(URL,"127.0.0.1");
}
}
}
- speed=tmo;
+*/ speed=tmo;
while(res && repeats--)
{
curl_easy_setopt(curl, CURLOPT_URL, surl);
curl_easy_setopt(curl, CURLOPT_CONNECTTIMEOUT, (ctimo)?ctimo:(30+tmo*45));
curl_easy_setopt(curl, CURLOPT_TIMEOUT, (tmo+1)*60);
curl_easy_setopt(curl, CURLOPT_FAILONERROR, 0);
+ curl_easy_setopt(curl, CURLOPT_VERBOSE, 1);
if(proxyadress && strstr(URL,"//127.0.0.1/")==NULL && strstr(URL,"//localhost/")==NULL)
{
curl_easy_setopt(curl, CURLOPT_PROXY, proxyadress);
data[bc][cc] = toupper(gettemp);
else
data[bc][cc] = gettemp;
+ //printf("#2 data[%d][%d] = %c(%d)\n",bc,cc,gettemp,gettemp);
cc++;
d_flag=1;
if(cc == MAXMEM-1) rec = 0;
if ((gettemp == '<' || gettemp == ']') && d_flag)
{
data[bc][cc] = '\0';
+ //printf("data[%d] = %s\n",bc,data[bc]);
bc++;
cc = 0;
rec = 0;
#include "resize.h"
#include "gifdecomp.h"
-#define P_VERSION "3.03"
+#define P_VERSION "3.04"
#ifndef HAVE_DREAMBOX_HARDWARE
char CONVERT_LIST[]="/var/tuxbox/config/tuxwetter/convert.list";
struct tm *sltime;
char tun[2]="C",sun[5]="km/h",dun[3]="km",pun[5]="mbar",cun[20];
- if(var_screeninfo.xres < 800)
+ if (var_screeninfo.xres < 1280)
slim=1;
clear_screen();