This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Is the script based online quotes available in Windows ver?

Tags: None
(comma "," separated)
66
Registered Member
Posts
1
Karma
0
Hi,

In the handbook of Kmymoney, it says:
Note that the URL can also be a file: URL, which the quote fetcher takes to be the path to an executable script. It will pass any command-line arguments to it that you have specified, and feed the stdout to the page parser. For example, you might have a script called getquote.sh that contains custom quote logic, taking the symbol as a single parameter. Your URL would be “file:/path/to/getquote.sh %1”.


While section_8 reported that in windows version, it did not work:
https://forum.kde.org/viewtopic.php?f=69&t=142713&start=30#p403908
Windows issues -
I normally run kmymoney and this script in linux. Before posting this here, I installed kmymoney 4.8.2, and python 3.7 in a Windows 10 VM in virtualbox, to test this in windows. I can run kmquotes.py from a windows terminal (cmd.exe) and retrieve quotes, so kmquotes can run in windows.

However, I haven't figured out how to create a kmymoney online quote source in windows that runs a script. Regardless of how I set the URL to kmquotes, it fails in kmymoney when I try to retrieve online quotes with:
Unable to launch: kmquotes.py XXXX
Unable to update price for XXXX (empty quote data)


Code here:
https://invent.kde.org/office/kmymoney/commit/8024818f811c74bb6e1578db0f9a64787c6f65d8
is called as "/bin/sh" "-c" "/home/user/bin/price.sh %1" where %1 will
be replaced with the actual investment symbol.


So, does it mean in windows version, the script based online quotes is not available?


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Sogou [Bot]