AminetAminet
Search:
82084 packages online
About
Recent
Browse
Search
Upload
Setup
Services

util/rexx/Convert.lha

Mirror:Random
Showing:m68k-amigaosgeneric
No screenshot available
Short:Simple command line currency conversion
Author:ahoffman at clear.net.nz (Anthony Hoffman)
Uploader:ahoffman clear net nz (Anthony Hoffman)
Type:util/rexx
Version:0.9
Replaces:util/rexx/Convert.lha
Requires:Amiga compatible system with TCP/IP Stack
Architecture:m68k-amigaos
Distribution:Aminet
Date:2017-11-11
Download:http://aminet.net/util/rexx/Convert.lha - View contents
Readme:http://aminet.net/util/rexx/Convert.readme
Downloads:587
------------------------------------------------------

Arexx script to convert a value of one currency type to another.

Based on Convert 0.6 by Michael Trebilcock which used xe.com to
perform the currency exchange.  Due to changes to xe.com, v0.6
no longer works.  The script now uses a web service from
finance.yahoo.com to source the exchange rate and the currency
value calculation is now performed within the script.

Requires an Amiga compatible system running a TCP/IP stack,
e.g. Miami, AmiTCP, Genesis.

Created with and tested on A4000T/68060 AmigaOS3.9 and MiamiDX.

Both an Arexx script and a Rexecute compiled version of the script
for 68k AmigaOS is provided.  This 68k executable causes a
GrimReaper on OS4.x.  The Arexx script operates correctly on OS4.x
and should work on other Amiga-like systems with full ARexx
support, though this is untested.


Usage for Convert.rexx:
RX Convert.rexx <Amount> <From> <To>
e.g. RX Convert.rexx 1 AUD USD


Usage for Convert:
Convert "<Amount> <From> <To>"
e.g. Convert "1 AUD USD"

The compiled version of Convert must be run from the CLI (command 
line) and requires quotation marks around the arguments, which is
something to do with Rexecute.  Floating point numbers are accepted
by both scripts.
e.g.
RX Convert.rexx 1.75 AUD USD
Convert "1.75 AUD USD"


See https://free.currencyconverterapi.com/ for a full list of
currency codes.  Requires a CSS capable web browser.


------------------------------------------------------


History:
v0.6 2002 Michael Trebilcock
    Final Aminet release of Convert using xe.com

v0.7 24/4/2010 Anthony Hoffman
    Re-wrote script to source currency conversion from finance.yahoo.com

v0.8 1/2/2014 Anthony Hoffman
    The Host: header field is now sent in the server request due to a
    change on the finance.yahoo.com server which resulted in a return
    of error 404 unless the Host: header field is sent as specified
    in RFC2616-sec5

    An invalid currency type of UKP is now converted to GBP

v0.9 12/11/2017 Anthony Hoffman
    The finance.yahoo.com API was discontinued on 6th November 2017,
    changed script to use the free.currencyconverterapi.com API instead




Contents of util/rexx/Convert.lha
PERMISSION  UID  GID    PACKED    SIZE  RATIO METHOD CRC     STAMP     NAME
---------- ----------- ------- ------- ------ ---------- ------------ ----------
[unknown]                 8749   14996  58.3% -lh5- d4f5 Nov 12 13:17 Convert/Convert
[unknown]                  398     831  47.9% -lh5- a159 Nov 12 13:16 Convert/Convert.info
[unknown]                 1145    2522  45.4% -lh5- 5968 Nov 12 12:28 Convert/Convert.readme
[unknown]                 1262    3062  41.2% -lh5- 3b7d Nov 12 12:50 Convert/Convert.rexx
---------- ----------- ------- ------- ------ ---------- ------------ ----------
 Total         4 files   11554   21411  54.0%            Nov 11 19:51

Aminet © 1992-2017 Urban Müller and the Aminet team. Aminet contact address: <aminetaminet net>