
Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net
Yet Another Weather Plasmoid.
There is nothing wrong with the ones that exist, I just wanted something more colorful.
This plasmoid belongs to other people, it would not be where it is without their help. See the README.
Please help with additional themes and translations, thanks.
For the latest unstable version:
svn co https://yawp.svn.sourceforge.net/svnroot/yawp/trunk yawp
INSTALL NOTES
tar -jxf yawp*
cd yawp*
./install.sh
7 years ago
0.4.5 (23 Mar 2013)
* Bugfix: Desktop mode is not reusing applet size from last session.
* Bugfix: yaWP crashes in systemtray with KDE 4.10
0.4.4 (17 Mar 2012)
* New desktop painter has been added. Yawp can be configured to use the traditional or the new one for desktop and/or for popup window.
* Panel painter has been rewritten
* Initialization stuff of yawp has been moved to init method, because yawp crashes on KDE 4.8 due to the usage of not initialized components.
* Usage of KMessageBox has been replaced within DlgAddCity, otherwise yawp crashes on KDE 4.8.5 (some earlier versions might be included as well).
Using KMessageBoxes within KConfigDialog (yawp settings dialog) still works as expected.
* Google ION has been removed, because Google does not support this service any longer.
* Updating and fixing translations
* Bugfix: yaWP did not update weatherdata periodically after hibernation - it is working now
0.4.3 (17 Apr 2012)
* Show current RealFeel temperature under current temperature (thanks to Alain Soucy)
* Non-modale city search dialog
* Implementing public slot configChanged() to behave like a standard plasmoid - yaWP can be configured from external programs (e.g.: javascript)
* changing internal handling of extender (KDE 4.8 only) - when plasmoid will be used in desktop mode extender is not used and will be destroyed, when plasmoid is moved to panel a new extender will be created
* little tweaks to horizontal panel layout, adding more spaces between icons
* Ukrainian translation updated (Thanks to Yuri Chornoivan)
0.4.2 (04 Jan 2012)
* Adapting yaWP to KDE 4.8
* ION AccuWeather is showing closer maps for cities of the United States.
* Workaround crashes in city search dialog in KDE >= 4.7.4
* Frech and Slovak trasnlation updated
* Fixes in Wunderground ION
* Fix double translation for Short day names
0.4.1 (03 Dec 2011)
* Add ability to open forecast in browser (if URL is provided by ION)
* ION wunderground is returning a sorted list of cities (airport stations are listed on top of list,
because in general terms this station type contains more weather information than the personal weather station type).
* ION Wunderground is supporting satellite maps as well
* ION accuweather is not using a config-file for satellite image mapping any longer (feature has been added in version 0.4.0
but I think this was a stupid idea). Satellite images will be hard coded mapped to location in ION.
* Translations updated (CZ, FR)
* Several little bug fixes - including geometry issues
0.4.0 (13 Nov 2011)
* Bugfix: text in animation area jumps up or down at start and at the end of animation
* applets painting methods has been extracted and rewritten, for re-use and hopefully the new painting methods are well structured
* yaWP supports externder items (in panel mode only) - extender item interacts with user like desktop mode.
In panel mode:
When user clicks on the applet (but not on the weather forecast icons) the extender pops up.
The behavior of the applet for clicking on the weather forecast icons can be configured in the config dialog on page "Panel"
option "Use interactive weather icons". When this option is checked the weather icon will toggle between day and night
(in case we have weather information for day and night) otherwise the extender will appear.
* Removes old files from cache directory $HOME/.cache/yawp on a regular base.
* The install script install.sh uses more CPU cores if available. Could be override by -j script option.
* Turkish translation (thanks to Hasan Kiran)
* Czech, Slovak and French translation updated
* Changing unit system in config dialog will force auto-update.
* AccuWeather will use a config file for satellite mapping.
0.3.6 (12 Dec 2010)
* Traverse through all locations periodically (optional)
* Page 'Settings' from config-dialog has been redesigned to gain more space
* Fixing update bug in Wunderground Ion.
* Algorithm that is doing the text layout for the details area has been simplified
* Fix API breakage in 4.5.2/4.6
0.3.5 (8 Oct 2010)
* Fix compilation error on KDE 4.5.2
* Patching ions to work with new weather-data-engine, thanks to Raymond Wooninck
* Fixing legal issues (The source code of the standard ions used as the base)
* Ion is checking state of pressure, instead of just coping the data
* Fix issues with sunrise/sunset
* Prefer millimeters of mecrcury to torr on KDE 4.5
* Fix KDE version check - consistently use KDE_IS_VERSION
0.3.4 (7 Jul 2010)
* Fix torr description.
* Fix problems with some ions when yawp runs under ru locale
* Fix compilation error on PCBSD (thanks vvheritagevv) for patch.
* Update translations cs, fr, sk
0.3.3 (12 Jun 2010)
* Added word-wrap for details-property.
* Added new ion for wunderground weather service
* Showing observation time (the time when weather-service-provider has been updated the weather data) on details page, when specific ion supports this feature.
Ion Google, AccuWeather and Wunderground returning observation time, as well.
* Timestamps for sunrise and sunset will be returned in the new timestamp format (when compiling with kde 4.3 and above - timestamps in the standard ions had been changed)
* Google is returning more information of location to show the right flag. User needs to entered a more specific search text to add a new city.
* Timezone management
* Fix compilation problems with gcc 4.5 (thanks to Kai Wasserbäch)
* Translations updated: fr, pl(Maciej Bulik), sk, de, cs
* Added Ukrainian translation (thanks to Yuri Chornoivan)
* Various bugfixes and small improvements
0.3.2
* Added support for KDE 4.4 (including docking in systray)
* Fix text shadow for light themes
* A new Compact panel layout
* Translations updated: cs, fr, ru
* Some small fixes
0.3.1
* Fixed bug in accuweather engine.
0.3.0
* Totally rewritten - Big thanks to udev.
* Plasma weather engines support - accuweather and google engines included
* Multicity support
Issues of 0.3.x:
* KDE 4.4 is not supported yet !
* Translation files needs update.
0.2.3
* Satellite image in tooltip can be dissabled
* Polish translation added - thanks to Maciej Bulik
* Fixed unit conversion functions to be on sync with accuweather.com - Thanks to Maciej Bulik for report.
* Russian, French and Czech translation updated.
* Licence mess cleaned.
0.2.2
* Fix for the icon sizing issue in KDE 4.2.2 and 4.2.67 - thanks to Daniel Rocher
* Solid support for network - thanks to John Stamp
* Panel tooltip redesign, show much more informations now
* Dialog sizing issue fixed
* Removed obsolete KIO workaround
* Translations updated: French, Slovak, Czech and Russian
0.2.1
* Fixed several panel sizing issues
* Custom colors support
* YaWP should be now usable with light themes (like Aya)
0.2
* Panel support
* Many bugfixes and improvements
0.1.65
* With help. Please see DEVELOPERS in README.
0.0.6
* Many attempts ....
7 years ago
0.4.5 (23 Mar 2013)
* Bugfix: Desktop mode is not reusing applet size from last session.
* Bugfix: yaWP crashes in systemtray with KDE 4.10
0.4.4 (17 Mar 2012)
* New desktop painter has been added. Yawp can be configured to use the traditional or the new one for desktop and/or for popup window.
* Panel painter has been rewritten
* Initialization stuff of yawp has been moved to init method, because yawp crashes on KDE 4.8 due to the usage of not initialized components.
* Usage of KMessageBox has been replaced within DlgAddCity, otherwise yawp crashes on KDE 4.8.5 (some earlier versions might be included as well).
Using KMessageBoxes within KConfigDialog (yawp settings dialog) still works as expected.
* Google ION has been removed, because Google does not support this service any longer.
* Updating and fixing translations
* Bugfix: yaWP did not update weatherdata periodically after hibernation - it is working now
0.4.3 (17 Apr 2012)
* Show current RealFeel temperature under current temperature (thanks to Alain Soucy)
* Non-modale city search dialog
* Implementing public slot configChanged() to behave like a standard plasmoid - yaWP can be configured from external programs (e.g.: javascript)
* changing internal handling of extender (KDE 4.8 only) - when plasmoid will be used in desktop mode extender is not used and will be destroyed, when plasmoid is moved to panel a new extender will be created
* little tweaks to horizontal panel layout, adding more spaces between icons
* Ukrainian translation updated (Thanks to Yuri Chornoivan)
0.4.2 (04 Jan 2012)
* Adapting yaWP to KDE 4.8
* ION AccuWeather is showing closer maps for cities of the United States.
* Workaround crashes in city search dialog in KDE >= 4.7.4
* Frech and Slovak trasnlation updated
* Fixes in Wunderground ION
* Fix double translation for Short day names
0.4.1 (03 Dec 2011)
* Add ability to open forecast in browser (if URL is provided by ION)
* ION wunderground is returning a sorted list of cities (airport stations are listed on top of list,
because in general terms this station type contains more weather information than the personal weather station type).
* ION Wunderground is supporting satellite maps as well
* ION accuweather is not using a config-file for satellite image mapping any longer (feature has been added in version 0.4.0
but I think this was a stupid idea). Satellite images will be hard coded mapped to location in ION.
* Translations updated (CZ, FR)
* Several little bug fixes - including geometry issues
0.4.0 (13 Nov 2011)
* Bugfix: text in animation area jumps up or down at start and at the end of animation
* applets painting methods has been extracted and rewritten, for re-use and hopefully the new painting methods are well structured
* yaWP supports externder items (in panel mode only) - extender item interacts with user like desktop mode.
In panel mode:
When user clicks on the applet (but not on the weather forecast icons) the extender pops up.
The behavior of the applet for clicking on the weather forecast icons can be configured in the config dialog on page "Panel"
option "Use interactive weather icons". When this option is checked the weather icon will toggle between day and night
(in case we have weather information for day and night) otherwise the extender will appear.
* Removes old files from cache directory $HOME/.cache/yawp on a regular base.
* The install script install.sh uses more CPU cores if available. Could be override by -j script option.
* Turkish translation (thanks to Hasan Kiran)
* Czech, Slovak and French translation updated
* Changing unit system in config dialog will force auto-update.
* AccuWeather will use a config file for satellite mapping.
0.3.6 (12 Dec 2010)
* Traverse through all locations periodically (optional)
* Page 'Settings' from config-dialog has been redesigned to gain more space
* Fixing update bug in Wunderground Ion.
* Algorithm that is doing the text layout for the details area has been simplified
* Fix API breakage in 4.5.2/4.6
0.3.5 (8 Oct 2010)
* Fix compilation error on KDE 4.5.2
* Patching ions to work with new weather-data-engine, thanks to Raymond Wooninck
* Fixing legal issues (The source code of the standard ions used as the base)
* Ion is checking state of pressure, instead of just coping the data
* Fix issues with sunrise/sunset
* Prefer millimeters of mecrcury to torr on KDE 4.5
* Fix KDE version check - consistently use KDE_IS_VERSION
0.3.4 (7 Jul 2010)
* Fix torr description.
* Fix problems with some ions when yawp runs under ru locale
* Fix compilation error on PCBSD (thanks vvheritagevv) for patch.
* Update translations cs, fr, sk
0.3.3 (12 Jun 2010)
* Added word-wrap for details-property.
* Added new ion for wunderground weather service
* Showing observation time (the time when weather-service-provider has been updated the weather data) on details page, when specific ion supports this feature.
Ion Google, AccuWeather and Wunderground returning observation time, as well.
* Timestamps for sunrise and sunset will be returned in the new timestamp format (when compiling with kde 4.3 and above - timestamps in the standard ions had been changed)
* Google is returning more information of location to show the right flag. User needs to entered a more specific search text to add a new city.
* Timezone management
* Fix compilation problems with gcc 4.5 (thanks to Kai Wasserbäch)
* Translations updated: fr, pl(Maciej Bulik), sk, de, cs
* Added Ukrainian translation (thanks to Yuri Chornoivan)
* Various bugfixes and small improvements
0.3.2
* Added support for KDE 4.4 (including docking in systray)
* Fix text shadow for light themes
* A new Compact panel layout
* Translations updated: cs, fr, ru
* Some small fixes
0.3.1
* Fixed bug in accuweather engine.
0.3.0
* Totally rewritten - Big thanks to udev.
* Plasma weather engines support - accuweather and google engines included
* Multicity support
Issues of 0.3.x:
* KDE 4.4 is not supported yet !
* Translation files needs update.
0.2.3
* Satellite image in tooltip can be dissabled
* Polish translation added - thanks to Maciej Bulik
* Fixed unit conversion functions to be on sync with accuweather.com - Thanks to Maciej Bulik for report.
* Russian, French and Czech translation updated.
* Licence mess cleaned.
0.2.2
* Fix for the icon sizing issue in KDE 4.2.2 and 4.2.67 - thanks to Daniel Rocher
* Solid support for network - thanks to John Stamp
* Panel tooltip redesign, show much more informations now
* Dialog sizing issue fixed
* Removed obsolete KIO workaround
* Translations updated: French, Slovak, Czech and Russian
0.2.1
* Fixed several panel sizing issues
* Custom colors support
* YaWP should be now usable with light themes (like Aya)
0.2
* Panel support
* Many bugfixes and improvements
0.1.65
* With help. Please see DEVELOPERS in README.
0.0.6
* Many attempts ....
chepioq
7 years ago
there is no build/install_manifest.txt file and uninstall want it.
There is another problem, yawp stay in english, "make" or "make install" don't install the .mo file in usr/share/locale...
Report
parcox
7 years ago
Thanks for this great weather plasmoid. I have a problem with the auto refresh. The symptom is that auto refresh seems called once after the config is saved/changed. After that, I see no weather update.
I even tried change the combobox update interval source code to get a shorter update interval:
//--- INIT COMBOBOX UPDATE INTERVAL ---
//~ for(int i = 0; i < 4; ++i)
for(int i = 1; i <= 60; i++)
{
//~ int iValue = (4-i)*15;
int iValue = i;
comboInterval->insertItem(i, i18n("%1 minutes",iValue), QVariant(iValue));
}
And then I set update interval to 1 minute. The plasmoid will reload the weather data only in the 1st minute. I also tried to debug it, but didn't found anything useful.
Environment:
OS: Slackware64 + KDE 4.8.5
Yawp: stable v.0.4.3, development revision 562
Report
udev
7 years ago
In case you leave the config dialog open after accepting the configuration, the last update time will not be passed back to each location in config dialog. Therefore you need to close and reopen it.
Please recompile yawp with the following options from yawp-source-directory and install it again:
./install -d -l Tracing -f /tmp/yawp.log
This will create a logfile of yawp in /tmp/yawp.log and check whether you find entries for every location you configured that contains
WeatherServiceModel::dataUpdated on a regular base. The log-entries will tell you when function has been processed as well.
Cheers
Report
parcox
7 years ago
Thanks for the reply. Because I waited for a couple hour and the weather data didn't get changed. And the last update label always shows the last time I ran manual refresh. Besides, I open the url of wunderground (I use this provider) separately to see if the actual weather info.
I debug the program based on this tutorial http://kde-apps.org/content/show.php?action=knowledgebase&content=94106
and found that <em>WeatherServiceModel::dataUpdated</em> is called only when I trigger manual refresh. Is it normal?
<strong><em>
[email protected]:~/Build/yawp-0.4.3$ tail -f /tmp/yawp.log -n2000 | grep -ni WeatherServiceModel::dataUpdated
1192:20:27:45.754 Tracing [Appl. Thread] WeatherServiceModel::dataUpdated (Line 482): [function starts] "accuweather|weather|Pontianak, Indonesia(Kalimantan Barat)|ASI.ID.ID006.PONTIANAK" data received: QHash(("Condition Icon", QVariant(QString, "weather-many-clouds") ) ,
1323:20:27:45.819 Tracing [Appl. Thread] WeatherServiceModel::dataUpdated (Line 526): [function ends]
1819:09:14:22.727 Tracing [Appl. Thread] WeatherServiceModel::dataUpdated (Line 482): [function starts] "wunderground|weather|Pontianak / Supadio, Indonesia|airport:WIOO" data received: QHash(("Condition Icon", QVariant(QString, "weather-clouds") ) ,
1894:09:14:22.780 Tracing [Appl. Thread] WeatherServiceModel::dataUpdated (Line 526): [function ends]
2408:09:43:13.329 Tracing [Appl. Thread] WeatherServiceModel::dataUpdated (Line 482): [function starts] "wunderground|weather|Pontianak / Supadio, Indonesia|airport:WIOO" data received: QHash(("Condition Icon", QVariant(QString, "weather-many-clouds") ) ,
2483:09:43:13.381 Tracing [Appl. Thread] WeatherServiceModel::dataUpdated (Line 526): [function ends]
</em></strong>
note: I set the update interval to 2 minutes.
Report
udev
7 years ago
But I would like you to test another ION/provider and behaviour of standard weather plasmoid as well.
Report
parcox
7 years ago
I've noticed that too. I've tested the default KDE weather service and the auto refresh seems didn't work. One question. I see there is a dependency to Solid/Networking in weatherservice.cpp. My current KDE solid networking backend is NetworkManager but I've connected to internet with kppp since I used CDMA modem and NetworkManager+modemmanager won't setup it properly. Do you think that this is the source of my problem? I have no Ethernet/WiFi connections for now. I also check out CWP sources and found it uses Solid Networking. Thanks.
Report
parcox
7 years ago
Report
udev
7 years ago
The dependency you found in weatherservice.cpp is a feature to force to update weather data when solid-network-manager noticed a reconnection and currently used weather data are out of date. Therefore you can remove the following lines and the connected method slotCheckSourceDates and it still will work:
line 137: connect( Solid::Networking::notifier(), SIGNAL(shouldConnect()), this, SLOT(slotCheckSourceDates()) );
line 155: disconnect( Solid::Networking::notifier(), SIGNAL(shouldConnect()), this, SLOT(slotCheckSourceDates()) );
The real magic happens on the following lines:
line 133: pEngine->connectSource( sSource, this, d->iUpdateInterval*60*1000 );
line 164: pEngine->disconnectSource( sSource, this );
This lines request to receive weather data regularly (in milliseconds) and to stop receiving weather data. I have to admit that I rarely use comments to make sourc code more self explaining, one thing I need to change...
I remember facing network problems in my plasmoid applications with solid-network-manager several years ago. Solid-Network-Manager is an abstraction layer in KDE to communicate with the network-hardware.
Have you configured network connection in application systemsettings -> Network and Connection -> Networkconfiguration?
Did you know that you can change the underlaying service that will be used with solid? Ubuntu used to preconfigure WICD which caused problems on my system but NetworkManager 0.9 works flawless on my system. You will find this settings in application systemsettings -> Hardware -> Informationsource.
I also remember having network problems while policykit was installed on my system (few years ago). Therefore you might need to take a look in this configuration as well...
Cheers
Report
udev
7 years ago
The logger is defined in logger/streamlogger.cpp. The first part of a log-entry (datetime, loglevel, thread and function name) will be written in function DStreamLogger::createHeader line 229.
Have you changed this? Have you compile KDE from scratch or did you forgot to set date time properly? Have you tried whether standard weather plasmoids working correctly or not? Have you tested yawp with another ION / weather provider?
Report
zuargo
7 years ago
Report
udev
7 years ago
Cheers
Report
zuargo
7 years ago
Report
udev
7 years ago
Up till now I thought DebianWeather is just a test source, but it really shows up values - of debian servers :P
Report
zuargo
7 years ago
How to reproduce:
-Add yAWP on the desktop
-Click on Configure
-Clic on Add City
-Select Debian Weather Service
-In the field City, write "concepción" (without "")
-Click on Find button
-Plasma desktop will crash
If got no the crash, logout of the current session, login into KDE again, and try once more.
This was already reported on the KDE Bugtracking System: https://bugs.kde.org/show_bug.cgi?id=293724
One developer said it is due to yAWP and not to any KDE element.
Thank you very much for reading.
Report
zuargo
7 years ago
Where may I report a bug have I found?
Thanks
Report
udev
7 years ago
Cheers
Report
nucleas
7 years ago
Yes, I'm using hibernate on linux. This used to work fine in Fedora 15.
Today I've waited over 6 hours and it still hasn't refreshed.
Both the LCD Weather Station and the Weather Forecast widget appear to refresh themselves properly after a hibernate.
What logfile is desired here?
https://bugzilla.redhat.com/show_bug.cgi?id=905587#c2
Report
udev
7 years ago
Let me know whether it works or not.
Cheers
Report
nucleas
7 years ago
I tried to backport 562 changeset to yawp-0.4.3 but it was too large for backporting.
Can you please provide hibernate-related changes that can be applied to 0.4.3 for testing?
Report
udev
7 years ago
Next time I will create branch first and add all changes in second step - sorry.
Otherwise your path file looks good - the following files has been changes in folder applet only: yawp.cpp, yawp.h configdialog/yawpconfig.cpp and configdialog/yawpconfig.h - changes to CHANGELOG are optional :)
Cheers
Report
nucleas
7 years ago
User confirmed that patch fixes refresh after hibernate.
Report
udev
7 years ago
I created a new branch for this modifications in http://yawp.svn.sourceforge.net/viewvc/yawp/branches/yawp_0.4.3-patches/
I think we should create a new version when hibernation is working as expected and no other bugs arise in the next few days.
I am still confused about ION debian. When you search for an invalid city with ION debian you can crash entire plasmoid-desktop using version 0.4.3 - this has been "fixed" while removing modale KMessageBox - but I am not sure if this was the right step, because this bug happens with this ION only - so maybe something is wrong with this ion...
Cheers
Report
nucleas
7 years ago
If don't then patch looks like this:
http://nucleo.fedorapeople.org/yawp_0.4.3-hibernation.patch
Report
mkyral
7 years ago
Report
nucleas
7 years ago
Report