Currency Units plugin

Currency Units plugin - Add currencies and real-time exchange rates in SMath Studio. - Сообщения

#1 Опубликовано: 16.12.2013 20:01:40
Davide Carpi

Davide Carpi

1415 сообщений из 2872 понравились пользователям.

Группа: 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);

    Цитата

    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 пользователям понравился этот пост
Andrey Ivashov 17.12.2013 18:52:00, Martin Kraska 17.12.2013 03:24:00, Вячеслав Мезенцев 18.12.2013 02:32:00
#2 Опубликовано: 16.12.2013 20:35:09
Martin Kraska

Martin Kraska

1222 сообщений из 2150 понравились пользователям.

Группа: 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 Опубликовано: 16.12.2013 21:05:39
Davide Carpi

Davide Carpi

1415 сообщений из 2872 понравились пользователям.

Группа: 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 Опубликовано: 17.12.2013 03:23:36
Martin Kraska

Martin Kraska

1222 сообщений из 2150 понравились пользователям.

Группа: 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 Опубликовано: 17.12.2013 06:00:17
Radovan Omorjan

Radovan Omorjan

325 сообщений из 2052 понравились пользователям.

Группа: 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 Опубликовано: 17.12.2013 08:07:23
Davide Carpi

Davide Carpi

1415 сообщений из 2872 понравились пользователям.

Группа: 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 Опубликовано: 17.12.2013 08:41:16
Martin Kraska

Martin Kraska

1222 сообщений из 2150 понравились пользователям.

Группа: 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 Опубликовано: 17.12.2013 08:41:47
Radovan Omorjan

Radovan Omorjan

325 сообщений из 2052 понравились пользователям.

Группа: Moderator

Failed again

Here is the log file

Regards,
Radovan
log.txt (1 КиБ) скачан 66 раз(а).
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#9 Опубликовано: 17.12.2013 11:09:29
Davide Carpi

Davide Carpi

1415 сообщений из 2872 понравились пользователям.

Группа: 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 Опубликовано: 17.12.2013 13:31:12
Radovan Omorjan

Radovan Omorjan

325 сообщений из 2052 понравились пользователям.

Группа: 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 пользователям понравился этот пост
Davide Carpi 17.12.2013 13:50:00
#11 Опубликовано: 17.12.2013 13:52:02
Davide Carpi

Davide Carpi

1415 сообщений из 2872 понравились пользователям.

Группа: 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 пользователям понравился этот пост
Radovan Omorjan 17.12.2013 15:08:00
#12 Опубликовано: 17.12.2013 15:08:09
Radovan Omorjan

Radovan Omorjan

325 сообщений из 2052 понравились пользователям.

Группа: Moderator

Yes it works, thank you
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#13 Опубликовано: 17.12.2013 17:30:14
Martin Kraska

Martin Kraska

1222 сообщений из 2150 понравились пользователям.

Группа: 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 пользователям понравился этот пост
Davide Carpi 17.12.2013 22:08:00
#14 Опубликовано: 17.12.2013 22:14:35
Davide Carpi

Davide Carpi

1415 сообщений из 2872 понравились пользователям.

Группа: 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 Опубликовано: 03.01.2014 20:36:49
Davide Carpi

Davide Carpi

1415 сообщений из 2872 понравились пользователям.

Группа: 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 Опубликовано: 05.09.2018 07:22:04
Martin Kraska

Martin Kraska

1222 сообщений из 2150 понравились пользователям.

Группа: 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 пользователям понравился этот пост
Davide Carpi 05.09.2018 14:01:00
#17 Опубликовано: 23.10.2018 19:59:34
Davide Carpi

Davide Carpi

1415 сообщений из 2872 понравились пользователям.

Группа: 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 Опубликовано: 27.03.2021 12:39:45
Davide Carpi

Davide Carpi

1415 сообщений из 2872 понравились пользователям.

Группа: 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
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений