Weather 'FanArt' Backdrops based on current weather conditions?

  Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
Nuka1195 Offline
Skilled Python Coder
Posts: 3,910
Joined: Dec 2004
Reputation: 18
Post: #46
interesting

does not work, presumably because it is returng the icon path, so maybe a new infolabel
PHP Code:
<control type="largeimage">
    <
posx>0</posx>
    <
posy>0</posy>
    <
width>1280</width>
    <
height>720</height>
    <
onclick>-</onclick>
    <
texture>$INFO[Weather.Conditions,http://xbmc-addons.googlecode.com/svn/packages/skin/,.jpg]</texture>
   
</control
works
PHP Code:
<control type="largeimage">
    <
posx>0</posx>
    <
posy>0</posy>
    <
width>1280</width>
    <
height>720</height>
    <
onclick>-</onclick>
    <
texture>http://xbmc-addons.googlecode.com/svn/packages/skin/Cloudy.jpg</texture>
   
</control

For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
find quote
Wir3d Offline
Team Razorfish
Posts: 615
Joined: Aug 2007
Star   
Post: #47
Timdog, that link isn't exactly correct. It's from NOAA not Weather.com
The weather.com scraper automatically returns an icon number which is associated to an icon in XBMC's zip file.

In addition to getting an INFO label it would help to somehow get a condition = number list but I'm not sure if that's possible.

If you want to play around with the scraper I have found this works:
Replace 59901 with any zip code.
http://xoap.weather.com/weather/local/59...145f208494

I couldn't get the largeimage to work correctly either.
PHP Code:
<control type="largeimage">
  <
posx>0</posx>
  <
posy>0</posy>
  <
width>720</width>
  <
height>576</height>
  <
texture>$INFO[Weather.Conditions,Weather]</texture>
</
control
(This post was last modified: 2008-11-25 03:07 by Wir3d.)
find quote
Stan1971 Offline
Member
Posts: 71
Joined: Apr 2008
Reputation: 0
Location: Scotland
Post: #48
This thread has been a great read, and to the advanced user it probably makes a lot of sense. A lot of if it is flying way over my headConfused

So for all keen learners can someone explain how it is implemented using the latest t3ch svn, i.e a tutorial, or some basic steps at least. Also what skin would this work with? PM3HD, Mediastream....
find quote
Nuka1195 Offline
Skilled Python Coder
Posts: 3,910
Joined: Dec 2004
Reputation: 18
Post: #49
Quote:
added: Weather.FanartCode infolabel (returns the condition icon value eg Mostly Cloudy = 28)

I think this is the best you can get without a bunch of unnecessary code. it does mean you will have different codes for night and day.

PHP Code:
<control type="largeimage">
    <
posx>0</posx>
    <
posy>0</posy>
    <
width>1280</width>
    <
height>720</height>
    <
onclick>-</onclick>
    <
texture>$INFO[Weather.FanartCode,http://xbmc-addons.googlecode.com/svn/packages/skin/,.jpg]</texture>
   
</control

works fine

For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
(This post was last modified: 2008-11-26 22:30 by Nuka1195.)
find quote
Nuka1195 Offline
Skilled Python Coder
Posts: 3,910
Joined: Dec 2004
Reputation: 18
Post: #50
found this, not sure how accurate
Quote:
N/A Not Available
00 Rain/Lightning
01 Windy/Rain
02 Same as 01
03 Same as 00
04 Same as 00
05 Cloudy/Snow-Rain Mix
06 Hail
07 Icy/Clouds Rain-Snow
08 Icy/Haze Rain
09 Haze/Rain
10 Icy/Rain
11 Light Rain
12 Moderate Rain
13 Cloudy/Flurries
14 Same as 13
15 Flurries
16 Same as 13
17 Same as 00
18 Same as 00
19 Dust
20 Fog
21 Haze
22 Smoke
23 Windy
24 Same as 23
25 Frigid
26 Mostly Cloudy
27 Mostly Cloudy/Night
28 Mostly Cloudy/Sunny
29 Partly Cloudy/Night
30 Partly Cloudy/Day
31 Clear/Night
32 Clear/Day
33 Hazy/Night
34 Hazy/Day
35 Same as 00
36 Hot!
37 Lightning/Day
38 Lightning
39 Rain/Day
40 Rain
41 Snow
42 Same as 41
43 Windy/Snow
44 Same as 30
45 Rain/Night
46 Snow/Night
47 Thunder Showers/Night

For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
find quote
blah141 Offline
Junior Member
Posts: 1
Joined: Dec 2008
Reputation: 0
Post: #51
http://forum.xbmc.org/showpost.php?p=249...tcount=156

every hater in this thread = owned

boom
find quote
Rand Al Thor Offline
Collect3 Project Manager
Posts: 916
Joined: Jul 2005
Post: #52
@nuka

What are the chances of being able to use a live feed for weather fanart? I know there are tons of webcams set up in cities all over the world. The only issue would be quality. From what I have seen, most of the video is pretty much crap. However, some of the time lapse stills are pretty decent quality. It would be cool to buy a decent web cam and put it up in a window at your house. Then you could get live video of local weather conditions.

If we got enough users to purchase decent cameras we could set up a network of high quality weather feeds from around the globe. I don't think video would be possible due to bandwidth limitations, but really nice time lapse stills would be totally doable.
find quote
Nuka1195 Offline
Skilled Python Coder
Posts: 3,910
Joined: Dec 2004
Reputation: 18
Post: #53
you may already be able to with time lapse

just use a
<control type="largeimage">
</texture>urltowebcam</texture>

For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
find quote
Gamester17 Offline
Team-XBMC Forum Moderator
Posts: 10,523
Joined: Sep 2003
Reputation: 10
Location: Sweden
Post: #54
FYI; further development discussion and ideas about adding on-the-fly theme/backdrops changes to skins with variables based and weather conditions (and also based on the date and time of the day) can be found here:
http://forum.xbmc.org/showthread.php?tid=27354

Wink

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find quote
Wir3d Offline
Team Razorfish
Posts: 615
Joined: Aug 2007
Post: #55
So I'm having some troubles getting this info label to work.
I have an option to set the folder to their weather images in skin options.

Then to display the images I am using:
$INFO[Skin.String(WeatherFanart_Path)]$INFO[Weather.FanartCode]

As a result, the images are displayed randomly but not by current weather condition.
Basically it's acting like I only am using $INFO[Skin.String(WeatherFanart_Path)].

Hope this makes sense.
Any thoughts?
find quote
Nuka1195 Offline
Skilled Python Coder
Posts: 3,910
Joined: Dec 2004
Reputation: 18
Post: #56
sounds like you don't have an updated xbmc. that is if the multiimage is recursive.

meaning FanartCode is returning a blank.

For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
find quote
Wir3d Offline
Team Razorfish
Posts: 615
Joined: Aug 2007
Post: #57
Nuka1195 Wrote:sounds like you don't have an updated xbmc. that is if the multiimage is recursive.

meaning FanartCode is returning a blank.

No, I have the latest XBMC.
It works using a direct link c:/XBMC/Weather/$INFO[Weather.FanartCode] but not using the my info label above.
Maybe I have the info label incorrect?

Check out latest XBMC Connected and you will see what I am talking about.
In Weather Skin Options you can set the folder path.
find quote
Nuka1195 Offline
Skilled Python Coder
Posts: 3,910
Joined: Dec 2004
Reputation: 18
Post: #58
nothing in your pal/MyWeather.xml has fanart in it. i did a search

nm, it's in includes.xml

For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
find quote
Nuka1195 Offline
Skilled Python Coder
Posts: 3,910
Joined: Dec 2004
Reputation: 18
Post: #59
the labels have the right image, but i get no images showing at all.

i made the control alway visible and it shows and appears to show the correct images.

edit: <colordiffuse>DisabledTextColor</colordiffuse> makes the images not show

For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
(This post was last modified: 2009-01-11 02:08 by Nuka1195.)
find quote
Wir3d Offline
Team Razorfish
Posts: 615
Joined: Aug 2007
Post: #60
Figured it out. I was missing a comma in between the statements Smile
$INFO[Skin.String(WeatherFanart_Path),]$INFO[Weather.FanartCode]

Before it was showing any random image. Now it's showing them based on weather condition.
find quote