Registered Member
|
Hi there!
Over my time using Skrooge I've been using different addons to download the currency exchange rates, and one after other they eventually stopped working. Lately I've been using "Grandtrunk", and the thing it still works to the extent that the URL works and you get some results ... but the values are not updated since last Sept/1st. For funds and pension plans I wrote my own tiny addon (by the way, I could publish it if you think it is useful, although it is mainly for Spanish products), but even when I try, I could not find a way to write a new addon for currency exchange. And cannot get any of the included ones working. Any idea? Anyone can give me a hand? EDIT: some code to get currency exchanges (but it doesn't work) perl script:
an execution example (apparently it works fine):
and then the TXT addon:
But when I try to run it from Skrooge I get nothing at all. No errors but the commodity is not updated. What am I doing wrong? Thanks! Jesus M Diaz |
Moderator
|
Hi,
Thanks to your post, I delivered OFFICIALLY a new source using ratesapi.io. Here is the commit: https://cgit.kde.org/skrooge.git/commit ... c217f781a0 Regards. |
Registered Member
|
Hi,
thanks, but I am getting an error, and when I run the script manually:
Maybe there is a library not included? On the other hand, to understand why my script didn't work ... only Python scripts work? //JM |
Moderator
|
Yes, you need to install "requests"
No, but your script doesn't return csv. The output must be something like this:
|
Registered Member
|
Done and working, thanks.
I thought it was enough if the regex at the TXT file matched the output. I have changed it now to your sample and it's working fine. Thanks once again. //JM |
Registered users: Bing [Bot], claydoh, Evergrowing, Google [Bot], rblackwell