From 778d052c299a693fd6f6bb294ab3ad46a9ead911 Mon Sep 17 00:00:00 2001 From: FlatTV Date: Fri, 5 Apr 2013 21:45:00 +0200 Subject: [PATCH] tuxwetter: use new developer API Signed-off-by: FlatTV --- parser.c | 4 ++-- tuxwetter.mcfg | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/parser.c b/parser.c index 7bfe681..b05b3c0 100644 --- a/parser.c +++ b/parser.c @@ -301,7 +301,7 @@ int parser(char *citycode, char *trans, int metric, int inet, int ctmo) int cc=0, bc=1, exit_ind=-1; char gettemp; FILE *wxfile=NULL; - char url[250]; + char url[512]; char debug[505]; #ifdef WWEATHER @@ -328,7 +328,7 @@ int parser(char *citycode, char *trans, int metric, int inet, int ctmo) exit_ind=system(url); sleep(1); */ - sprintf (url,"http://free.worldweatheronline.com/feed/weather.ashx?q=%s&format=xml&num_of_days=5&includeLocation=yes&key=%s",citycode,key); + sprintf (url,"http://api.worldweatheronline.com/free/v1/weather.ashx?q=%s&format=xml&num_of_days=5&includeLocation=yes&key=%s",citycode,key); exit_ind=HTTP_downloadFile(url, "/tmp/tuxwettr.tmp", 0, inet, ctmo, 3); if(exit_ind != 0) diff --git a/tuxwetter.mcfg b/tuxwetter.mcfg index 3ba8987..40ef1a7 100644 --- a/tuxwetter.mcfg +++ b/tuxwetter.mcfg @@ -7,7 +7,7 @@ ConnectTimeout=5 #PartnerID=1005530704 #LicenseKey=a9c95f7636ad307b #LicenseKey=A2550021575 -LicenseKey=3d3a896d1e152006112211 +LicenseKey=32z7znf5z7bwm2nednkyevb7 # SplashScreen=1/0 Startbildschirm anzeigen / nicht anzeigen SplashScreen=0 # ShowIcons=1/0 Wetter-Icons für Textanzeige downloaden / nicht downloaden -- 2.39.5