Currency Units plugin

Currency Units plugin - Add currencies and real-time exchange rates in SMath Studio. - Messages

#1 Posted: 12/16/2013 8:01:40 PM
Davide Carpi

Davide Carpi

1417 likes in 2873 posts.

Group: Moderator

Hi all,

Here there is a plugin to have currencies and exchange rates in SMath Studio.

Infos:


Functions:
  • SetCurrencyUnits(1), SetCurrencyUnits(2): extends SMath Studio with currency units. When an internet connection is available, exchange rates are kept updated using the ECB reference rates (internet connection not required but useful);

    Quote

    The reference rates are usually updated by 3 p.m. C.E.T. They are based on a regular daily concertation procedure between central banks across Europe and worldwide, which normally takes place at 2.15 p.m. CET.



  • GetYahooExchangeRate(2): get a wide set of exchange rates from Yahoo Finance (internet connection required); service discontinued by Yahoo


>>> PLEASE REPORT IN THIS TOPIC ANY ISSUE, MORE DETAILED AS POSSIBLE <<<

2013-12-17 02_08_46-SMath Studio Desktop - [Page1_].png
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
3 users liked this post
Andrey Ivashov 12/17/2013 6:52:00 PM, Martin Kraska 12/17/2013 3:24:00 AM, Вячеслав Мезенцев 12/18/2013 2:32:00 AM
#2 Posted: 12/16/2013 8:35:09 PM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: Moderator

Nice work, Davide. However, does not work with , as decimal separator.
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#3 Posted: 12/16/2013 9:05:39 PM
Davide Carpi

Davide Carpi

1417 likes in 2873 posts.

Group: Moderator

Wrote

Nice work, Davide. However, does not work with , as decimal separator.


Thank you Martin, try with the update
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#4 Posted: 12/17/2013 3:23:36 AM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: Moderator

Better now, but still no connectivity. I guess that is sort of firewall or proxy issue.
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#5 Posted: 12/17/2013 6:00:17 AM
Radovan Omorjan

Radovan Omorjan

325 likes in 2052 posts.

Group: Moderator

Unfortunately Davide, this does not work for me (Win7 x64). Plugin refuses to install properly.

Regards,
Radovan

currency.png
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#6 Posted: 12/17/2013 8:07:23 AM
Davide Carpi

Davide Carpi

1417 likes in 2873 posts.

Group: Moderator

ok... as for now the password is: TEST

Wrote

Better now, but still no connectivity. I guess that is sort of firewall or proxy issue.


Try again, I've made some changes... If doesn't work try NetTest(0) and NetTest(1) and post a screenshot

Wrote

Unfortunately Davide, this does not work for me (Win7 x64). Plugin refuses to install properly.


very strange... try again with this update; if doens't work got to %APPDATA%\SMath\Debug\CurrencyUnits and post the log file


If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#7 Posted: 12/17/2013 8:41:16 AM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: Moderator

The results were overly wide, thus i cut them.
nettest.PNG
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#8 Posted: 12/17/2013 8:41:47 AM
Radovan Omorjan

Radovan Omorjan

325 likes in 2052 posts.

Group: Moderator

Failed again

Here is the log file

Regards,
Radovan
log.txt (1 KiB) downloaded 88 time(s).
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#9 Posted: 12/17/2013 11:09:29 AM
Davide Carpi

Davide Carpi

1417 likes in 2873 posts.

Group: Moderator

Wrote

The results were overly wide, thus i cut them.


seems a proxy/firewall authorization problem... I suppose that NetTest("http://www.google.com") and NetTest("http://www.google.de") will produce the same results

Wrote

Failed again

Here is the log file

Regards,
Radovan


I've made another little modification, could you try again?
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#10 Posted: 12/17/2013 1:31:12 PM
Radovan Omorjan

Radovan Omorjan

325 likes in 2052 posts.

Group: Moderator

It seems that this plugin is not going to install into the Martins' unofficial build. I figured out by the second line of the log file.
I tried it on the official one and it seems to be Ok

Regards,
Radovan
CurrencyUnits.png
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
1 users liked this post
Davide Carpi 12/17/2013 1:50:00 PM
#11 Posted: 12/17/2013 1:52:02 PM
Davide Carpi

Davide Carpi

1417 likes in 2873 posts.

Group: Moderator

Wrote

It seems that this plugin is not going to install into the Martins' unofficial build. I figured out by the second line of the log file.
I tried it on the official one and it seems to be Ok

Regards,
Radovan


thank you Radovan, now I understand
the plugin looks for the files in the %APPDATA% folder, I'll try to fix it

[EDIT] UPDATED: this version should work properly both in the official and the unofficial versions
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
1 users liked this post
Radovan Omorjan 12/17/2013 3:08:00 PM
#12 Posted: 12/17/2013 3:08:09 PM
Radovan Omorjan

Radovan Omorjan

325 likes in 2052 posts.

Group: Moderator

Yes it works, thank you
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#13 Posted: 12/17/2013 5:30:14 PM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: Moderator

Wrote

Better now, but still no connectivity. I guess that is sort of firewall or proxy issue.


In our school LAN, the connectivity is broken, at home web access works (official and unofficial version). I shall include the plugin in the next release of the inofficial distribution.
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
1 users liked this post
Davide Carpi 12/17/2013 10:08:00 PM
#14 Posted: 12/17/2013 10:14:35 PM
Davide Carpi

Davide Carpi

1417 likes in 2873 posts.

Group: Moderator

UPDATED

- error handling: LOGs will be placed in the relative "extensions\debug\CurrencyUnits" folder (so the portable version has a portable debug path)

- For developers only: added a log tool to output a Term[] tree representation (see the CurrencyUnits Implementer.cs).
2013-12-18 17_05_51-C__Users_Davide_AppData_Roaming_SMath_extensions_debug_CurrencyUnits_log.txt - N.png
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#15 Posted: 1/3/2014 8:36:49 PM
Davide Carpi

Davide Carpi

1417 likes in 2873 posts.

Group: Moderator

UPDATED

- checks for network availability before each ECB update attempt;
- LOG tools updated (session start is no longer registered)
- NetTest() removed.
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#16 Posted: 9/5/2018 7:22:04 AM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: Moderator

The yahoo download service for exchange rates has been discontinued. See their forum post.

Therefore, the function GetYahooExchangeRate() reports that the remote name could not be resolved.

I recommend to adjust the error message to "Service discontinued by Yahoo. Use function .... instead."

Perhaps some other source is available in replacement. However, I would not push this, because I rarely use it. Just cleaning up documentation.

Edit: filed as SS-3559
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
1 users liked this post
Davide Carpi 9/5/2018 2:01:00 PM
#17 Posted: 10/23/2018 7:59:34 PM
Davide Carpi

Davide Carpi

1417 likes in 2873 posts.

Group: Moderator

PLUGIN UPDATED SMath Studio 0.99.6839 and later

  • [SS-3560] restored unit as input argument in SetCurrencyUnits();
  • [SS-3559] since Yahoo service is discontinued now GetYahooExchangeRate() is hidden in the dynamic assistance and returns directly an error message if called;

If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#18 Posted: 3/27/2021 12:39:45 PM
Davide Carpi

Davide Carpi

1417 likes in 2873 posts.

Group: Moderator

PLUGIN UPDATED SMath Studio 0.99.7739 Nightly Build and later

  • added Currency units (symbols) toolbox;


NOTE:
  • symbols are sorted by unicode code;
  • symbols are subject to font implementation;
  • these are decorative symbols; you have to define yourself exchange rates on the worksheet to mix them;
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
  • New Posts New Posts
  • No New Posts No New Posts