It is currently May 2nd, 2024, 7:02 am

WebParser error

Get help with creating, editing & fixing problems with skins
Krzyzak
Posts: 4
Joined: August 25th, 2011, 6:56 pm
Location: Stalowa Wola/Poland

WebParser error

Post by Krzyzak »

Firstly,
I want to say hello, it's my first post on this forum (And if i will do mistakes in english language I sorry).

Secondly,
I've got problem with my skin, which I'm still working on. ( Link to skin: http://www.speedyshare.com/files/30033934/simplicity.zip )
Rainmeter.log:

Code: Select all

NOTICE: (00:00:00.000) Path: C:\Program Files\Rainmeter\
NOTICE: (00:00:00.016) IniFile: C:\Users\KrZyZaK\AppData\Roaming\Rainmeter\Rainmeter.ini
NOTICE: (00:00:00.016) SkinPath: C:\Users\KrZyZaK\Documents\Rainmeter\Skins\
NOTICE: (00:00:00.016) PluginPath: C:\Program Files\Rainmeter\Plugins\
NOTICE: (00:00:00.031) The Rainmeter.ini file is writable.
NOTICE: (00:00:00.187) Refreshing skin "simplicity\Clock\Clock.ini"
NOTICE: (00:00:00.218) Initialization successful.
NOTICE: (00:00:00.218) Refreshing skin "simplicity\Weather\weather.ini"
DEBUG: (00:00:00.296) WebParser: Fetching URL: http://www.twojapogoda.pl/polska/podkarpackie/stalowa-wola
NOTICE: (00:00:00.312) Initialization successful.
NOTICE: (00:00:01.342) CheckUpdate: No new version available.
DEBUG: (00:00:04.618) WebParser: Finished URL: http://www.twojapogoda.pl/polska/podkarpackie/stalowa-wola
DEBUG: (00:00:04.618) WebParser: [MeasureWeather] (Index  0) <title>Stalowa Wola - Prognoza pogody dla Stalowa Wola, Pogoda na 16 dni - Twojapogoda.pl</title>
<meta content='text/html; charset=utf-8' http-equiv='content-type' />
<meta content='pl' http-equiv='content-language' />
<meta content='Prognoza pogody dla S
DEBUG: (00:00:04.618) WebParser: [MeasureWeather] (Index  1) Stalowa Wola
DEBUG: (00:00:04.633) WebParser: [MeasureWeather] (Index  2) prawie bezchmurnie
DEBUG: (00:00:04.633) WebParser: [MeasureWeather] (Index  3) 21
DEBUG: (00:00:04.633) WebParser: [MeasureWeather] (Index  4) 11
DEBUG: (00:00:04.633) WebParser: [MeasureWeather] (Index  5) wschodni
DEBUG: (00:00:04.633) WebParser: [MeasureWeather] (Index  6) 0
DEBUG: (00:00:04.633) WebParser: [MeasureWeather] (Index  7) 1018
DEBUG: (00:00:04.633) WebParser: [MeasureWeather] (Index  8) 81
ERROR: (00:00:05.366) # prawie - Unknown function/variable!
ERROR: (00:00:05.366) # prawie - Unknown function/variable!
ERROR: (00:00:05.366) # prawie - Unknown function/variable!
ERROR: (00:00:05.366) # prawie - Unknown function/variable!
ERROR: (00:00:05.366) # prawie - Unknown function/variable!
ERROR: (00:00:05.366) # prawie - Unknown function/variable!
ERROR: (00:00:05.382) # prawie - Unknown function/variable!
ERROR: (00:00:05.382) # prawie - Unknown function/variable!
ERROR: (00:00:05.382) # prawie - Unknown function/variable!
ERROR: (00:00:06.380) # prawie - Unknown function/variable!
ERROR: (00:00:06.380) # prawie - Unknown function/variable!
ERROR: (00:00:06.380) # prawie - Unknown function/variable!
This error is repeating, and repeating...

Code: Select all

ERROR: (00:00:06.380) # prawie - Unknown function/variable!
The same is at the Index 5, eg.:

Code: Select all

[MeasureWeather] (Index  5) południowo-wschodni
Error will be like:

Code: Select all

# południowo - Unknown function/variable!!
I don't know, how to fix it, but everything works, when in WebParser index 2 or index 5 is one word, like:

Code: Select all

WebParser: [MeasureWeather] (Index  2) bezchmurnie
or

Code: Select all

WebParser: [MeasureWeather] (Index  5) wschodni
Thanks for all.

PS.
I was almost forgot about 1 more think.
Sometimes WebParser cannot load website and it gives matching error:

Code: Select all

DEBUG: (00:30:29.564) WebParser: Fetching URL: http://www.twojapogoda.pl/polska/podkarpackie/stalowa-wola
DEBUG: (00:30:30.484) WebParser: Finished URL: http://www.twojapogoda.pl/polska/podkarpackie/stalowa-wola
DEBUG: (00:30:30.500) WebParser: [MeasureWeather] Matching error! (-1)
Is this possible to fix?
poiru
Developer
Posts: 2872
Joined: April 17th, 2009, 12:18 pm

Re: WebParser error

Post by poiru »

The reason is that your Subistute fails to match:

Code: Select all

Substitute="bezchmurnie":"1","prawie bezchmurnie":"2","zachmurzenie ma³e":"3","zachmurzenie umiarkowane":"4","burza z deszczem":"7","deszcz":"6"
Let's consider the "prawie bezchmurnie" case. First, the Substitute changes "bezchmurnie" to "1" so you're left with "prawie 1" ;)

Use something like the following to fix:

Code: Select all

Substitute="prawie bezchmurnie":"2","bezchmurnie":"1","zachmurzenie ma³e":"3","zachmurzenie umiarkowane":"4","burza z deszczem":"7","deszcz":"6"

Code: Select all

Substitute="pó³nocny":"1","po³udniowy":"2","zachodni":"4","pó³nocno-wschodni":"5","pó³nocno-zachodni":"6","po³udniowo-wschodni":"7","pó³nocno-zachodni":"8","wschodni":"3"
Krzyzak
Posts: 4
Joined: August 25th, 2011, 6:56 pm
Location: Stalowa Wola/Poland

Re: WebParser error

Post by Krzyzak »

Really big thanks :)
I didn't know, that it is so simple.

How about the second problem with loading page?
Sometimes WebParser load it, sometimes not.
On Firefox, everytime, when I'm connecting to this page it loads well.
Any suggestions?