Winstep

Software Technologies


 Winstep Forums


Print view
Board index : Winstep Forums : General Discussion  [ 20 posts ] Go to page 1, 2  Next
Author Message
 Post subject: Weather Module problem
PostPosted: Tue May 16, 2017 7:17 am 
Offline

Joined: Tue May 16, 2017 6:46 am
Posts: 9
Hi!

I just downloaded Nexus 17.01 (free version) from website.

I have used Nexus for several years, then had a break, and now wanted to go back to using it.

First, I have to say I am impressed with host of new features added to program, really good work. It is shame that it is not more known, it is really fantastic application.

However, I do have a problem with weather module. It fails to load weather location, it always shows error Unknown / Invalid location, even when I choose other locations...

For reference, in list it still says Yugoslavia, but that country doesn't exist anymore... Now it is several countries from it: Serbia, Montenegro, Bosnia & Herzegovina, Croatia, Slovenia and FYR Macedonia...

Screenshot of error is bellow.

Image

What can be done to remedy this situation? Thanks in advance!


Back to top
 Profile  
 
 Post subject: Re: Weather Module problem
PostPosted: Tue May 16, 2017 7:41 am 
Offline
Site Admin
Site Admin
User avatar

Joined: Thu Feb 26, 2004 8:30 pm
Posts: 11930
Aleksandar_038 wrote:
For reference, in list it still says Yugoslavia, but that country doesn't exist anymore... Now it is several countries from it: Serbia, Montenegro, Bosnia & Herzegovina, Croatia, Slovenia and FYR Macedonia...


Hope you realize that is not a political statement of any kind, the list used for the countries database was compiled many, many, years ago. :)

I look at it from the functional point of view, i.e.; the cities are still there and that is what *really* matters for the weather module to function. Still, I'll see what I can do to bring it up to date, in the understanding that I am not familiar with ex-Yugoslavia geography. :)

If you want, you can help out with this by editing the METARWCOMDATA.TXT file inside the

C:\Users\Public\Documents\WinStep\Weather\

folder and sending an updated version to Winstep support.

As for the problems you are having: open Preferences -> Advanced tab -> Troubleshooting Options -> Check Internet Connection.

What does it say?

_________________
Jorge Coelho
Winstep Xtreme - Xtreme Power!
http://www.winstep.net - Winstep Software Technologies


Back to top
 Profile WWW 
 
 Post subject: Re: Weather Module problem
PostPosted: Tue May 16, 2017 8:50 am 
Offline

Joined: Tue May 16, 2017 6:46 am
Posts: 9
Quote:
Hope you realize that is not a political statement of any kind, the list used for the countries database was compiled many, many, years ago.

I look at it from the functional point of view, i.e.; the cities are still there and that is what *really* matters for the weather module to function. Still, I'll see what I can do to bring it up to date, in the understanding that I am not familiar with ex-Yugoslavia geography.


Of course I understand :-) I just pointed out, thinking that maybe that could be cause of error. Otherwise, it doesn't matter at all...

And, as far as politics go, I am sorry it is not Yugoslavia any more :-(

Back on topic, internet connection appears to be working properly - that is what troubleshooting told me. And it is indeed working, for example mail module works OK.

I tried changing city and state, for example London Airport/UK - same message (invalid location)...


Back to top
 Profile  
 
 Post subject: Re: Weather Module problem
PostPosted: Tue May 16, 2017 8:55 am 
Offline
Site Admin
Site Admin
User avatar

Joined: Thu Feb 26, 2004 8:30 pm
Posts: 11930
Open the Weather Module Preferences dialog, click the 'Get Weather' button.

Once you get a response, go to

C:\Users\Public\Documents\WinStep

there should be a Weather.log file there now (double check the time stamp to make sure it's correct). Either send it by email to Winstep support or post the contents here.

_________________
Jorge Coelho
Winstep Xtreme - Xtreme Power!
http://www.winstep.net - Winstep Software Technologies


Back to top
 Profile WWW 
 
 Post subject: Re: Weather Module problem
PostPosted: Tue May 16, 2017 9:08 am 
Offline

Joined: Tue May 16, 2017 6:46 am
Posts: 9
File contents of weather.log is bellow. I also sent file to winstep support email.

Quote:
* METAR Connection Failed...

No Valid Codes

/wxdata/weather/local/#LocationCode#?cc=*&unit=#TempUnit#&dayf=6
wxdata.weather.com
***
HTTP/1.0 200 OK
Content-Type: text/xml; charset=UTF-8
Server: spray-can/1.3.3
X-Varnish: 3096273342 3096125618
Cache-Control: max-age=142
Date: Tue, 16 May 2017 08:58:55 GMT
Content-Length: 73
Connection: close

<error>
<err type="2">Invalid location provided.</err>
</error>
***
Error Decoding Weather.com Data

/data.aspx?src=vista&weadegreetype=c&culture=en-US&wealocations=wc:SRXX0005
weather.service.msn.com
***
HTTP/1.0 404 Not Found
Server: Microsoft-IIS/10.0
X-ActivityId: b1efab86-5db0-497c-bf6e-37454de4fb7c
Access-Control-Allow-Origin: *
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
Content-Length: 0
Expires: Tue, 16 May 2017 08:58:55 GMT
Cache-Control: max-age=0, no-cache, no-store
Pragma: no-cache
Date: Tue, 16 May 2017 08:58:55 GMT
Connection: close


***
Error Decoding MSN Data

/v1/public/yql?format=xml&q=select%20*%20from%20weather.forecast%20where%20woeid%20in%20(select%20woeid%20from%20geo.places(1)%20where%20text=%22Belgrade%2CYugoslavia%22)%20and%20u=%22c%22
query.yahooapis.com
***
HTTP/1.0 200 OK
X-YQL-Host: prod_bf1_1;paas.yql;queryyahooapiscomproductionbf11;28c4d5a1-39ed-11e7-a314-d4ae52974741
X-Content-Type-Options: nosniff
Access-Control-Allow-Origin: *
Content-Type: text/xml;charset=utf-8
Cache-Control: no-cache
Date: Tue, 16 May 2017 08:58:57 GMT
Age: 1
Via: http/1.1 a08.ue.bf1.yahoo.net (ApacheTrafficServer [cMsSf ])
Server: ATS

<?xml version="1.0" encoding="UTF-8"?>
<query xmlns:yahoo="http://www.yahooapis.com/v1/base.rng" yahoo:count="0" yahoo:created="2017-05-16T08:58:57Z" yahoo:lang="en-US"><results/></query><!-- total: 1834 -->
<!-- prod_bf1_1;paas.yql;queryyahooapiscomproductionbf11;28c4d5a1-39ed-11e7-a314-d4ae52974741 -->

***
Error Decoding Yahoo Data


Back to top
 Profile  
 
 Post subject: Re: Weather Module problem
PostPosted: Tue May 16, 2017 9:21 am 
Offline
Site Admin
Site Admin
User avatar

Joined: Thu Feb 26, 2004 8:30 pm
Posts: 11930
Quote:
/wxdata/weather/local/#LocationCode#?cc=*&unit=#TempUnit#&dayf=6


This query string is totally wrong. Did you change it from the original yourself at some point?

Open the Weather Module Preferences dialog again. Click the Advanced button to open the METAR Server Settings dialog. Now pay attention to the field that says Weather.com XML Source URL - click the Default button. See its contents change?

Click Ok, click Ok again, re-open the Weather Module Preferences dialog again and click the 'Get Weather' button (this by-passes the weather information cache besides besides creating the log file). Did it work this time?

_________________
Jorge Coelho
Winstep Xtreme - Xtreme Power!
http://www.winstep.net - Winstep Software Technologies


Back to top
 Profile WWW 
 
 Post subject: Re: Weather Module problem
PostPosted: Tue May 16, 2017 9:52 am 
Offline

Joined: Tue May 16, 2017 6:46 am
Posts: 9
No, I did not change query. Now I did what you told me, clicked on default button and tried again. Same error.

New log file is bellow:

Quote:
* METAR Connection Failed...

No Valid Codes

/wxdata/weather/local/#LocationCode#?cc=*&unit=#TempUnit#&dayf=6
wxdata.weather.com
***
HTTP/1.0 200 OK
Content-Type: text/xml; charset=UTF-8
Server: spray-can/1.3.3
X-Varnish: 3098819837
Cache-Control: max-age=120
Date: Tue, 16 May 2017 09:46:49 GMT
Content-Length: 73
Connection: close

<error>
<err type="2">Invalid location provided.</err>
</error>
***
Error Decoding Weather.com Data

/data.aspx?src=vista&weadegreetype=c&culture=en-US&wealocations=wc:YIXX0005
weather.service.msn.com
***
HTTP/1.0 200 OK
Content-Type: text/xml; charset=utf-8
Server: Microsoft-IIS/10.0
X-ActivityId: ee32b580-33e4-45b0-bf40-5abff86620e2
Access-Control-Allow-Origin: *
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
Cache-Control: public, max-age=591
Date: Tue, 16 May 2017 09:46:49 GMT
Content-Length: 1482
Connection: close

<weatherdata xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><weather weatherlocationcode="wc:YIXX0005" weatherlocationname="Beograd, Srbija" url="http://a.msn.com/54/en-US/ct44.801,20.467?ctsrc=vista" imagerelativeurl="http://blob.weather.microsoft.com/static/weather4/en-us/" degreetype="C" provider="Foreca" attribution="http://www.foreca.com/" attribution2="Foreca" lat="44.801" long="20.467" timezone="2" alert="" entityid="3418" encodedlocationname="Beograd"><current temperature="21" skycode="30" skytext="Partly Sunny" date="2017-05-16" observationtime="11:00:00" observationpoint="Beograd" feelslike="21" humidity="62" winddisplay="7 km/h West" day="Tuesday" shortday="Tue" windspeed="7 km/h" /><forecast low="13" high="22" skycodeday="27" skytextday="Mostly Cloudy" date="2017-05-15" day="Monday" shortday="Mon" precip="" /><forecast low="14" high="23" skycodeday="30" skytextday="Partly Sunny" date="2017-05-16" day="Tuesday" shortday="Tue" precip="10" /><forecast low="14" high="22" skycodeday="30" skytextday="Partly Sunny" date="2017-05-17" day="Wednesday" shortday="Wed" precip="30" /><forecast low="14" high="23" skycodeday="34" skytextday="Mostly Sunny" date="2017-05-18" day="Thursday" shortday="Thu" precip="10" /><forecast low="15" high="25" skycodeday="32" skytextday="Sunny" date="2017-05-19" day="Friday" shortday="Fri" precip="0" /><toolbar timewindow="60" minversion="1.0.1965.0" /></weather></weatherdata>
***
Error Decoding MSN Data

/v1/public/yql?format=xml&q=select%20*%20from%20weather.forecast%20where%20woeid%20in%20(select%20woeid%20from%20geo.places(1)%20where%20text=%22Belgrade%2CYugoslavia%22)%20and%20u=%22c%22
query.yahooapis.com
***
HTTP/1.0 200 OK
X-YQL-Host: prod_bf1_1;paas.yql;queryyahooapiscomproductionbf1;6d3deb66-2c5b-11e7-b972-d4ae52974741
X-Content-Type-Options: nosniff
Access-Control-Allow-Origin: *
Content-Type: text/xml;charset=utf-8
Cache-Control: no-cache
Date: Tue, 16 May 2017 09:46:49 GMT
Age: 0
Via: http/1.1 a58.ue.bf1.yahoo.net (ApacheTrafficServer [cMsSf ])
Server: ATS

<?xml version="1.0" encoding="UTF-8"?>
<query xmlns:yahoo="http://www.yahooapis.com/v1/base.rng" yahoo:count="0" yahoo:created="2017-05-16T09:46:49Z" yahoo:lang="en-US"><results/></query><!-- total: 69 -->
<!-- prod_bf1_1;paas.yql;queryyahooapiscomproductionbf1;6d3deb66-2c5b-11e7-b972-d4ae52974741 -->

***
Error Decoding Yahoo Data


Back to top
 Profile  
 
 Post subject: Re: Weather Module problem
PostPosted: Tue May 16, 2017 9:56 am 
Offline
Site Admin
Site Admin
User avatar

Joined: Thu Feb 26, 2004 8:30 pm
Posts: 11930
Can you please post a screenshot of the Advanced dialog in Weather Settings panel? What happened when you clicked the 'Default' button?

_________________
Jorge Coelho
Winstep Xtreme - Xtreme Power!
http://www.winstep.net - Winstep Software Technologies


Back to top
 Profile WWW 
 
 Post subject: Re: Weather Module problem
PostPosted: Tue May 16, 2017 10:36 am 
Offline

Joined: Tue May 16, 2017 6:46 am
Posts: 9
When I clicked first time, something changed in weather.com XML... second time nothing changed. Both times weather was not working...
Screenshot bellow:

Image

Image


Back to top
 Profile  
 
 Post subject: Re: Weather Module problem
PostPosted: Tue May 16, 2017 10:48 am 
Offline
Site Admin
Site Admin
User avatar

Joined: Thu Feb 26, 2004 8:30 pm
Posts: 11930
Exit the application, delete the Weather.log file.

Run Winstep Xtreme again, open Weather Preferences, go to the Advanced dialog, *make sure* it's still using the same Weather.com XML Source URL as shown in the above pictures.

Now click the 'Get Weather' button and check the new log file if it still doesn't work.

Where your log file states (wrongly)

Code:
/wxdata/weather/local/#LocationCode#?cc=*&unit=#TempUnit#&dayf=6
wxdata.weather.com


it should instead appear

Code:
/wxdata/weather/local/SRXX0005?cc&dayf=5&link=xoap&prod=xoap&unit=m&par=<number>&key=<another number>
wxdata.weather.com


If it still shows the old line, despite what the Advanced dialog shows, then I will have to ask you where did you download your copy of Nexus from. :wink:

_________________
Jorge Coelho
Winstep Xtreme - Xtreme Power!
http://www.winstep.net - Winstep Software Technologies


Back to top
 Profile WWW 
 
 Post subject: Re: Weather Module problem
PostPosted: Tue May 16, 2017 11:14 am 
Offline

Joined: Tue May 16, 2017 6:46 am
Posts: 9
I exited app, deleted log file and tried everything again - nothing.

I even reinstalled app, but it is same behavior.

Nexus installation is downloaded from Winstep site...

New log file is bellow. It states YIXX0005 instead of SRXX0005 you said... but even if I manually set SRXX0005, it says in log SRXX0005, but still gives an error.

Maybe it is something PC-specific? I will try on another one in the afternoon...

Quote:
* METAR Connection Failed...

No Valid Codes

/wxdata/weather/local/YIXX0005?cc&dayf=5&link=xoap&prod=xoap&unit=m&par=1023928134&key=712ce1c26b0de059
wxdata.weather.com
***
HTTP/1.0 200 OK
Content-Type: text/xml; charset=UTF-8
Server: spray-can/1.3.3
X-Varnish: 3725341542
Cache-Control: max-age=278
Date: Tue, 16 May 2017 11:06:04 GMT
Content-Length: 73
Connection: close

<error>
<err type="2">Invalid location provided.</err>
</error>
***
Error Decoding Weather.com Data

/data.aspx?src=vista&weadegreetype=c&culture=en-US&wealocations=wc:YIXX0005
weather.service.msn.com
***
HTTP/1.0 200 OK
Content-Type: text/xml; charset=utf-8
Server: Microsoft-IIS/10.0
X-ActivityId: 5b239f40-a28d-478d-95cb-1184b0a9623f
Access-Control-Allow-Origin: *
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
Content-Length: 1474
Cache-Control: public, max-age=194
Date: Tue, 16 May 2017 11:06:04 GMT
Connection: close

<weatherdata xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><weather weatherlocationcode="wc:YIXX0005" weatherlocationname="Beograd, Srbija" url="http://a.msn.com/54/en-US/ct44.801,20.467?ctsrc=vista" imagerelativeurl="http://blob.weather.microsoft.com/static/weather4/en-us/" degreetype="C" provider="Foreca" attribution="http://www.foreca.com/" attribution2="Foreca" lat="44.801" long="20.467" timezone="2" alert="" entityid="3418" encodedlocationname="Beograd"><current temperature="21" skycode="30" skytext="Partly Sunny" date="2017-05-16" observationtime="11:00:00" observationpoint="Beograd" feelslike="21" humidity="62" winddisplay="7 km/h West" day="Tuesday" shortday="Tue" windspeed="7 km/h" /><forecast low="13" high="22" skycodeday="27" skytextday="Mostly Cloudy" date="2017-05-15" day="Monday" shortday="Mon" precip="" /><forecast low="14" high="23" skycodeday="30" skytextday="Partly Sunny" date="2017-05-16" day="Tuesday" shortday="Tue" precip="10" /><forecast low="15" high="22" skycodeday="34" skytextday="Mostly Sunny" date="2017-05-17" day="Wednesday" shortday="Wed" precip="30" /><forecast low="13" high="23" skycodeday="32" skytextday="Sunny" date="2017-05-18" day="Thursday" shortday="Thu" precip="0" /><forecast low="15" high="26" skycodeday="32" skytextday="Sunny" date="2017-05-19" day="Friday" shortday="Fri" precip="0" /><toolbar timewindow="60" minversion="1.0.1965.0" /></weather></weatherdata>
***
Error Decoding MSN Data

/v1/public/yql?format=xml&q=select%20*%20from%20weather.forecast%20where%20woeid%20in%20(select%20woeid%20from%20geo.places(1)%20where%20text=%22Belgrade%2CYugoslavia%22)%20and%20u=%22c%22
query.yahooapis.com
***
HTTP/1.0 200 OK
X-YQL-Host: prod_bf1_1;paas.yql;queryyahooapiscomproductionbf1;3df97e11-2c61-11e7-b972-d4ae52974741
X-Content-Type-Options: nosniff
Access-Control-Allow-Origin: *
Content-Type: text/xml;charset=utf-8
Cache-Control: no-cache
Date: Tue, 16 May 2017 11:06:06 GMT
Age: 1
Via: http/1.1 a06.ue.bf1.yahoo.net (ApacheTrafficServer [cMsSf ])
Server: ATS

<?xml version="1.0" encoding="UTF-8"?>
<query xmlns:yahoo="http://www.yahooapis.com/v1/base.rng" yahoo:count="0" yahoo:created="2017-05-16T11:06:06Z" yahoo:lang="en-US"><results/></query><!-- total: 1284 -->
<!-- prod_bf1_1;paas.yql;queryyahooapiscomproductionbf1;3df97e11-2c61-11e7-b972-d4ae52974741 -->

***
Error Decoding Yahoo Data


Back to top
 Profile  
 
 Post subject: Re: Weather Module problem
PostPosted: Tue May 16, 2017 11:20 am 
Offline
Site Admin
Site Admin
User avatar

Joined: Thu Feb 26, 2004 8:30 pm
Posts: 11930
Ok, the query string, however, is now correct. The problem now is the location code.

Open Weather Settings and replace YIXX0005 with SRXX0005, it should now work correctly.

_________________
Jorge Coelho
Winstep Xtreme - Xtreme Power!
http://www.winstep.net - Winstep Software Technologies


Back to top
 Profile WWW 
 
 Post subject: Re: Weather Module problem
PostPosted: Tue May 16, 2017 11:27 am 
Offline
Site Admin
Site Admin
User avatar

Joined: Thu Feb 26, 2004 8:30 pm
Posts: 11930
Sorry, skipped over part of your post.

Look, something is indeed wrong there. Here both codes work, SRXX0005 or YIXX0005.

YIXX0005 is rejected by Weather.com, but accepted by MSN (and you can see in the log above you actually got a weather response from MSN). However, in there it's apparently not being parsed properly and fails with an error.

SRXX0005 is the opposite, it's accepted by Weather.com but rejected by MSN.

As I stated, here I can use either of the codes, one I get a feed from Weather.com, the other from MSN. In there, both codes seem to fail for some strange reason.

_________________
Jorge Coelho
Winstep Xtreme - Xtreme Power!
http://www.winstep.net - Winstep Software Technologies


Back to top
 Profile WWW 
 
 Post subject: Re: Weather Module problem
PostPosted: Tue May 16, 2017 11:37 am 
Offline
Site Admin
Site Admin
User avatar

Joined: Thu Feb 26, 2004 8:30 pm
Posts: 11930
Ok, I suspect this might be because of some kind of incompatibility in local date or numeric formats on your PC causing an error.

Can you please post a screenshot of the 'Format' tab of the Regional Settings dialog in the *Windows* Control Panel? Also for the 'Additional Settings' dialog, which holds the format used for numbers and decimal points.

_________________
Jorge Coelho
Winstep Xtreme - Xtreme Power!
http://www.winstep.net - Winstep Software Technologies


Back to top
 Profile WWW 
 
 Post subject: Re: Weather Module problem
PostPosted: Tue May 16, 2017 11:46 am 
Offline

Joined: Tue May 16, 2017 6:46 am
Posts: 9
Quote:
Ok, I suspect this might be because of some kind of incompatibility in local date or numeric formats on your PC causing an error.

Can you please post a screenshot of the 'Format' tab of the Regional Settings dialog in the *Windows* Control Panel?


You are right! My regional settings are set to Serbian (Latin, Serbia), please see screenshot:

Image

When they are set like this, weather module is not working.

When I set region to English (Europe) - whoila - weather module is working.

Thank you very, very much for quick help and patience! This was quickest software support ever :-)

Anyway, I will set formats to English (Europe) for now, to enjoy in Nexus, but hopefully this can be corrected somehow in future?


Back to top
 Profile  
 
Post new topic Reply to topic Board index : Winstep Forums : General Discussion  [ 20 posts ] Go to page 1, 2  Next
Display posts from previous:  Sort by  

Who is online

Users browsing this forum: No registered users and 49 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron