[Panel-devel] WindFinder ion (for weather engine)

Shawn Starr shawn.starr at rogers.com
Tue Nov 27 02:45:10 CET 2007


From Hans Bakker:

Subject: WindFinder ion
Date: Monday 26 November 2007
From: "Hans Bakker" <hansmbakker at gmail.com>
To: shawn.starr at rogers.com, panel-devel-request at kde.org

Hi Shawn and others,

(for the ones not knowing yet what I was busy with: I'm trying to make
a WindFinder.com plugin for the KDE4 weather engine)
here's everything I coded today. I added a few functions at the end of
the weather formula files for converting wind speeds from knots.
The conversion formulas were based upon the formulas in the google
gadget windfinder ion, but are fairly trivial (look on wikipedia for
the conversion constants http://en.wikipedia.org/wiki/Knot_%28speed%29
)

In the WindFinder ion i have parsing the stations list now in that way
that it only looks at stations, and ignores the other information
about country and continent.

It only looks at the current observation, parsing forecasts would
require parsing an additional xml file (xmlforecast.xml instead of
xmlreport.xml); I believe the format is the same so we could try to
reuse parseWeatherBlock for that later.

The updateWeather method must still be implemented.

Kind regards,

Hans Bakker

PS sorry for annoying everybody with accidentally sending the message
before it was finished (A)

-------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ion_windfinder.cpp
Type: text/x-c++src
Size: 17331 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/panel-devel/attachments/20071126/a935d78f/attachment-0005.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ion_windfinder.h
Type: text/x-chdr
Size: 4124 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/panel-devel/attachments/20071126/a935d78f/attachment-0006.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: weather_formula.cpp
Type: text/x-c++src
Size: 2798 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/panel-devel/attachments/20071126/a935d78f/attachment-0007.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: weather_formula.h
Type: text/x-chdr
Size: 2288 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/panel-devel/attachments/20071126/a935d78f/attachment-0008.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ion-windfinder.desktop
Type: application/x-desktop
Size: 217 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/panel-devel/attachments/20071126/a935d78f/attachment-0009.bin 


More information about the Panel-devel mailing list