• 1
  • 11
  • 12
  • 13(current)
  • 14
  • 15
  • 51
Broken Weather Underground
(2012-05-06, 22:43)ronie Wrote: i'll try if i can use some trickery in the script to handle the conversion for UK based locations.

Not wanting to add to the work, but perhaps a better way would be to allow the user to set mph/kmh/Bft, °C/°F, etc. That way the user can set their own preferences rather than conform to the country's localisation setting (for example if a Brit is living in the US, but wants to use °C rather than °F)
Anti-Fascist◾Artist◾Atheist◾Barefoot◾Cis-male◾Cyclist◾Gay◾Geeky◾Introverted◾Likes weird stuff◾Living with depression & anxiety◾Naturist◾Pierced◾Socialist◾He/him
Reply
(2012-05-05, 22:06)ronie Wrote: weather.wunderground-0.1.6.zip
added:
- provide 3 day weekend forecast <- just to get everyone off my back ;-p

@pkscuot: sorry, you'll have to adjust the weekend code in your mod again...

Not wanting to step on anybody's toes here, but this requires merely 2 edits in WeekendForecast.xml:

Line 48, change:
Code:
<label>$LOCALIZE[16]</label>
to
Code:
<label>$INFO[Window.Property(Weekend.2.LongDay)]</label>

and line 135, change:
Code:
<label>$LOCALIZE[17]</label>
to
Code:
<label>$INFO[Window.Property(Weekend.3.LongDay)]</label>

Anti-Fascist◾Artist◾Atheist◾Barefoot◾Cis-male◾Cyclist◾Gay◾Geeky◾Introverted◾Likes weird stuff◾Living with depression & anxiety◾Naturist◾Pierced◾Socialist◾He/him
Reply
(2012-05-11, 00:25)dnairb Wrote:
(2012-05-05, 22:06)ronie Wrote: weather.wunderground-0.1.6.zip
added:
- provide 3 day weekend forecast <- just to get everyone off my back ;-p

@pkscuot: sorry, you'll have to adjust the weekend code in your mod again...

Not wanting to step on anybody's toes here, but this requires merely 2 edits in WeekendForecast.xml:

Line 48, change:
Code:
<label>$LOCALIZE[16]</label>
to
Code:
<label>$INFO[Window.Property(Weekend.2.LongDay)]</label>

and line 135, change:
Code:
<label>$LOCALIZE[17]</label>
to
Code:
<label>$INFO[Window.Property(Weekend.3.LongDay)]</label>

I did notice, however, that with my weekend set as Saturday/Sunday, the displayed "Chance of Precipitation" was as displayed for Friday/Saturday in the 10 day forecast. I couldn't see anything obvious in the default.py and skin files to explain this.

Sorry folks. I've been away on some family business. I should be able to look at this tomorrow. I'll also update the map display (the map fetched now is a different aspect ratio then the old one).

Reply
(2012-05-11, 00:25)dnairb Wrote: Line 48, change:
Code:
<label>$LOCALIZE[16]</label>
to
Code:
<label>$INFO[Window.Property(Weekend.2.LongDay)]</label>

and line 135, change:
Code:
<label>$LOCALIZE[17]</label>
to
Code:
<label>$INFO[Window.Property(Weekend.3.LongDay)]</label>

In addition to this (which I did and forgot to post):

Lines 50-113:
Change all instances of Weekend.1 to Weekend.2

Lines 137-200
Change all instances of Weekend.2 to Weekend.3

Anti-Fascist◾Artist◾Atheist◾Barefoot◾Cis-male◾Cyclist◾Gay◾Geeky◾Introverted◾Likes weird stuff◾Living with depression & anxiety◾Naturist◾Pierced◾Socialist◾He/him
Reply
I've updated the confluence mods for the weather underground beta plugin. Available for both confluence and confluence vertical here. This includes support for the three day weekend as well as the new map.

Two things with the maps.
1- If you change the zoom setting on the map, you are going to get this odd transition where you have some images that are at one zoom level and some at others. If possible it would be nice for the addon to delete all cached images if I change the zoom setting.
2- There is no way to tell what time the loop covers. With the paid map loop it had embedded time/date codes. I'm wondering if the addon could provide a pair of info labels that give the date/time of the first and last image so that at least a skinner could display that information.

And one thing with the weekend forecast. Weekend.1 is no longer always the first day of the weekend, and Weekend.2 is no longer always the second day of the weekend. Let me see if I can explain. Assuming "weekend" is defined as Saturday and Sunday, the three day weekend is Friday, Saturday, Sunday.

If you look at the data on Monday, Tuesday, Wednesday, Thursday, or Friday:
Weekend.1 is this Friday
Weekend.2 is this Saturday
Weekend.3 is this Sunday

On Saturday:
Weekend.1 is this Saturday
Weekend.2 is this Sunday
Weekend.3 is next Friday

On Sunday:
Weekend.1 is this Sunday
Weekend.2 is next Friday
Weekend.3 is next Saturday

My feeling is that without any changes, a user is likely to get confused when they see a weekend forecast that goes Saturday, Sunday, Friday. So for my mods I set it up so that on Monday - Friday you get the three day weekend forecast. Saturday you get just Saturday and Sunday. Sunday you get just Sunday. If you have your weekend set to one of the other options other than Saturday/Sunday in the advanced settings, this should still work.

To achieve this I used the following visibility logic:

Slot 1
Always Visible

Slot 2
<visible>![StringCompare(Window.Property(Weekend.2.LongDay),$LOCALIZE[13]) | StringCompare(Window.Property(Weekend.2.LongDay),$LOCALIZE[14]) | StringCompare(Window.Property(Weekend.2.LongDay),$LOCALIZE[15])]</visible>

Slot 3
<visible>![StringCompare(Window.Property(Weekend.3.LongDay),$LOCALIZE[13]) | StringCompare(Window.Property(Weekend.3.LongDay),$LOCALIZE[14]) | StringCompare(Window.Property(Weekend.3.LongDay),$LOCALIZE[15]) | StringCompare(Window.Property(Weekend.2.LongDay),$LOCALIZE[13]) | StringCompare(Window.Property(Weekend.2.LongDay),$LOCALIZE[14]) | StringCompare(Window.Property(Weekend.2.LongDay),$LOCALIZE[15])]</visible>

Skinners will need to pay attention to this (unless things change before this goes into production). I gotta be honest and say I don't like the fact that Weekend.1 is not always the first day of the weekend. I think it would be easier for skinners if Weekend.1 was always the first day of the three day weekend. If we're in the middle of the weekend, Weekend.1 would ideally either be empty or the addon would cache the forecast so that we still have access to display the data from the past. Ditto for Weekend.2 if we're at the end of the weekend.
Reply
(2012-05-13, 16:23)pkscuot Wrote: Skinners will need to pay attention to this (unless things change before this goes into production). I gotta be honest and say I don't like the fact that Weekend.1 is not always the first day of the weekend. I think it would be easier for skinners if Weekend.1 was always the first day of the three day weekend. If we're in the middle of the weekend, Weekend.1 would ideally either be empty or the addon would cache the forecast so that we still have access to display the data from the past. Ditto for Weekend.2 if we're at the end of the weekend.

i thought about the possibility of caching too, and it *may* work if your htpc is up and running 24/7.
if it's not, there no guarantee we have any useful cached data available.
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
I was thinking about a different approach for showing the info on the weekend page.
The "Weekend Forecast" it is a forecast for the upcoming weekend and IMO should be available only until that time comes. So... instead to have blank days or double days why don't the script show the forecast for the upcoming weekend on Monday's, Tuesdays, Wednesdays, Thursdays and (starting from Friday) on Friday's, Saturday's and Sunday's to show the forecast for the next weekend ?. Even better (I don't now if that is doable) the script could add a "Next" indicator to every "Weekend.%i.LongDay" for Fridays, Saturdays and Sundays to show something like "Next Friday".

I think in this way there is no confusion or blank days. As for the weekend forecast on the current day of the weekend i think is not needed. The 36hour forecast and the Hourly forecast covers all the needs.

Last... since now we have three days forecast in weekend IMO the option to choose the weekend days in scripts settings is obsolete.

Cheers
Nessus
Reply
(2012-05-14, 09:57)nessus Wrote: I was thinking about a different approach for showing the info on the weekend page.
The "Weekend Forecast" it is a forecast for the upcoming weekend and IMO should be available only until that time comes. So... instead to have blank days or double days why don't the script show the forecast for the upcoming weekend on Monday's, Tuesdays, Wednesdays, Thursdays and (starting from Friday) on Friday's, Saturday's and Sunday's to show the forecast for the next weekend ?. Even better (I don't now if that is doable) the script could add a "Next" indicator to every "Weekend.%i.LongDay" for Fridays, Saturdays and Sundays to show something like "Next Friday".

For me this would be even more confusing. If I get up Friday morning and want to check the weekend forecast, I'm more interested in this weekend (since it has just started). And on Saturday I'll probably be more interested in a quick look at Saturday and Sunday than next weekend. It isn't until Monday that I really start thinking about "next" weekend. Big Grin
Reply
Mine only shows One day for the weekend with update
Is there a FIX
Reply
Weekend page showed Sunday only yesterday (as it should) and today shows Friday, Saturday and Sunday, also as it should.
Many thanks pkscuot.
Anti-Fascist◾Artist◾Atheist◾Barefoot◾Cis-male◾Cyclist◾Gay◾Geeky◾Introverted◾Likes weird stuff◾Living with depression & anxiety◾Naturist◾Pierced◾Socialist◾He/him
Reply
hehe, a typical case of 'put three people in a room and you'll get six different opinions' :-)

(2012-05-14, 09:57)nessus Wrote: Last... since now we have three days forecast in weekend IMO the option to choose the weekend days in scripts settings is obsolete.

according to the 'all knowing' wiki, there are a few countries that have a thursday/friday weekend.
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
(2012-05-14, 16:09)pkscuot Wrote: If I get up Friday morning and want to check the weekend forecast, I'm more interested in this weekend (since it has just started). And on Saturday I'll probably be more interested in a quick look at Saturday and Sunday than next weekend. It isn't until Monday that I really start thinking about "next" weekend. Big Grin
You have three options for that (Current, 36hour & Hourly) even with hour-by-hour forecast. Is not enough ?

(2012-05-14, 19:15)ronie Wrote: according to the 'all knowing' wiki, there are a few countries that have a thursday/friday weekend.
I didn't now that.

(2012-05-14, 19:15)ronie Wrote: hehe, a typical case of 'put three people in a room and you'll get six different opinions' :-)
lol Rofl

Cheers
Nessus
Reply
Ronie can i get you to comment on this trac ticket
http://trac.xbmc.org/ticket/13024

and while off topic. do you experience this one.
http://trac.xbmc.org/ticket/13030
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply
(2012-05-14, 20:05)nessus Wrote:
(2012-05-14, 16:09)pkscuot Wrote: If I get up Friday morning and want to check the weekend forecast, I'm more interested in this weekend (since it has just started). And on Saturday I'll probably be more interested in a quick look at Saturday and Sunday than next weekend. It isn't until Monday that I really start thinking about "next" weekend. Big Grin
You have three options for that (Current, 36hour & Hourly) even with hour-by-hour forecast. Is not enough ?

But using your thoughts, you can already see next weekend with the 10 day forecast. In terms of duplication, the weekend forecast is redundant. That information can be found a bunch of other places. It comes down to how people are likely to use it and what they are likely to expect. And that's hard for any of us to guess for sure much past our own usage. Here's the really funny thing. I basically never look at the weekend forecast myself. Until I had to make these changes I hadn't really thought about how it gets used.

Ronie might just have to leave it be and let the skinners figure it out.
Reply
-nvm-
Reply
  • 1
  • 11
  • 12
  • 13(current)
  • 14
  • 15
  • 51

Logout Mark Read Team Forum Stats Members Help
Weather Underground1