Currency Conversion Service Options?


Films.ie finally went live this evening (thanks to James Larkin for the design work)
The problem I am trying to find a solution to is the currency conversion.
At the moment it is using a static value, so I have to manually change it, which is not exactly practical.
Does anyone know of a service that allows you to get the value on a daily basis and write it to file?

By Michele Neylon

Michele is founder and CEO of Irish hosting provider and domain name registrar Blacknight.

11 comments

  1. Hmm.. parsing… I presume you are using a Unix box, and are looking to automate… the actual execution of the parse itself is quite straightforward, and might look something like this:
    awk ‘{if(index($0,”eur = usd”)) print substr($0,index($0,”(“)+1,length($0))}’ EUR.xml |awk ‘{print substr($0,1,index($0,” “)-2)}’ >usd.txt
    where
    1: “usd” in the “eur = usd” stands for US dollars, and can replaced by whatever other three letter indicator (such as gbp for UK pounds)
    2: EUR.xml is the your local copy of the feed XML file
    3: usd.txt is the output file, which will contain a single line, such as below
    1.34030

Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Exit mobile version