Convert currencies using data from Yahoo! Finance web service.
A simple Plasmoid created using PyQt and PyKDE4.
Features
- Select to and/or from the dropdown list and the converted amount will be updated.
- Change the amount to be converted and TAB or click outside the Amount field and the result will be updated.
- Selected currencies and amount is saved between sessions.
- Refreshing selected convertion when no activity for a user defined period of time.
- Current/last conversion result is shown in the tool tip when docked in the panel.
Dependencies
Because I have only tried the Plasmoid on my own computer you may be able to use earlier versions.
Currency Converter needs at least KDE SC 4.5.
- python-kde4 v. 4.5.4
- python-qt4 v. 4.7.3
- plasma-scriptengine-python
Installation
Download the newest version. Install the package as shown below where <version> is the version number appended to the name e.g. currency-converter-0.6.plasmoid.
plasmapkg -i ./currency-converter-<version>.plasmoid
If the Plasmoid is already installed you might have to run:
plasmapkg -u ./currency-converter-<version>.plasmoid
TODO:
- Translations. Currently only Danish translations.
- Check version upgrade process: Is the config persistent?
- Credits label link doesn’t launch web site.
- Dates aren’t localized.
- Send notifications instead of showMessage.
- Better error detection on web service query.
- Create a Currency Converter Data Engine.
- Connect/emit settingsChanged in Settings.
- Show the most used currencies at top of list.
IDEAS (comments are welcome):
- Monitor currencies and notify on change.
- Offer other services than Yahoo! Finance.





All posts
November 7, 2009 at 23:42
Hi, i ve download and install the widget but got error when i put it on desktop.
It says “could not create a python ScriptEngine forthe curency converter widget”
I am using kubuntu 9.10 plz help.
p.d. I am newbie using linux
November 8, 2009 at 00:03
You’ll have to install plasma-scriptengine-python
sudo aptitude install plasma-scriptengine-python
December 7, 2009 at 21:00
Hi ,
I have added it under opensuse 11.2 by adding the widget
Currency Converter 0.4
from KDE-Look.org Plasmoids but i get the message:
Skript initialization failed
December 7, 2009 at 21:20
Please try to run it from Konsole using:
plasmoidviewer currency-converter-0.4.plasmoid
and then post the output from the command.
Are you sure you have added the dependencies as mentioned above?
/Thomas
December 15, 2009 at 02:12
Hi, Hey I’ve installed the plasmoid, it works well, but i need to convert from US dollars, to pesos mexicanos (MXP) and isn’t in the list, how i could add it. Thanks for the help
December 15, 2009 at 03:09
Hi Lucio
I don’t know why Mexican Peso wasn’t in the list. I will upload an updated version soonish but for now you can add the following line:
CURRENCY['MXN'] = Currency(code=’MXN’, numeric=’484′, name=’Mexican Peso’, countries=['MEXICO'])
to the CURRENCY dictionary in currencies.py
/Thomas
February 1, 2010 at 01:39
Hello,
I’ve ‘downloaded and installed’ the plasoid but it just sits in my ‘tray’ and spins for hours… Looks like it’s doing something, just not sure what. Right click> settings also does nothing.
???
Landis.
KDE 4.3.4 and openSuSE 11.2 (All updates to both).
June 18, 2010 at 10:02
Sorry for the late reply.
The Plasmoid is not supposed to be added to the Panel but to the Desktop.
Eventually it will be changed so that it can be shown in the Panel as an icon an then shown when clicked upon.
July 14, 2010 at 00:26
didnt load the COP (Colombian Peso) currency
July 14, 2010 at 00:50
Hi Daniel
Thanks for noticing this. As I’m in a major rewrite I can only guide you to a quick hack.
If you haven’t already done so download http://currency-converter-plasmoid.googlecode.com/files/currency-converter-0.5.plasmoid .
Unpack it in an empty directory:
mkdir tmpdir
cd tmpdir
unzip /path/to/currency-converter-0.5.plasmoid
(/path/to being where you put the file)
Edit contents/code/currencies.py.
Just after the line
CURRENCY = {}
Add the line:
CURRENCY['COP'] = Currency(code=’COP’, numeric=’170′, name=’Colombian Peso’, countries=['COLOMBIA'])
Make sure you are in the tmpdir you created earlier and package the files again:
zip -r ../currency-converter-0.5.plasmoid
And install the update:
plasmapkg -u ../currency-converter-0.5.plasmoid
Now remove the Currency Converter Widget from your desktop and add it again.
Hope this helps.
September 21, 2010 at 23:20
I installed your software in my Fedora 13.
It showed me that i dont have Network Conection :s.
Then i checked the source code, i made it work.
The only change was in the line:
- #self.is_connected = (Solid.Networking.status() == Solid.Networking.Connected) == True
+ self.is_connected = (Solid.Networking.status() == Solid.Networking.Connected) or (Solid.Networking.status() == Solid.Networking.Unknown)
It looks like the status of the network is Unknown, i dont know why.
After that it all worked well.
You could update the software to work out-of-the-box in fedora.
June 7, 2011 at 12:13
Hey there,
your Plasmoid keep telling me, that the Script-Initialization failed. I’ve got all dependencies installed. Here’s what the console told me after
plasmoidviewer currency-converter-0.4.plasmoid
QInotifyFileSystemWatcherEngine::addPaths: inotify_add_watch failed: File or Directory not found
QFileSystemWatcher: failed to add paths: /home/user/.config/ibus/bus
plasmoidviewer(2724)/libplasma Plasma::FrameSvg::resizeFrame: Invalid size QSizeF(0, 0)
plasmoidviewer(2724)/libplasma Plasma::FrameSvg::resizeFrame: Invalid size QSizeF(0, 0)
I could offer a German translation, if you tell me how to do it.
Greetings
June 7, 2011 at 12:46
Hi
What version of KDE SC are you using?
Also please use the newest version from
http://code.google.com/p/currency-converter-plasmoid/downloads/list
June 7, 2011 at 13:02
Regarding a German translation: That would be great
There are two files to translate. The first contains the translations for the Plasmoid. Download the Danish version here:
http://currency-converter-plasmoid.googlecode.com/svn/trunk/currency-converter/contents/locale/da/LC_MESSAGES/currency-converter.po
and adapt it to German. The format should be self-explanatory.
The other is the Plasma metadata file:
http://currency-converter-plasmoid.googlecode.com/svn/trunk/currency-converter/metadata.desktop
I have already translated the title:
Name[de]=Währungkonverter
but I don’t know if it is correct
It’s also missing a translation for the comment:
Comment[de]=
Just edit those files and mail them to me at tanghus+currency-converter-plasmoid@gmail.com
Thanks
/Thomas
June 8, 2011 at 00:51
Hey,
I’m using KDE 4.6.2 on a fresh Kubuntu-Installation, but the described error seems to be a major error in my system. I will take a closer look to the translation, when it is solved. But consider the German translation as done
Greetings
June 16, 2011 at 09:02
Did you ever find the error?
June 16, 2011 at 23:57
No I didn’t I switched back to Windows, but I’m about to translate the files. I was busy for some time, but you’ll receive them soon.