Below is the answer regarding the Currency Meter Gadget that I modified to use for the Stock Meter Gadget to provide the data source. The OS is Windows 10.
Whilst my modified Stock Meter Gadget works perfectly it will only handle 6 Stocks and I want to increase that number to at least 10. As a source for the actual Data I use Googlesheets to get the data from the LSE.
QUOTE from earlier Currency Gadget solution
81kabJan 12, 2018, 9:45 AM
Hi there, I want to share my workaround for this issue.
First, when looking through the gadget code I noticed that it use 3rd-party service (Yahoo) to retrieve currency values. But unfortunately Yahoo has closed that service (
https/forums.yahoo.net/t5/Yahoo-Finance-help/http-download-finance-yahoo-com-d-quotes-csv-s-GOOG-amp-f/td-p/387096 ).
I decided to use Google Spreadsheets where it is possible to use GoogleFinance() function and export the spreadsheet to CSV file. In my case, I'm going to track USD/RUB and EUR/RUB pairs. I think you could easily replace them with yours.
Step 1.
Create a new google spreadsheet. First column should contain your currency pairs divided by "/" symbol. Second column will have results of GoogleFinance() calculation.
Step 2.
Fill the table. For example, this is my table:
Currencies will update automatically.
Step 3.
Go to menu and select "File" -> "Publish to Web". Next shoose CSV format and click "Publish".
You will get a URL, something like
https/docs.google.com/spreadsheets/.../pub?gid=0&single=true&output=csv . Save it to a safe place.
Step 4.
Now we will need to change URL in the gadget's code.
Go to folder C:\Users\[your user name]\AppData\Local\Microsoft\Windows Sidebar\Gadgets\Currency_Meter.gadget\
Find a file called "gadget.js" and open it with a text editor, e.g. Notepad.
You will see a lot of minified code, copy all the code and paste it to http
/unminify.com/ . Click "Unminify".
Next, replace all minified code with unminified one. Save the gadget.js file.
Step 5.
In the gadget.js file find definition of function getData() (line #1393 for me). Replace all the code inside the curly brackets with this code:
getDataURL('YOUR URL FROM STEP 3');
Where you should paste URL from the Step 3 inside the brackets.
In my case:
Next, save the file.
Step 6.
Now you will need to disable the Currency Meter gadget and then enable it again. If everything goes well, you will see it is working again!
Feel free to ask any questions, I will try to help.
Unquote