It is currently June 16th, 2021, 12:00 pm

Market Prices

RSS, ATOM and other feeds, GMail, Stocks, any information retrieved from the internet
Wildcard777
Posts: 2
Joined: June 8th, 2021, 3:10 pm

Re: Market Prices

Post by Wildcard777 »

Mordasius wrote: February 15th, 2021, 1:52 am
MarketPrices-Horizontal_150221.rmskin
Hi Mordasius. When I download the default skin I can't get any values to show. Gone through many trials and errors but only get null values. When I download this example code you made for someone it works just fine showing the correct values. I tried to even cross reference the new/old code to adjust but still no avail. I just want the default style to work, lol. I appreciate any help I can get to make it work.
User avatar
SilverAzide
Rainmeter Sage
Posts: 1290
Joined: March 23rd, 2015, 5:26 pm

Re: Market Prices

Post by SilverAzide »

Wildcard777 wrote: June 8th, 2021, 3:22 pm Hi Mordasius. When I download the default skin I can't get any values to show. Gone through many trials and errors but only get null values. When I download this example code you made for someone it works just fine showing the correct values. I tried to even cross reference the new/old code to adjust but still no avail. I just want the default style to work, lol. I appreciate any help I can get to make it work.
It's working perfectly for me, straight out of the box. Are you seeing any errors in the log?
FM.png
You do not have the required permissions to view the files attached to this post.
Gadgets Wiki GitHub More Gadgets...
Wildcard777
Posts: 2
Joined: June 8th, 2021, 3:10 pm

Re: Market Prices

Post by Wildcard777 »

SilverAzide wrote: June 9th, 2021, 12:29 am It's working perfectly for me, straight out of the box. Are you seeing any errors in the log?

FM.png
Just getting null values. All I tried changing here were the stock labels for the first two. So pretty much out of the box this is what I've always been faced with.
Image

The error in the log I'm getting is "ERRO (16:55:23.427) MarketPrices-CNBC\8quotes - Medium.ini - [InfoIndex2]: RegExp matching error (-1)"
User avatar
SilverAzide
Rainmeter Sage
Posts: 1290
Joined: March 23rd, 2015, 5:26 pm

Re: Market Prices

Post by SilverAzide »

Wildcard777 wrote: June 14th, 2021, 9:50 pm Just getting null values. All I tried changing here were the stock labels for the first two. So pretty much out of the box this is what I've always been faced with.

The error in the log I'm getting is "ERRO (16:55:23.427) MarketPrices-CNBC\8quotes - Medium.ini - [InfoIndex2]: RegExp matching error (-1)"
Well, not sure what more I can tell you. The error message in the log is the clue... the response from the call to the cnbc.com site is returning something that doesn't match the expected response, so the data cannot be parsed. Thus you get nothing. You're going to need to debug this yourself if you want to get it working.

A tool like RainRegExp (and the accompanying tutorial) can be of great help in these cases. You can set the Debug=2 option on one of the WebParser measures to capture the response to a file and use that, or just use the URL that the skin is using (for example, https://www.cnbc.com/quotes/.SPX). You can post your website dump file here if you still need help.
Gadgets Wiki GitHub More Gadgets...
User avatar
Mordasius
Posts: 1056
Joined: January 22nd, 2011, 4:23 pm
Location: GMT +8

Re: Market Prices

Post by Mordasius »

Wildcard777 wrote: June 14th, 2021, 9:50 pm Just getting null values. All I tried changing here were the stock labels for the first two. So pretty much out of the box this is what I've always been faced with.
I suggest you download the skin again and check that it really is working "out of the box" - it certainly works for me. If the skin doesn't work you may need to assign a new UserAgent string. To find out the UserAgent string for your browser, you can connect to WhatIsMyBrowser ( https://www.whatismybrowser.com/detect/what-is-my-user-agent ) and then paste the string it returns at the bottom of the CNBC-8,inc file:

Once the freshly downloaded skin is working with the default stock prices I suggest you open CNBC-8.inc and change the first index to

Code: Select all

Nindex1=Testing
Symbol1=.SPX
Assuming that still works, start entering the names and symbols you are interested in. Pay particular attention to the presence or absence of a fullstop or period ('.') at the front of the symbol. The omission or addition of '.' is a common source or errors.