Kodi Community Forum
Release OzWeather - Australian Weather Addon using BOM data inc. animated radar support - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+---- Forum: Weather Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=155)
+---- Thread: Release OzWeather - Australian Weather Addon using BOM data inc. animated radar support (/showthread.php?tid=116905)



RE: [RELEASE] OzWeather - Australian Weather Addon using BOM data - uksa007 - 2015-01-06

(2015-01-06, 12:33)bossanova808 Wrote: Looks like the labels are in another file (or two)

include name="TWC.Current.DailyLowLabelsCommon"

You'll figure it out - I need the labels. Don't want to spend time digging through files I don't use, but happy to do the work if the labels I need are given to me Smile

Do these look like what you are after?

Code:
Window.Property(Weather.CurrentView)
Window.Property(Current.Temperature)
Window.Property(Current.FeelsLike)
Window.Property(Current.ConditionIcon)
Window.Property(Current.Condition)
Window.Property(Current.DewPoint)
Window.Property(Current.Humidity)
Window.Property(Current.HeatIndex)
Window.Property(Current.Wind)
Window.Property(Current.Precipitation)
Window.Property(Current.Pressure)
Window.Property(Current.Visibility)
Window.Property(Today.Sunrise)
Window.Property(Today.Sunset)

Window.Property(Daily.1.LongDay)
Window.Property(Daily.1.ShortDay)
Window.Property(Daily.1.ShortDate)
Window.Property(Daily.1.OutlookIcon)
Window.Property(Daily.1.HighTemperature)
Window.Property(Daily.1.LowTemperature)
Window.Property(Daily.1.ChancePrecipitation)

Window.Property(Daily.2.LongDay)
Window.Property(Daily.2.ShortDay)
Window.Property(Daily.2.ShortDate)
Window.Property(Daily.2.OutlookIcon)
Window.Property(Daily.2.HighTemperature)
Window.Property(Daily.2.LowTemperature)
Window.Property(Daily.2.ChancePrecipitation)

Window.Property(Daily.3.LongDay)
Window.Property(Daily.3.ShortDay)
Window.Property(Daily.3.ShortDate)
Window.Property(Daily.3.OutlookIcon)
Window.Property(Daily.3.HighTemperature)
Window.Property(Daily.3.LowTemperature)
Window.Property(Daily.3.ChancePrecipitation)

Window.Property(Daily.4.LongDay)
Window.Property(Daily.4.ShortDay)
Window.Property(Daily.4.ShortDate)
Window.Property(Daily.4.OutlookIcon)
Window.Property(Daily.4.HighTemperature)
Window.Property(Daily.4.LowTemperature)
Window.Property(Daily.4.ChancePrecipitation)

Window.Property(Daily.5.LongDay)
Window.Property(Daily.5.ShortDay)
Window.Property(Daily.5.ShortDate)
Window.Property(Daily.5.OutlookIcon)
Window.Property(Daily.5.HighTemperature)
Window.Property(Daily.5.LowTemperature)
Window.Property(Daily.5.ChancePrecipitation)

Window.Property(Daily.6.LongDay)
Window.Property(Daily.6.ShortDay)
Window.Property(Daily.6.ShortDate)
Window.Property(Daily.6.OutlookIcon)
Window.Property(Daily.6.HighTemperature)
Window.Property(Daily.6.LowTemperature)
Window.Property(Daily.6.ChancePrecipitation)

Window.Property(Daily.7.LongDay)
Window.Property(Daily.7.ShortDay)
Window.Property(Daily.7.ShortDate)
Window.Property(Daily.7.OutlookIcon)
Window.Property(Daily.7.HighTemperature)
Window.Property(Daily.7.LowTemperature)
Window.Property(Daily.7.ChancePrecipitation)

Window.Property(Hourly.1.Time)
Window.Property(Hourly.1.ShortDate)
Window.Property(Hourly.1.OutlookIcon)
Window.Property(Hourly.1.Temperature)
Window.Property(Hourly.1.FeelsLike)
Window.Property(Hourly.1.ChancePrecipitation)

Window.Property(Hourly.2.Time)
Window.Property(Hourly.2.ShortDate)
Window.Property(Hourly.2.OutlookIcon)
Window.Property(Hourly.2.Temperature)
Window.Property(Hourly.2.FeelsLike)
Window.Property(Hourly.2.ChancePrecipitation)

Window.Property(Hourly.3.Time)
Window.Property(Hourly.3.ShortDate)
Window.Property(Hourly.3.OutlookIcon)
Window.Property(Hourly.3.Temperature)
Window.Property(Hourly.3.FeelsLike)
Window.Property(Hourly.3.ChancePrecipitation)

Window.Property(Hourly.4.Time)
Window.Property(Hourly.4.ShortDate)
Window.Property(Hourly.4.OutlookIcon)
Window.Property(Hourly.4.Temperature)
Window.Property(Hourly.4.FeelsLike)
Window.Property(Hourly.4.ChancePrecipitation)

Window.Property(Hourly.5.Time)
Window.Property(Hourly.5.ShortDate)
Window.Property(Hourly.5.OutlookIcon)
Window.Property(Hourly.5.Temperature)
Window.Property(Hourly.5.FeelsLike)
Window.Property(Hourly.5.ChancePrecipitation)

Window.Property(Hourly.6.Time)
Window.Property(Hourly.6.ShortDate)
Window.Property(Hourly.6.OutlookIcon)
Window.Property(Hourly.6.Temperature)
Window.Property(Hourly.6.FeelsLike)
Window.Property(Hourly.6.ChancePrecipitation)

Window.Property(Hourly.7.Time)
Window.Property(Hourly.7.ShortDate)
Window.Property(Hourly.7.OutlookIcon)
Window.Property(Hourly.7.Temperature)
Window.Property(Hourly.7.FeelsLike)
Window.Property(Hourly.7.ChancePrecipitation)

Window.Property(36Hour.IsFetched)

Window.Property(36Hour.1.Heading)
Window.Property(36Hour.1.OutlookIcon)
Window.Property(36Hour.1.Outlook)
Window.Property(36Hour.1.TemperatureHeading)
Window.Property(36Hour.1.Temperature)
Window.Property(36Hour.1.ChancePrecipitation)
Window.Property(36Hour.1.Precipitation)
Window.Property(36Hour.1.Forecast)
Window.Property(36Hour.1.DaylightTitle)

Window.Property(36Hour.2.Heading)
Window.Property(36Hour.2.OutlookIcon)
Window.Property(36Hour.2.Outlook)
Window.Property(36Hour.2.TemperatureHeading)
Window.Property(36Hour.2.Temperature)
Window.Property(36Hour.2.ChancePrecipitation)
Window.Property(36Hour.2.Precipitation)
Window.Property(36Hour.2.Forecast)
Window.Property(36Hour.2.DaylightTitle)

Window.Property(36Hour.3.Heading)
Window.Property(36Hour.3.OutlookIcon)
Window.Property(36Hour.3.Outlook)
Window.Property(36Hour.3.TemperatureHeading)
Window.Property(36Hour.3.Temperature)
Window.Property(36Hour.3.ChancePrecipitation)
Window.Property(36Hour.3.Precipitation)
Window.Property(36Hour.3.Forecast)
Window.Property(36Hour.3.DaylightTitle)



RE: [RELEASE] OzWeather - Australian Weather Addon using BOM data - bossanova808 - 2015-01-07

Ok, that's great - I am on my way. Can you tell me, though, what sort of data is set for

Window.Property(Current.HeatIndex) - is this UV maybe?
Window.Property(Current.Pressure) - what sort of figure and units?
Window.Property(Current.Visibility) - Sample text 'Hazy' or '4 kms' or something??

Window.Property(Current.CurrentView) -> I think this is the currently selected view on the weather page which is not relevant to us, but maybe not?

Window.Property(Daily.XXX.ShortDay) -> Tue, Tues, Tuesday??

I won't be supporting the hourly or 36 hour stuff as I don't have that available, just current and forecast.

I am looking for example text, e.g. 'Tue' or 'Tues' for ShortDay, 1045 (plus units??) for pressure etc. So I know what to scrape and set, if I can!

Thanks for sticking with this.

Once I have that, I will send you a new default.py for OzWeather and get you to try it out before I submit changes to the master repo - you just copy it over the current one. Are you cool with doing that?


RE: [RELEASE] OzWeather - Australian Weather Addon using BOM data - uksa007 - 2015-01-07

(2015-01-07, 01:14)bossanova808 Wrote: Ok, that's great - I am on my way. Can you tell me, though, what sort of data is set for

Window.Property(Current.HeatIndex) - is this UV maybe?
Window.Property(Current.Pressure) - what sort of figure and units?
Window.Property(Current.Visibility) - Sample text 'Hazy' or '4 kms' or something??

Window.Property(Current.CurrentView) -> I think this is the currently selected view on the weather page which is not relevant to us, but maybe not?

Window.Property(Daily.XXX.ShortDay) -> Tue, Tues, Tuesday??

I won't be supporting the hourly or 36 hour stuff as I don't have that available, just current and forecast.

I am looking for example text, e.g. 'Tue' or 'Tues' for ShortDay, 1045 (plus units??) for pressure etc. So I know what to scrape and set, if I can!

Thanks for sticking with this.

Once I have that, I will send you a new default.py for OzWeather and get you to try it out before I submit changes to the master repo - you just copy it over the current one. Are you cool with doing that?

Hi,

Pictures tell a thousand words, so here is a random image I found that shows what it should look like.

So I would guess:
Window.Property(Current.HeatIndex) - This seems to dispay ok as is - UV index eg Extreme (13)
Window.Property(Current.Pressure) - I guess this is the Barametric pressure?
Window.Property(Current.Visibility) - Not sure on this one, whatever you think is the best fit.

Window.Property(Current.CurrentView) -> I think this is the currently selected view on the weather page which is not relevant to us, but maybe not? Think you might be right, not needed

Window.Property(Daily.XXX.ShortDay) -> Looks like it should be SAT, SUN, MON, TUE, WED, THU, FRI
Think there should also be a Window.Property(Daily.X.LongDay) which is proably the full day name.

This type of statement is used alot, so not sure how it will will go without the 36hr stuff
!IsEmpty(Window.Property(36Hour.IsFetched)) + !StringCompare(Window.Property(WeatherProvider),OpenWeatherMap Extended)</


Yep more than happy to test a new default.py

Regards

Image


RE: [RELEASE] OzWeather - Australian Weather Addon using BOM data - bossanova808 - 2015-01-07

Ok, cool, try this one and tell me what if anything is missing.

https://github.com/bossanova808/weather.ozweather/raw/master/default.py

....I am not setting visibility as I have no value for it...


RE: [RELEASE] OzWeather - Australian Weather Addon using BOM data - uksa007 - 2015-01-07

(2015-01-07, 05:28)bossanova808 Wrote: Ok, cool, try this one and tell me what if anything is missing.

https://github.com/bossanova808/weather.ozweather/raw/master/default.py

....I am not setting visibility as I have no value for it...

Hi,

Looks like the Shortday names are ok,
ShortDate might be a bit funky?
7 day forcast only seems to be 6 days?
Outlook Icons missing
High and low missing Degrres C

See my test system below

Image


RE: [RELEASE] OzWeather - Australian Weather Addon using BOM data - bossanova808 - 2015-01-07

It looks like it wants one day more than I have data for (can't do anything about that).

I stuffed up and have corrected the forecast icons, think I have corrected the dates having the extra day bit on the end (I have to work out how to do this for your skin while not stuffing confluence!)

that SUMMER is not being set by me...have you seen that actually change with the seasonsHuh

It looks like the indexing is off by 1, which doesn't make sense. The standard weather addon uses day0/daily0 for the current day - or it used to...

Try it again, same link, I have updated it...won't fix everything but will be closer...


RE: [RELEASE] OzWeather - Australian Weather Addon using BOM data - bossanova808 - 2015-01-07

The indexing thing is a bit of a bugger. If I change that, all users using Confluence and my MyWeather.xml will need to change their skin file.

ALTHOUGH - I am using the old dayX.Outlook rather than the new Daily.X.Outlook options, so we might be ok - I presume those that are using the Daily picked that up from later weather addons.

I have just now pushed an update that sets the dayX ones via count adn the dailyX one via count + 1

Please try this one, I think it will solve most issues


RE: [RELEASE] OzWeather - Australian Weather Addon using BOM data - uksa007 - 2015-01-07

Ok,

Getting there, we now have the full seven days forcast!

ShortDate Looking good apart from having a leading 0 eg 07 Jan
Outlook Icons still missing for the seven day forcast.
High and low missing Degres C
No weather in the bar below Settings

Isn't there a standard for the labels?


RE: [RELEASE] OzWeather - Australian Weather Addon using BOM data - bossanova808 - 2015-01-07

You would think so but not really - well, this is it I think
https://github.com/ronie/weather.openweathermap.extended/blob/master/README.txt

The degrees are not normally set in the labels but come from the locale - have you set that in your settings?

Are you sure you got the latest file as I am definitely setting those icons:
setProperty(WEATHER_WINDOW, 'Daily.%i.OutlookIcon' % (count + 1), '%s.png' % weathercode)

the weather in the bar should come from the same labels, so I suspect that may also be a skin setting you haven't set?

I am attempting to set the degree symbol but that seems a bit tricky....

(will have to pick this up a bit later I am afraid)


RE: [RELEASE] OzWeather - Australian Weather Addon using BOM data - uksa007 - 2015-01-07

Hi,

I downloaded it after your second post.
I tried to redownload it, looks like you are working on it, as there is only one day forcast now.

It all works (bar and decrees C etc) if I change the weather plugin to another one without chaning anything else.

From your link, These look right to me: If the plugin suppled most of these it would work across most skins?

Code:
55 CURRENT
56 -------
57 Current.IsFetched
58 Current.LowTemperature     (for large cities, the temp my vary from one side of the city to the other. this is the lowest current temperature in the city)
59 Current.HighTemperature    (for large cities, the temp my vary from one side of the city to the other. this is the highest current temperature in the city)
60 Current.Pressure           (air pressure)
61 Current.SeaLevel           (pressure at sealevel)
62 Current.GroundLevel        (pressure at groundlevel)
63 Current.WindGust           (sudden, brief increase in speed of the wind)
64 Current.WindDirStart       (wind direction at the start of the day)
65 Current.WindDirEnd         (wind direction at the end of the day)
66 Current.Rain               (amount of rain over the last 3 hours)
67 Current.Snow               (amount of snow over the last 3 hours)
68 Current.Precipitation      (total amount of rain and snow over the last 3 hours)
69 Current.Cloudiness         (cloud coverage)
70 Current.ShortOutlook       (eg. 'Rain')
71

72

73 TODAY
74 -----
75 Today.IsFetched
76 Today.Sunrise
77 Today.Sunset
78

79

80 DAILY [1-16]
81 ------------
82 Daily.IsFetched
83 Daily.%i.LongDay           (eg. 'Monday')
84 Daily.%i.ShortDay          (eg. 'Mon')
85 Daily.%i.LongDate          (eg. '1 January')
86 Daily.%i.ShortDate         (eg. '1 Jan')
87 Daily.%i.Outlook           (eg. 'Very heavy rain')
88 Daily.%i.ShortOutlook      (eg. 'Rain')
89 Daily.%i.OutlookIcon
90 Daily.%i.FanartCode
91 Daily.%i.WindSpeed
92 Daily.%i.WindDirection     (eg. 'SSW')
93 Daily.%i.WindDegree        (eg. '220°')
94 Daily.%i.Humidity
95 Daily.%i.TempMorn          (morning temperature)
96 Daily.%i.TempDay           (day temperature)
97 Daily.%i.TempEve           (evening temperature)
98 Daily.%i.TempNight         (night temperature)
99 Daily.%i.DewPoint
100 Daily.%i.FeelsLike
101 Daily.%i.WindGust
102 Daily.%i.HighTemperature   (highest temperature that will be reached today)
103 Daily.%i.LowTemperature    (lowest temperature that will be reached today)
104 Daily.%i.Pressure
105 Daily.%i.Cloudiness
106 Daily.%i.Rain              (amount of rain)
107 Daily.%i.Snow              (amount of snow)
108 Daily.%i.Precipitation     (total amount of rain and snow)



RE: [RELEASE] OzWeather - Australian Weather Addon using BOM data - uksa007 - 2015-01-07

Hi,

Now all I get is currnet condtions, no 7 day forcast, going backwards to go forwards ;-)


RE: [RELEASE] OzWeather - Australian Weather Addon using BOM data - bossanova808 - 2015-01-07

Yeah I have broken it before I left work, so you want to go back one version for now. I was adding the degrees and units but it spits on the unicode degrees char, need to look at how Ronie did it. Will let you know when there is another version.

I am supplying most of those...


RE: [RELEASE] OzWeather - Australian Weather Addon using BOM data - bossanova808 - 2015-01-07

Can you try with these two changed files:
https://github.com/bossanova808/weather.ozweather/raw/master/default.py

https://github.com/bossanova808/weather.ozweather/raw/master/resources/lib/b808common/b808common.py

Note the second file goes in to /resources/lib/b808common/b808common.py

Then let me know where we are.


RE: [RELEASE] OzWeather - Australian Weather Addon using BOM data - bossanova808 - 2015-01-07

Sorry hold off - git giving me headaches

ok shpuld be good to go with those two files, and let me know what isn't working now..


RE: [RELEASE] OzWeather - Australian Weather Addon using BOM data - uksa007 - 2015-01-07

(2015-01-07, 12:03)bossanova808 Wrote: Sorry hold off - git giving me headaches

ok shpuld be good to go with those two files, and let me know what isn't working now..

Good news:
Full seven days forcast is back!
High and low missing Degres C is fixed!

Not so good:
Outlook Icons still missing for the seven day forcast.
No weather in the bar below Settings
ShortDate Looking good apart from having a leading 0 eg 07 Jan (no big deal)

Getting there!