[RELEASE] The Weather Channel (TWC) - Supplemental Script

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
Nuka1195 Offline
Skilled Python Coder
Posts: 3,910
Joined: Dec 2004
Reputation: 18
Post: #31
[Image: picture1-20081119224951.jpg]
[Image: settings.jpg]
Free Image Host

not in svn yet

For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
find quote
rwparris2 Offline
Team-XBMC Python Developer
Posts: 1,333
Joined: Jan 2008
Reputation: 2
Location: US
Post: #32
purdy Smile

Script looks great nuka keep it up

Always read the XBMC online-manual, FAQ and search and search the forum before posting.
For troubleshooting and bug reporting please read how to submit a proper bug report.

If you're interested in writing addons for xbmc, read docs and how-to for plugins and scripts ||| http://code.google.com/p/xbmc-addons/
find quote
Nuka1195 Offline
Skilled Python Coder
Posts: 3,910
Joined: Dec 2004
Reputation: 18
Post: #33
updated to add fanart and fixed hour by hour forecast.

fanart can be based on location or weather condition. eg name a folder "Cloudy", put images in there and point the fanart path to the root folder of "Cloudy"

for weather condition do work properly you need xbmc revision 16245 or newer.

[Image: twc0-20081121115240.jpg]
[Image: twc1-20081121115241.jpg]
[Image: twc2-20081121115241.jpg]
[Image: twc3-20081121115241.jpg]

For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
(This post was last modified: 2008-11-21 19:58 by Nuka1195.)
find quote
Nuka1195 Offline
Skilled Python Coder
Posts: 3,910
Joined: Dec 2004
Reputation: 18
Post: #34
[Image: twc4-20081121115241.jpg]
[Image: twc5-20081121115242.jpg]
[Image: twc6.jpg]
Image Hosting

more...

For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
find quote
Waffa Offline
Posting Freak
Posts: 1,163
Joined: May 2008
Reputation: 7
Location: Netherlands
Post: #35
Like the script but how can I change the location ?

Thanx in advance.
find quote
Nuka1195 Offline
Skilled Python Coder
Posts: 3,910
Joined: Dec 2004
Reputation: 18
Post: #36
it uses whatever you have selected in weather window

For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
find quote
Waffa Offline
Posting Freak
Posts: 1,163
Joined: May 2008
Reputation: 7
Location: Netherlands
Post: #37
Blush of course.

Next question.

Nuka1195 Wrote:fanart can be based on location or weather condition. eg name a folder "Cloudy", put images in there and point the fanart path to the root folder of "Cloudy"

Can't get it to work. Did made a folder named cloudy put some pic. in it even named one cloudy and another one cloudy-fanart. The forecast is cloudy.

Need some help. Thanx.
find quote
Nuka1195 Offline
Skilled Python Coder
Posts: 3,910
Joined: Dec 2004
Reputation: 18
Post: #38
Quote:
for weather condition do work properly you need xbmc revision 16245 or newer.

there is a space at the end of the weather.conditions label, so you need to name it "Cloudy ", but windows doesn't like that, so you can either update xbmc or change the script skin to add something at the end, then name your folder accordingly.

For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
find quote
Temhil Offline
Skilled Python Coder
Posts: 396
Joined: Apr 2008
Reputation: 1
Location: Canada
Post: #39
You did here an amazing and beautiful script. Thanks a lot!!!

[Image: passionxbmc_signature.png]
_____________________________

Repositories Installer: select and install unofficial repositories / TAC.TV: watch videos on TAC.TV
Installer Passion-XBMC: Download and Install Add-ons (pre-Dharma only)

[Image: project_thin_badge.gif]
find quote
Waffa Offline
Posting Freak
Posts: 1,163
Joined: May 2008
Reputation: 7
Location: Netherlands
Post: #40
Nuka1195 Wrote:there is a space at the end of the weather.conditions label, so you need to name it "Cloudy ", but windows doesn't like that, .

Sorry but mine English ain't that good. Don't now what to name cloudy?

Quote: so you can either update xbmc or change the script skin to add something at the end, then name your folder accordingly.

Maybe you can give me an example what en where to add something.

Xbox running latest T3CH XBMC 2008-11-13 8.10 PROPER.
Windows running XBMC_for_windows-8.10.
Don't now of those revisions are older or newer then 16245.
Info says XBMC 8.10 SVN : unkwown (compiled : nov 13 2008).
find quote
Nuka1195 Offline
Skilled Python Coder
Posts: 3,910
Joined: Dec 2004
Reputation: 18
Post: #41
name your folder "Cloudy twc" - no quotes

then in \scripts\TWC Supplemental\resources\skins\Default\NTSC\script-twc-main.xml

change:
PHP Code:
<imagepath diffuse="twc-fanart-diffuse.png">$INFO[Skin.String(twc-fanart-path)]$INFO[Weather.Conditions]</imagepath
to
PHP Code:
<imagepath diffuse="twc-fanart-diffuse.png">$INFO[Skin.String(twc-fanart-path)]$INFO[Weather.Conditions]twc</imagepath

For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
find quote
Waffa Offline
Posting Freak
Posts: 1,163
Joined: May 2008
Reputation: 7
Location: Netherlands
Post: #42
Thanx works fine now. Adding twc did the trick.Big Grin

Strange thought that I had the most recent build.Confused

The most recent condition in hour by hour tab decides fanart map I assume.
Cause it's now Partly Cloudy and showing "Partly Cloudy twc" Folder.

Is it possible to fill the screen with the script, so that the fanart also fit in the whole screen ?

Thanx again.
find quote
lolol Offline
Senior Member
Posts: 109
Joined: Jan 2005
Reputation: 10
Location: -
Post: #43
Hello!

Very Nice Script!

German Language:

Code:
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<strings>
    <string id="0">The Weather Channel - Zusatzscript</string>
    <string id="1">xbmc media center</string>
    <string id="2">lolol</string>
    
    <string id="10">Lade...</string>

    <string id="50">TAB: Vollbild-Karte</string>
    <string id="51">INFO: Als Standard-Ansicht festlegen</string>
    <string id="52">ESC: Script beenden</string>
    <string id="53">INFO: 36h Vorhersage als Standard</string>
    <string id="54">INFO: Stundenweise Vorhersage als Standard</string>
    <string id="55">INFO: Wochenend-Vorhersage als Standard</string>
    <string id="56">INFO: 10 Tage Vorhersage als Standard</string>

    <string id="100">Hole Karten...</string>
    <string id="101">Hole 36 Stunden Vorhersage...</string>
    <string id="102">Hole Stundenweise Vorhersage...</string>
    <string id="103">Hole Wochenend Vorhersage...</string>
    <string id="104">Hole 10 Tage Vorhersage...</string>

    <string id="200">Karten</string>
    <string id="201">36 Stunden</string>
    <string id="202">Stundenweise</string>
    <string id="203">Wochenend</string>
    <string id="204">10-Tage</string>
    <string id="205">Optionen</string>

    <string id="300">Details</string>
    <string id="301">Aussichten</string>

    <!-- Settings strings -->
    <string id="400">animierte Karten</string>
    <string id="401">Metrisches System</string>
    <string id="402">Wetter Fanart Pfad</string>
    <string id="403">- Fade Level</string>
    <string id="404">- Wetter Bedingung nutzen</string>

    <string id="600">Version</string>
    <string id="601">Author</string>
    <string id="602">Sprachdatei von</string>
    <string id="603">Standard Ansicht</string>

</strings>

Nuka, keep up your great work!

cu lolol
(This post was last modified: 2008-11-22 19:23 by lolol.)
find quote
Nuka1195 Offline
Skilled Python Coder
Posts: 3,910
Joined: Dec 2004
Reputation: 18
Post: #44
thanks lolol, added to svn, can you make sure i didn't screw up the encoding

thanks haken, strings have been added since your post, if you want to update

For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
find quote
jeffbacon Offline
Junior Member
Posts: 11
Joined: Nov 2008
Reputation: 0
Post: #45
Nuka1195 Wrote:ok, i have it working, need to clean it up. so a dfay or two. thanks for the help jeffbacon

No problem! Happy to help where I can.
find quote
Post Reply