[CentOS] Gnome weather applet stranded
isdtor
isdtor at gmail.com
Thu Aug 25 13:55:40 UTC 2016
Fred Smith writes:
> On Thu, Aug 25, 2016 at 08:33:46AM +0100, Nux! wrote:
> > I've rebuilt libmateweather for EL7 with the aforementioned patch and it seems to have fixed the issue.
> > Feel free to use it until EPEL package the fix.
> >
> > http://li.nux.ro/download/nux//tmp/libmateweather7/
>
> thanks Nux!
>
> I installed it and it now gets current conditions just fine.
>
> but I tried several different locations and all of them say that there
> is no forecast available. Possible coincidence??
The patch is incomplete. The Mate guys didn't patch this file. Run tcpdump
and verify it's trying query www.weather.gov/forecasts.
# pwd
/root/rpmbuild/SOURCES/libgweather-2.28.0/libgweather
# grep http * |grep forecast
weather-iwin.c: /* see the description here: http://www.weather.gov/forecasts/xml/ */
weather-iwin.c: url = g_strdup_printf ("http://www.weather.gov/forecasts/xml/sample_products/browser_interface/ndfdBrowserClientByDay.php?&lat=%.02f&lon=%.02f&format=24+hourly&startDate=%04d-%02d-%02d&numDays=7",
weather-iwin.c: url = g_strdup_printf ("http://weather.noaa.gov/pub/data/forecasts/zone/%s/%s.txt", state, zone);
[root at torr libgweather]#
More information about the CentOS
mailing list