Page 1 of 1

Location ID

Posted: Sat Aug 14, 2010 2:35 pm
by Snowbie
Sorry if this is in the wrong board :)

I use yowindow to replace my current conditions icon on my site http://www.irlweather.com
Do I need a location id for my site specifically?

I use Weather display to upload my conditions exporting in xml to replace the icon but it is showing the location id i placed in my code 'location_id=gn:2962361' which is 14 miles from my site.

So that the closest location ID is reporting it's conditions on my site but not using my current conditions.

Anyone any thoughts?

Karl.

Re: Location ID

Posted: Mon Aug 16, 2010 7:12 am
by par
Hey, Karl and welcome!

I have noticed that you have probably specified a wrong url for YoWindow weather script

In the widget parameter you have entered
http://www.irlweather.com/yo
window
-xml.php
You have a line-break in "yo
window-xml"
The script name must be a whole word - "yowindow-xml.php"
http://www.irlweather.com/yowindow-xml.php

This must be the reason why the weather is displayed wrong in the widget.

I have noticed that your script returns the snow level = 5
Is it correct?

location_id parameter lets YoWindow know the coordinates of the place to display the sunlight plausable.
There is no connection between location_id and PWS output.

Re: Location ID

Posted: Mon Aug 16, 2010 10:36 am
by Snowbie
Hi and thanks for the reply.

Have spent a good portion of the weekend trying to figure out where I have been going wrong. Just when I thought I had got things right, a Winter scene has appeared on the widget :?

How would the snow level of 5 get there? Although I did change rain/snow rate in inspector to check but I'd imagine this would have no influence on that? maybe I'm wrong. Would I need to edit it back manually in the -xml file?

I'll fix the line later on as I did have another line break somewhere else earlier and hopefully this will now sort it. :)

Let you knopw how it goes,
Thanks again,
Karl.

Re: Location ID

Posted: Mon Aug 16, 2010 11:53 am
by par
Snow level is there most likely because of PHP script settings.
Can you show to us which lines of the original Jim's script you have altered?

Re: Location ID

Posted: Mon Aug 16, 2010 12:22 pm
by jmcmurry
Karl,

I think you need to go into WD "Input Daily Weather" and zero out the snow level there.

- Jim

Re: Location ID

Posted: Mon Aug 16, 2010 1:03 pm
by Snowbie
I'm guessing on both counts here as I'm at work atm and not near my PC.

@Par, iirc it was just timezone I changed on the Jim's script and not much else?

@Jim, If i 0 the snow level in WD, wouldn't I be clearing my values for snow YTD?

All info helps as when I get home I can try out,
Thanks,
Karl.

Re: Location ID

Posted: Mon Aug 16, 2010 3:05 pm
by jmcmurry
Karl,

When you see the snow input screen you will see that you can set what month that it resets for the next season. There's also a box for this season's snowfall. The box you want to clear is the one labeled "Current Snow Depth" so that clientraw will report that at 0.

- Jim

Re: Location ID

Posted: Tue Aug 17, 2010 1:19 am
by Snowbie
Thanks Jim that sorted it.

Ok, I had to shuffle around the code just to make the widget work. I'm still not convinced I have it right though.
The interface on the desktop was showing separate conditions to what the widget was showing. It seems to be similar now but after loading in the widget again jumps from rain to dry with clear spells. It is not clear at this time of posting and it has just stopped raining and it is night atm??

I may have to start from scratch again with this but if someone would like to view my source and check out the re jgged code and make a further suggestion I be obliged.

Would i be right in saying, the interface on the desktop should be showing the exact same conditions on the web based widget from my console data? Should make sense but most of tonight, both have been different and completly out.(desktop=console/widget=unknown)

Thanks again,
Karl.