View Full Version : [RELEASE] The Weather Channel (TWC) - Supplemental Script
Nuka1195
2008-11-14, 05:19
here is a script that displays addition forecasts and maps from weather.com
it's in the addons svn. you can grab it with the SVN repo installer.
http://xbmc-addons.googlecode.com/svn/trunk/scripts/TWC%20Supplemental
http://s3.supload.com/thumbs/default/twc0.jpg (http://s3.supload.com/free/twc0.jpg/view/)
http://s3.supload.com/thumbs/default/twc1.jpg (http://s3.supload.com/free/twc1.jpg/view/)
http://s3.supload.com/thumbs/default/twc2.jpg (http://s3.supload.com/free/twc2.jpg/view/)
http://s3.supload.com/thumbs/default/twc3.jpg (http://s3.supload.com/free/twc3.jpg/view/)
http://s3.supload.com/thumbs/default/twc4.jpg (http://s3.supload.com/free/twc4.jpg/view/)
http://s3.supload.com/thumbs/default/twc5.jpg (http://s3.supload.com/free/twc5.jpg/view/)
Image hosting (http://www.supload.com/)
Image Gallery - Click Here (http://s3.supload.com/gal/08111347/0/)
jmarshall
2008-11-14, 19:50
Looks cool :)
Nuka1195
2008-11-15, 00:44
Revision 276 fixes the weekend forecast and some minor skin tweaks and adds a autorefresh for maps
jeffbacon
2008-11-15, 19:28
Looks great. Just installed it on my xbox (Ottawa, Canada).
- bug: There's no hour-by-hour forecast available on weather.com for Ottawa and when I select that tab it freezes.
(edit: now it works for me, I assumed there was no data and that's why it was freezing but I guess it just froze for some other reason)
- feature request: since I'm in Canada I'd like to be able to view the temp in C and wind in Km per hour vs the F and MPH default
jeffbacon
2008-11-15, 19:32
Also, if I'm on the weekend forecast and I press the down key on my remote, the focus moves off the top tab bar but onto nothing and I have to exit the script as I can never get the focus to return to anything on the screen.
... actually, same w 36-hour forecast
Nuka1195
2008-11-15, 19:36
i'll check out the 36 hour, but weekend has a button it moves to. toggles details/outlook.
plus a fix for weekend is coming shortly. friday doesn't show when it's saturday. i imagine saturday won't show on sunday.
about the F or C, i only display what weather.com gives. maybe if you give me the formulas, i would consider converting things. not sure though.
edit: ok navigation is broken, will fix.
jeffbacon
2008-11-15, 19:56
there's a 'metric' link on the Ottawa, Canada weather network page so there must be some way to source the C data directly but the conversion formula is:
°C = 5/9(°F-32)
Nuka1195
2008-11-16, 00:15
ok i missed it, but that would be better. i'll see later.
for now weekend is fixed.
navigation is still broken, don't go down except on the map page. if a skinner reads this could you have a look. i have no idea what it's doing. thanks.
Nuka1195
2008-11-16, 00:24
the good news is once you have the metric source it scrapes the same. but there is no difference in the url that i can see.
so if you figure out how to grab the correct page, your set.
Nuka1195
2008-11-16, 02:49
It's in svn the addons svn, but if anybody uses osx, it's broken in svn.
i have a fix, but need to test it.
use the svn repo installer to grab it or svn client, link in first post
Nuka1195
2008-11-16, 04:00
OSX now works.
here is the svn installer.
http://xbmc-addons.googlecode.com/svn/packages/plugins/programs/SVN_Repo_Installer.zip (http://xbmc-addons.googlecode.com/svn/packages/plugins/programs/SVN_Repo_Installer.zip)
jeffbacon
2008-11-16, 16:24
the good news is once you have the metric source it scrapes the same. but there is no difference in the url that i can see.
so if you figure out how to grab the correct page, your set.
When you click the English/Metric link it sets cookie values. My cookie is:
UserPreferences: 3%7C%20%7C0%7Creal%7Cfast%7C1%7C1%7C1%7C1%7C-1%7C%20%7C%20%7C%20%7C%20%7C%20%7C1%7CBusinessTrav el%7C%20%7C%20%7C%20%7C%20%7C%20%7C%20%7C%20%7C%20 %7C%20%7C%7C
The links call a JS function named setUserPreferences:
Metric:
setUserPreferences(5,1);
setUserPreferences(6,1);
setUserPreferences(7,1);
setUserPreferences(8,1);
setUserPreferences(15,1)
English:
setUserPreferences(5,0);
setUserPreferences(6,0);
setUserPreferences(7,0);
setUserPreferences(8,0);
setUserPreferences(15,0)
5 -> English(0) vs Metric (1)
But I can't see where the others are used. There must be an included script that generates the weather summaries that uses them. I assume they represent temp (C=1/F=0), wind (mph=0/kph=1), visibility (miles=0/km=1), and pressure (mb=1/in=0).
rwparris2
2008-11-16, 16:29
This script is awesome, especially with PM3.HD integration
Thanks Nuka!
Nuka1195
2008-11-16, 17:33
thanks and your welcome,
jeffbacon, good info, maybe if the user supplied there own cookie i could use that, i have no way to click that link. i'll play around later.
new update, adds avg info for weekend for days expired.
any chance we can replace the default Weather screen with this?
rwparris2
2008-11-16, 20:00
any chance we can replace the default Weather screen with this?
In whatever skin you're using, you could point the weather button/item to this script instead of where it normally points to by modifying the XML
jeffbacon
2008-11-16, 20:29
jeffbacon, good info, maybe if the user supplied there own cookie i could use that, i have no way to click that link. i'll play around later.
(even though I'm posting a lot on metric integration the script rocks already)
If that UserPreferences cookie doesn't have the city code in it (which I don't think it does as there's a LocID cookie with that in it) then maybe you can hard-code a UserPreferences that has metric set.
Great work!!! I really like it alot! Thanks again for all your Hard work!
Nuka1195
2008-11-16, 21:56
thanks,
updated again, here you can see the alert message.
http://s3.supload.com/thumbs/default/weekend.jpg (http://s3.supload.com/free/weekend.jpg/view/)
Image host (http://www.supload.com/)
if i can use the cookie, it will always be one way or the other, so city code doesn't matter. I don't think :)
this script was really meant to supplimeant xbmc weather page. it's better to have a link in the weather page to call the script, though you are free to do what you want. i know pmiii doesn't have the link. hint :)
yup... will need to add a link to the AEON skin!
Nuka1195
2008-11-17, 08:16
ok, i have it working, need to clean it up. so a dfay or two. thanks for the help jeffbacon
http://s3.supload.com/thumbs/default/celcius.jpg (http://s3.supload.com/free/celcius.jpg/view/)
Image host (http://www.supload.com/)
Nuka1195
2008-11-18, 00:09
english / metric setting now in svn. also partial navigation fix.
Looks really nice! looking forward to trying it... problem is I've never worked out how to use tortoise SVN... ??? anywhere else I can get a copy?
Nuka1195
2008-11-18, 16:15
you can grab the packaged svn installer and download any script plugin skin in the svn.
http://xbmc.org/forum/showthread.php?t=29911
Thanks Nuka! missed that one somehow....
This script is AMAZING!
Here you can find Polish language file: http://www.solidexpert.com/polish_weather.zip
timdog82001
2008-11-19, 11:21
are any of you guys using linux with this? It crashes out of xbmc when I try to run it and freezes the computer. I have to restart x and log back in.
Nuka1195
2008-11-19, 15:43
bug in xbmc, it's being looked at. it fails on osx also.
thanks for the polish language file. i've added a couple more strings not in svn yet.
Nuka1195
2008-11-20, 06:51
http://s3.supload.com/thumbs/default/picture1-20081119224951.jpg (http://s3.supload.com/free/picture1-20081119224951.jpg/view/)
http://s3.supload.com/thumbs/default/settings.jpg (http://s3.supload.com/free/settings.jpg/view/)
Free Image Host (http://www.supload.com/)
not in svn yet
rwparris2
2008-11-20, 07:00
purdy :)
Script looks great nuka keep it up
Nuka1195
2008-11-21, 19:56
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.
http://s3.supload.com/thumbs/default/twc0-20081121115240.jpg (http://s3.supload.com/free/twc0-20081121115240.jpg/view/)
http://s3.supload.com/thumbs/default/twc1-20081121115241.jpg (http://s3.supload.com/free/twc1-20081121115241.jpg/view/)
http://s3.supload.com/thumbs/default/twc2-20081121115241.jpg (http://s3.supload.com/free/twc2-20081121115241.jpg/view/)
http://s3.supload.com/thumbs/default/twc3-20081121115241.jpg (http://s3.supload.com/free/twc3-20081121115241.jpg/view/)
Nuka1195
2008-11-21, 19:56
http://s3.supload.com/thumbs/default/twc4-20081121115241.jpg (http://s3.supload.com/free/twc4-20081121115241.jpg/view/)
http://s3.supload.com/thumbs/default/twc5-20081121115242.jpg (http://s3.supload.com/free/twc5-20081121115242.jpg/view/)
http://s3.supload.com/thumbs/default/twc6.jpg (http://s3.supload.com/free/twc6.jpg/view/)
Image Hosting (http://www.supload.com/)
more...
Like the script but how can I change the location ?
Thanx in advance.
Nuka1195
2008-11-21, 23:09
it uses whatever you have selected in weather window
:blush: of course.
Next question.
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.
Nuka1195
2008-11-22, 02:01
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.
You did here an amazing and beautiful script. Thanks a lot!!!
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?
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).
Nuka1195
2008-11-22, 16:06
name your folder "Cloudy twc" - no quotes
then in \scripts\TWC Supplemental\resources\skins\Default\NTSC\script-twc-main.xml
change:
<imagepath diffuse="twc-fanart-diffuse.png">$INFO[Skin.String(twc-fanart-path)]$INFO[Weather.Conditions]</imagepath>
to
<imagepath diffuse="twc-fanart-diffuse.png">$INFO[Skin.String(twc-fanart-path)]$INFO[Weather.Conditions]twc</imagepath>
Thanx works fine now. Adding twc did the trick.:grin:
Strange thought that I had the most recent build.???
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.
Hello!
Very Nice Script!
German Language:
<?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
Nuka1195
2008-11-22, 19:35
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
jeffbacon
2008-11-22, 21:12
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.
Wanted to do something back.
Here's the dutch translation.
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<strings>
<string id="0">The Weather Channel - Supplemental</string>
<string id="1">xbmc media center</string>
<string id="2">Waffa</string>
<string id="50">TAB: Bekijk Kaart in volledig scherm</string>
<string id="51">INFO: Stel huidige kaart in als standaard weergave</string>
<string id="52">ESC: exits script</string>
<string id="53">INFO: Stel 36 uur vooruitzicht in als standaard weergave</string>
<string id="54">INFO: Stel uur per uur vooruitzicht in als standaard weergave</string>
<string id="55">INFO: Stel weekend vooruitzicht in als standaard weergave</string>
<string id="56">INFO: Stel 10 dagen vooruitzicht in als standaard weergave</string>
<string id="100">Kaarten ophalen...</string>
<string id="101">36 uur vooruitzicht ophalen...</string>
<string id="102">Uur per uur vooruitzicht ophalen...</string>
<string id="103">Weekend vooruitzicht ophalen...</string>
<string id="104">10 dagen vooruitzicht ophalen...</string>
<string id="200">Kaarten</string>
<string id="201">36 Uur</string>
<string id="202">Uur per uur</string>
<string id="203">Weekend</string>
<string id="204">10-Dagen</string>
<string id="205">Instellingen</string>
<string id="300">Details</string>
<string id="301">Outlook</string>
<!-- Settings strings -->
<string id="400">Toon geanimeerde kaarten</string>
<string id="401">Gebruik metrische eenheden</string>
<string id="402">Weer fanart locatie</string>
<string id="403">- Fade-niveau</string>
<string id="404">- Gebruik Weer condition</string>
<string id="600">Versie</string>
<string id="601">Auteur</string>
<string id="602">Taal door</string>
<string id="603">Standaard weergave</string>
</strings>
Nuka1195
2008-11-23, 01:25
thanks waffa
thanks lolol, added to svn, can you make sure i didn't screw up the encoding
Encoding seems to be fine! (UTF-8 w. BOM)
cu lolol
Polish strings -> www.bizuteria.cc.pl/polish_weather_v2.zip (http://www.bizuteria.cc.pl/polish_weather_v2.zip)
Nuka1195
2008-11-29, 20:03
thanks
Looks like this script doesn't work anymore (Windows)
I did fresh install of XBMC, went to "SVN Repo Installer" -> Scripts -> TWC
it loaded everything, but when if I go to lunch the script it just displays empty screen with empty tabs (maps, 36 hour etc.)
Nuka1195
2008-12-02, 22:32
sounds like you need to update xbmc to a revision that supports the new way it works. or grab the script with svn software at a revision before the changes.
the script still works fine
It is working fine on XBMC Atlantis (windows and xbox) :)
sounds like you need to update xbmc to a revision that supports the new way it works.
I am using Atlantis 8.10, default release.
Are you saying that I need to update to latest CVN build in order for script to work?
or grab the script with svn software at a revision before the changes.
the script still works fine
How do I do that?
Script worked fine untill I reinstalled XBMC and tried to make fresh install from SVN Repo Installer.
Nuka1195
2008-12-03, 00:25
ok i tagged a version that should work
use the installer and grab "TWC Supplemental (rev 332)"
everyone else the above has some missing textures, if you use fanart, you may have noticed it wasn't bound to the dialogs border.
ok i tagged a version that should work
use the installer and grab "TWC Supplemental (rev 332)"
everyone else the above has some missing textures, if you use fanart, you may have noticed it wasn't bound to the dialogs border.
Thanks a lot!!!
rev 332 is working fine! :)
Just one question:
Does "INFO" button on windows means keyboard "i" key?
Because if I press "i" it is not saving default view.
Nuka1195
2008-12-03, 01:29
no i have that worded wrong apperently, it's "C", i need to fix that
Nuka1195
2008-12-03, 04:05
i moved this version into the tags folder. you can grav the new svn installer, just committed. it adds supportfor the tags branches to grab it.
Thanks!
Should we always grab only tagged versions?
I see version 1.2 in tagged addons.
Just found 1 bug with it:
In '36 hours' screen if you accidentally hit up or down arrows, the control of the screen is completely lost
you can grab the packaged svn installer and download any script plugin skin in the svn.
http://xbmc.org/forum/showthread.php?t=29911
Dunno if I'm being a complete muppet but I'm yet to find this script? ??? I was using the installer that came with the T3CH build... no sign of it there and tonight I used the installer off the link above and the only thing I can find to do with weather is Accu Weather which fails to install? :eek:
Pointers appreciated...
Nuka1195
2008-12-05, 03:21
do you have the installer plugin, that when you first run it you get a list of repos xbmc-addons, xbmc-addons(tagged), xbmc-scripting and xbmc-scripting(tagged) if so it's under the xbmc-addons for the new version and (tagged) for an older more compatable version.
if not grab the installer again. or go into plugin settings and pick the correct repo.
the tagged versions should be more compatable, but if your upto date with xbmc, and want to be cutting edge, go with the non tagged ones.
Thanks Nuka appreciate your help... :)
I'll try again tonight.
ubuntu_xbmc
2008-12-05, 23:45
Hi,
very nice plugin.
I checked it out on
Windows xp SP3 and XBMC Atlantis 8.10 (my Desktop)
- The 1.2 tagged version is working
- The latest version shows up the window but every screen is empty
Ubuntu Hardy XBMC Atlantis 8.10 (my HTPC)
- Both versions cause to exit XBMC immediatelly. Debug says nothing special.
Someone running this on Ubuntu? It would be great if it is possible.
Thanks and best regards
Nuka1195
2008-12-06, 04:24
linux and osx v 8.1 had an issue, you need to build latest svn and it should run
JustinMP91
2008-12-08, 00:16
are any of you guys using linux with this? It crashes out of xbmc when I try to run it and freezes the computer. I have to restart x and log back in.
I guess this hasn't been fixed yet
Using the latest version (of xbmc) available in the repository and Ubuntu Intrepid Ibex
The version of TWC Supplemental out of the Tagged repo does this, but the one out of the normal SVN repo doesn't work at all.
How can I get fanart working on the xbox (location and condition)? I know how to do it on windows.
Running; T3CH XBMC 2008-12-07 SVN rev16491
JustinMP91
2008-12-10, 06:12
Okay, so a more detailed problem post.
TWC Supplemental (from the non-tagged SVN repository) runs, but doesn't show up (crashes?)
TWC Supplemental 1.2 (from the tagged SVN repository) crashes xbmc, and freezes X.
Ubuntu version: Intrepid Ibex
Kernel: 2.6.27-9-generic
XBMC 8.10 SVN:16164 (Compiled: Nov 14 2008)
The following is from TWC Supplemental from the non-tagged SVN repository.
Debug info:
-->Python Interpreter Initialized<--
Traceback (most recent call last):
File "/home/server/.xbmc/scripts/TWC Supplemental/default.py", line 28, in ?
ui = gui.GUI( "script-twc-main.xml", os.getcwd(), "Default" )
File "/home/server/.xbmc/scripts/TWC Supplemental/resources/lib/gui.py", line 61, in __init__
self._reset_views( 0 )
File "/home/server/.xbmc/scripts/TWC Supplemental/resources/lib/gui.py", in line 371, in _reset_views
xbmcgui.Window(xbmcgui.getCurrentWindowId()).setPr operty("view-Maps",("", "viewing",)[view == self.CONTROL_MAP_BUTTON])
AttributeError: 'xbmcgui.Window' object has no attribute 'setProperty'
----- END debug info
I typed all of the debug info by hand (I didn't feel like trying to find a way to copy it since I saw no obvious way to, so there might be a small typing mistake somewhere but I doubt it).
Okay, so a more detailed problem post.
TWC Supplemental (from the non-tagged SVN repository) runs, but doesn't show up (crashes?)
TWC Supplemental 1.2 (from the tagged SVN repository) crashes xbmc, and freezes X.
Ubuntu version: Intrepid Ibex
Kernel: 2.6.27-9-generic
XBMC 8.10 SVN:16164 (Compiled: Nov 14 2008)
The following is from TWC Supplemental from the non-tagged SVN repository.
Debug info:
-->Python Interpreter Initialized<--
Traceback (most recent call last):
File "/home/server/.xbmc/scripts/TWC Supplemental/default.py", line 28, in ?
ui = gui.GUI( "script-twc-main.xml", os.getcwd(), "Default" )
File "/home/server/.xbmc/scripts/TWC Supplemental/resources/lib/gui.py", line 61, in __init__
self._reset_views( 0 )
File "/home/server/.xbmc/scripts/TWC Supplemental/resources/lib/gui.py", in line 371, in _reset_views
xbmcgui.Window(xbmcgui.getCurrentWindowId()).setPr operty("view-Maps",("", "viewing",)[view == self.CONTROL_MAP_BUTTON])
AttributeError: 'xbmcgui.Window' object has no attribute 'setProperty'
----- END debug info
I typed all of the debug info by hand (I didn't feel like trying to find a way to copy it since I saw no obvious way to, so there might be a small typing mistake somewhere but I doubt it).
I get the same AttributeError: 'xbmcgui.Window' object has no attribute 'setProperty' error message.
Running Atlantis on WinXP Pro SP3. Fresh install.
JustinMP91
2008-12-13, 21:12
Unfortunately, it seems that no one cares enough to reply about it.. or at least tell us the link to the bug report or something.
The topic just keeps getting buried :(
Nuka1195
2008-12-13, 21:23
do you care enough to read. it's been answered in this thread. your xbmc build is too old.
read back a few posts where i state that.
JustinMP91
2008-12-14, 07:17
I did look through the entire thread... I saw somewhere you said to update, but that person's problem was different than mine, so ..
Whether I needed to read more thoroughly or not, there is no need for you to be harsh about it.
Also... I have the latest version available through the repository, so the only other option as far as I can tell is SVN... but I'm not that experienced with Linux, so I don't really want to try compiling from source. Also... I don't see where that leaves Windows users.
I suppose I'll just wait until a more updated version is available.
CorpITGuy
2008-12-15, 18:58
I did look through the entire thread... I saw somewhere you said to update, but that person's problem was different than mine, so ..
Whether I needed to read more thoroughly or not, there is no need for you to be harsh about it.
Also... I have the latest version available through the repository, so the only other option as far as I can tell is SVN... but I'm not that experienced with Linux, so I don't really want to try compiling from source. Also... I don't see where that leaves Windows users.
I suppose I'll just wait until a more updated version is available.
I am having the exact same problem with all modern builds running under Windows XP. It looks like this script just doesn't work right under Windows. I'll wait for a newer version as well. :sad:
Nuka1195
2008-12-15, 19:40
nice first post, won't be any new version. you need to learn to read also.
harsh? harsh is having to repeat myself.
CorpITGuy
2008-12-15, 21:19
nice first post, won't be any new version. you need to learn to read also.
harsh? harsh is having to repeat myself.
Read for understanding. That was a different problem entirely.
Nuka1195
2008-12-15, 22:13
ok, i'll take it that you two thought your problems were completely different.
they are not. the script works fine on all platforms as long as you have a revision newer than 16480.
the error message above is an error you would get with an older build.
i test on windows, therefore i know it will always work on windows.
if you are having the exact same problem as justinmp91, then a version in the tagged branch would work for you, as i've stated before in this thread that you've read?
CorpITGuy
2008-12-16, 01:48
I'm having a tough time finding a version of the installer that allows me to see the tagged versions. I don't doubt that I'm doing something wrong, but I just can't seem to find the correct version and get it in the right place.
JustinMP91
2008-12-16, 06:36
Okay, so a more detailed problem post.
TWC Supplemental (from the non-tagged SVN repository) runs, but doesn't show up (crashes?)
TWC Supplemental 1.2 (from the tagged SVN repository) crashes xbmc, and freezes X.
Maybe you need to read more carefully Nuka - the version you can get from the tagged repository does not work either.
I still don't understand why you need to be such a jerk about this... all you're doing is discouraging people (imho) from wanting to even use XBMC. This forum exists for people to ask for help, and when you flame them when they do, it's neither productive or helpful. If you're just going to act this way about it... honestly I'd rather not even see you reply. Instead of guiding people new to XBMC to the right place, and being kind about helping them... you yell at us for "not reading" and give us worthless bits of information that are of no help to us at all. I would think, as the creator of this script, you would be at least a little willing to help people out trying to use it... but that is clearly not true. No one here flamed you about anything, as far as I can tell everyone posting has been respectful. You, however, are choosing to have a horrible attitude about all of this... and if I've learned anything about you... it's that you sure aren't friendly.
Nuka1195
2008-12-16, 07:00
Thanks to justin. thread locked. no more support good luck.
Nuka1195
2008-12-17, 16:56
i've reopened this thread as certain people will not be using this script or any of mine.
any OT messages will be deleted.
This does work on the latest SVN builds of XBMC. on all platforms
Script is working fine, xbox and windows.:nod:
xbox;
T3CH XBMC 2008-12-07 SVN rev16491 ----- TWC 1.2
Windows;
Jester XBMC 2008-12-16 SVN rev16585 -----TWC 1.3
Only the fanart, I can't get it going.
Windows; location fanart ok, but condition fanart not. And it was working before with the twc add in .xml file. Now I tried with and without the twc add and no result.
Xbox; Location en condition fanart not working.
Location map name is Weather-fanart and in there the condition maps
Cloudy
Foggy
Drizzle
....
Can you help, I'm doing something wrong.???
Nuka1195
2008-12-17, 19:14
because of timdogs hardwork, i changed it to use the code number.
if you don't want to grab his weather fanart pack. look at the xml and change Weather.FanartCode to Weather.Conditions
Aenima99x
2008-12-17, 19:20
Thanks for keeping this going Nuka.
Ver. 1.3 of the script is working fine on Ubuntu.
Like you said, all it took was compiling the newest version from SVN.
Now I have this and the Hulu plugin working. :cool:
because of timdogs hardwork, i changed it to use the code number.
if you don't want to grab his weather fanart pack. look at the xml and change Weather.FanartCode to Weather.Conditions
Have done that already, no result.
Will grab fanart pack and try that out.
And location fanart on the xbox, maybe it's not working because xbmc changes location name from
Eindhoven, Netherlands to Eindhoven_Netherlands
This happens when the location is on the xbox unfortunely can't choose an other location than the xbox.
Edit;
Weather Fanart pack works great on windows also for home and weather screen.:D
Still got issues with the xbox changed conditions to FanartCode and now i'm resizing the fanart I'll keep trying.
Edit 2;
Xbox issues solved. I caused the issues:rolleyes:
Everything works perfect.
Thanks nuka1195!
actualpirate
2008-12-24, 02:32
Works great. Very nice. Thanks...
Nuka1195
2009-01-02, 03:19
new weather alerts tab
[/URL]
[URL=http://s3.supload.com/free/alerts.JPG/view/]http://s3.supload.com/thumbs/default/alerts.JPG (http://www.supload.com/)
https://www.supload.com/s.gif (http://www.supload.com/)
rwparris2
2009-01-02, 03:32
looking great
Gamester17
2009-01-02, 19:26
@Nuka1195, any more thoughts on this idea => http://xbmc.org/trac/ticket/4973
XBMC forum discussion => http://xbmc.org/forum/showthread.php?t=28376
???
Nuka1195
2009-01-03, 03:38
In svn
[TWC Supplemental]
-changed: version -> 1.4
-added: alerts tab (only shows if there are weather alerts
-changed: english language strings
-changed: don't load cookies, just pass it in a header
-changed: allow views to be refreshed after expiration (no need to reload script)
-changed: some gfx
-changed: default skin tweaks
http://img377.imageshack.us/img377/270/alerts2fi4.th.jpg (http://img377.imageshack.us/my.php?image=alerts2fi4.jpg)
chrisdaniels
2009-01-03, 19:00
Love this script Nuka1195. Thank you very much for it.
I have noticed however that the satellite view for the UK loads an anim from 09/09/2003. This looks like a bug with the weather.com site.
I have just looked on weather.com for my area and have found a view located here that is updated: http://image.weather.com/looper/archive/europesat_720x486/1L.jpg?1231001689181
Please take a look when you get chance :-)
Nuka1195
2009-01-03, 19:38
well it's kind of a bug and kind of the way i do things.
there is the weather in motion link, which should signify animated maps, but there animated maps of that particular map are outdated.
the only thing i can think of, is for you to disable animated maps.
i study it and see, but i don't think i can do anything about it.
rwparris2
2009-01-03, 19:49
feature request (I haven't looked at the code, so this maybe how it works already): if there are weather alerts, make that tab open by default.
If alerts exist, obviously that is important and I want to see them first.
Nuka1195
2009-01-03, 20:14
rwparris, the way it is now, set the alerts tab as default, if there are no alerts it will open the maps tab.
but maybe an option to open alerts if there are any, that way you don't lose your default view. yes i think i like this better.
This fixes the Northwest Europe Satellite, not the United Kingdom Satellite.
[TWC Supplemental]
-fixed: download static image for maps that have a bogus weather in motion link. (does NOT fix those maps with really old maps, eg. United Kingdom Satellite)
Nuka1195
2009-01-03, 21:29
in svn
[TWC Supplemental]
-changed: version -> 1.4.1
-changed: english language strings
-added: setting for showing alerts tab at start(defualt is true)
I need to learn how to read I guess. ;)
chrisdaniels
2009-01-04, 01:41
Nuka, the link i pointed you to was a static image for the UK, here is another Weather in Motion link for the UK & Europe that is up to date, but it is a Temperature map. Even so, maybe substitute the old UK one for this:
http://www.weather.com/outlook/travel/businesstraveler/map/UKXX0153?mapregion=europesat_720x486&showanimation=yes&bypassredirect=true
Nuka1195
2009-01-04, 19:27
i won't substitute one map for another. that map is listed in the list of maps, so just choose that one.
maybe you can email weather.com with the link of the old maps, they may fix it.
any elite hackers with wireshark that would like to contribute. i'm trying to find the actual video links to weather.com videos. i thought i did, but they don't play. they may not play in xbmc, i don't know.
this page
http://www.weather.com/outlook/travel/businesstraveler/local/USMI0405?from=recentsearch
has this starting link
http://www.weather.com/multimedia/videoplayer.html?clip=360&collection=regwxforecast&from=36hr_bottomnav_business
thanks for anyone who trys
Hello,
I have finally instaled latest version of xbmc and I get twc working. Just a question:
I've selected metric units in settings tab, but I see at least non metric units in 10 days tab. Is anyone else having the same trouble?
Thanks
Nuka1195
2009-01-08, 19:06
the metric/english works fine here. weather.com does not appear to convert the outlook text. but 10-day works.
* Note a very recent build is needed for this to work properly. when the video plays. you don't have full functionallity. it's because by default the script is a dialog. you can stop the video though, unless you use a mouse. then you're stuck. also weather.com only seems to have us videos, so it is only enabled for cities code that starts with "US"
[TWC Supplemental]
-changed: version -> 1.4.3
-changed: english language strings
-added: videos to US cities. (button on 36 hour tab, weather.com appears to only have US videos?)
-changed: default skin, added video button, now uses SetProperty() for focused slider and <onunfocus> to reset it
[/URL]
[URL=http://imageshack.us]http://img383.imageshack.us/img383/8973/videobuttonna1.jpg (http://imageshack.us)
Thanks Nuka,
You are right. I've been using an older version. It works fine except for outlook text.
Thanks again.
Does anyone have the code to have the Aeon skin replace the normal weather with this one in the scroller?
This is hot Nuka! Thanks man :). I tried running the current TWC at first and discovered that my xbmc build may not be AS up to date as other people are using, so I followed the info in this thread on using the older rev. 1.2 is working great *thumbs up*
Thanks again ;)
I'm still fairly new to everything xbmc, so forgive me if this question is stupid: In "skin settings", there is a scripts section. And there is a "enable quick launch script button for weather". I have turned this option on and set the script path to "C:\Program Files\XBMC\scripts\TWC Supplemental - 1.2\default.py". I was assuming that this would make my "weather" button on the home menu run the script instead of its default, but this isn't happening. Can someone explain what the quick launch function is and tell me if I'm on the right/wrong track? =\
Thank you in advance :)
rwparris2
2009-01-18, 18:11
It just adds a button to the weather screen. So now on the left you have "location" "refresh" "<TWC Supplemental>" "Settings".
I never gave the label a name, so it wasn't showing up. I see it now that I've given the button a name. Thanks "rw" :).
I'd like to set the 36 hour forecast as the default when launching TWC, and I notice in the bottom left corner of the screen, it says "INFO: sets as default view" but I have no idea what the "INFO" button is or how to activate it =S. I checked the manual under the global keyboard (http://xbmc.org/wiki/?title=Global_Keyboard) settings, and the only thing that comes close to "info" is the "I" key. However, the "I" key on my keyboard does not work for settings one of TWC defaults =\
Nuka1195
2009-01-18, 23:36
i had the text wrong for description, it has been corrected in the latest version.
try c on the keyboard. context. i think theres a picture of the updated text in this thread.
Cool, I just tried it with "C" and it worked. Thanks for the update :)
Not sure why but using Xbox and hitting Menu to exit is not working. I'm using the latest one on SVN I think its labeled 1.43. That's a big I think. ;)
Yes I'm running the ltest XBMC build from 12-30-2008. The only thing I recall changing was the settings in skin to add a button in weather to start this one. I've launched TWC via favorites, the new button and direct with the same non exit results. Have to power off Xbox to exit.
Nobody having the same issues as me? I just tried it on two Windows machines running XP SP3 and no data at all shows up when you run it.
So between the no exit in Xbox and having to power down to exit and the no data in XP and having to shutdown the application to exit I'm sorta at a loss.
I know 1.41 at least I think it was worked very well, but I'm not 100% any more. ;)
Both my Xbox and my Pc have the latest builds.
Nuka1195
2009-01-22, 18:10
grab the tagged version 1.4.2 i think. xbox sounds like something is erroring. windows sounds like your xbmc is not upto date.
and remember the latest t3ch is not always the needed version. latest svn means a current revision.
I'll give the Xbox one a try tonight. I didn't realize the Tagged ones where older. Ok, I'm a little slow on all this, but I'm learning. :nerd:
I just pulled down the latest available download off the front page of Xbmc.org and used the Repo SVN app in the Programs Plugin area and pulled down TWC script and well it still shows nothing. I did that twice before on both machines just to make sure, but hey a 3rd try couldn't hurt plus you suggested it. ;)
I made sure that I could pull weather first using the built in Weather function of xbmc before I tried it. However still everything is blank and I have to hit the X on the top of xbmc windowed because otherwise I have to do the old ALT + F4 in full screen.
rudeboyx
2009-01-23, 15:55
im having same issue on xbox. script not exiting. have to reboot xbox to exit.
unfortunately until t3ch releases a updated build it cant be tested with any other version on xbox unless someone else
out there is willing to merge and build for us. would do it myself but i dont have the means
Nuka1195
2009-01-23, 16:19
i believe there is a no asking for xbox binaries rule.
did you try the tagged version? pastebin a debug log.
rudeboyx
2009-01-23, 17:32
oops sorry:sniffle:
Ok, tried the tagged-1.2 version in the SVN and it works just fine
Windows well no dice on that still, but hey my windows machine is my test machine so at least I have it live on my Xbox still ;)
retrieverfalcon
2009-01-23, 19:11
Has anyone integrated this excellent script into the Mediastream skin? Either as a button on the normal windows screen or at least as a new listing on the right-hand blow-out of the weather entry on the home blade?
timdog82001
2009-01-23, 19:16
Has anyone integrated this excellent script into the Mediastream skin? Either as a button on the normal windows screen or at least as a new listing on the right-hand blow-out of the weather entry on the home blade?
well, I added a button for it in the weather window.
That's a nice idea. Thanx
Adding button right away.
retrieverfalcon
2009-01-23, 22:09
@timdog82001 Since I am a beginner at making any fundamental changes to an XBMC skin, can you point out how you added this button? I am comfortable editing XML files but I could use some pointers of where to look at the structure to use.
Add something like this to your keymap.xml
<weather>
<remote>
<info>XBMC.RunScript(Q:\scripts\TWC Supplemental\default.py)</info>
When your now in weather and press the info button TWC wil start.
You could just enable the extra button opposed to changing the skin.
Settings > Left column: Skin Settings > Scripts > Enable Quick Launch Script Button for Weather
Enable the button
Set button lable which I use "More Information"
Set Script path
That basically gives you a button in the weather screen you can click to bring you to TWC so you can still change the location fast from weather if your like me and switch to 3 different locations often. ;)
timdog82001
2009-01-24, 00:50
You could just enable the extra button opposed to changing the skin.
Settings > Left column: Skin Settings > Scripts > Enable Quick Launch Script Button for Weather
Enable the button
Set button lable which I use "More Information"
Set Script path
That basically gives you a button in the weather screen you can click to bring you to TWC so you can still change the location fast from weather if your like me and switch to 3 different locations often. ;)
That's in mediastream? I'm pretty sure that option wasn't there when i originally modified it for this but who knows.
retrieverfalcon
2009-01-24, 04:42
I just checked and the button settings mentioned by Kizer are included in the PM3.HD skin but no such option exists in Mediastream. The functionality however is along the lines of what I would like. The suggestion of using keymap.xml would work but won't add an on-screen visual clue and would require entries for keyboard and remote (I am running XBMC under Windows and still am working out the kinks of my remote setup so I still use keyboard control often). Anyone know how/what to modify in Mediastream to get this functionality to display?
I just checked and the button settings mentioned by Kizer are included in the PM3.HD skin but no such option exists in Mediastream. The functionality however is along the lines of what I would like. The suggestion of using keymap.xml would work but won't add an on-screen visual clue and would require entries for keyboard and remote (I am running XBMC under Windows and still am working out the kinks of my remote setup so I still use keyboard control often). Anyone know how/what to modify in Mediastream to get this functionality to display?
Windows.
Add to keymap.xml in <weather>
<keyboard>
<i>XBMC.RunScript(C:/Program Files/XBMC/scripts/TWC Supplemental/default.py)</i>
<keyboard>
If you press "i" on keyboard when your in weather and twc will start
timdog82001
2009-01-24, 13:48
I just checked and the button settings mentioned by Kizer are included in the PM3.HD skin but no such option exists in Mediastream. The functionality however is along the lines of what I would like. The suggestion of using keymap.xml would work but won't add an on-screen visual clue and would require entries for keyboard and remote (I am running XBMC under Windows and still am working out the kinks of my remote setup so I still use keyboard control often). Anyone know how/what to modify in Mediastream to get this functionality to display?
You'll want to modify MyWeather.xml. Basically, there should be two buttons, settings, and refresh iirc. Just copy and paste the image control of the one furthest to the right and then change the label to say "More" or "TWC Script" or "More Info" or whatever you want. Then, change the onclick to be XBMC.RunScript(Q:\scripts\TWC\default.py) (or whatever your path and the correct names are).
Now, look at the posx of the two original buttons and see how far to the right the second button is from the first one. Figure this out, and then change your new button to be the same distance to the right of the second button.
Now, change the button id number to something that isn't being used in that window. You're going to need to be able to navigate to it now, so change the <onright> contents of the now middle button to say the number of your new button, and do the same thing with the <onleft> of the leftmost button. Now, change the <onleft> of the new button to go to the ID of the middle button...and the <onright> to the id of the leftmost button.
This probably sounds pretty confusing, but it should make sense once you look at the code
timdog82001 Thanx again works perfect.
timdog82001
2009-01-24, 21:21
No problem. Also, it just occurred to me you'll need to account for the arrows that toggle the weather location as well
retrieverfalcon
2009-01-26, 02:17
Thanks. Those instructions were exactly what I needed and I now have the button functioning exactly as I would like.
nicoli_k
2009-01-26, 21:09
The t3ch build from jan 25, 2009 fixes the problem the xbox had with not being able to exit the script. The back button once again exits the script instead of having to resort to restarting the xbox. Thanks again for the great plugin. It's very useful this time of year especially.
SlaveUnit
2009-02-19, 04:15
Heya Nuka1195,
I have run a search on weather channel fade and it didnt come up with anything. I was wondering if there was an issue with the newer SVNs. Currently I am running version 17788 and the fade level does not seem to adjust anything in the settings tab once a background is shown. I am running the SVN version of mediastream and have tried the 1.00 version to make sure it wasnt something in the SVN of the skin. I am also running this with Timdogs "fanart" changing backgrounds. Any ideas on anything I can try? Thanks.
Nuka1195
2009-02-20, 18:46
[TWC Supplemental]
-changed: version -> 1.5.0
-added: more maps and two more map lists
-added: settings for map categories
-changed: English language strings
-changed: removed weekend alerts, they were ads
-changed: default skin
updated
http://img16.imageshack.us/img16/9088/mapviewkw4.png (http://imageshack.us)
http://img16.imageshack.us/img16/mapviewkw4.png/1/w1024.png (http://g.imageshack.us/img16/mapviewkw4.png/1/)
http://img403.imageshack.us/img403/1893/settingsog3.png (http://imageshack.us)
http://img403.imageshack.us/img403/settingsog3.png/1/w1024.png (http://g.imageshack.us/img403/settingsog3.png/1/)
Nuka1195
2009-02-20, 18:48
the fade level changes for me, just not instant.
SlaveUnit
2009-02-20, 19:13
Yeah does now. I updated to SVN17890. It must be relevant to some changes made in the the SVNs as of a couple days ago. Maybe having something to do with this?
http://xbmc.org/forum/showthread.php?p=285720#post285720
Either way it works again. Thanks. Now if I can only get my home screen to change correctly again with Mediastream SVN :)
SlaveUnit
2009-02-20, 19:20
Love the new features in the update as well!! The business travel stuff is pretty cool especially.
I have just installed this for the first time using the repo installer and the script does not seem to be responding. It will launch, but comes up with blank feature and just says it is fetching forecast.
I am using the t3ch release from 1-25 and I know it is not my connect becuase amt trailers still works and my network is ok.
Any suggestions would be most helpful. Thanks.
Nuka1195
2009-03-04, 14:48
yes pastebin a debug log.
Just to say this script is more and more beautiful each time!
Thanks a lot!!!
I installed in updated version of the script and it seemed to fix the issue. The only thing I am noticing now is when I point it to my weather fanart folder it will do two images in a row correctly and then go to a black screen.
I am going to resize all the images to see if that take care of it before considering it a bug.
rudeboyx
2009-03-04, 21:37
when trying to switch to United Kingdom satellite under- World (Europe) nothing happens and you cant exit script without rebooting xbox.
T3CH 03-04 rev18221
TWC version 1.5.1
also fanart cycle seems to fast (constantly creating navigation lag)
Nuka1195
2009-03-04, 22:00
debug log
Nuka1195
2009-03-04, 22:05
united kinhdom satellite works here. about the ganart not showing. on xbox it's a memory issue probable. about switching too fast, maybe, but it certainly doesn't affect navigation.
this is on windows and xbox and osx use to work, haven't updated osx in a while.
Hi, Nuka1195.
Did update the dutch language string.xml
Here you go and thanks for the updates lately.
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<strings>
<string id="0">The Weather Channel - Supplemental</string>
<string id="1">xbmc media center</string>
<string id="2">Waffa</string>
<string id="10">Laden...</string>
<string id="50">DISPLAY: Bekijk Kaart in volledig scherm</string>
<string id="51">CONTEXT: Stel huidige kaart in als standaard weergave</string>
<string id="52">MENU: Verlaat script</string>
<string id="53">CONTEXT: Stel 36 uur vooruitzicht in als standaard weergave</string>
<string id="54">CONTEXT: Stel uur per uur vooruitzicht in als standaard weergave</string>
<string id="55">CONTEXT: Stel weekend vooruitzicht in als standaard weergave</string>
<string id="56">CONTEXT: Stel 10 dagen vooruitzicht in als standaard weergave</string>
<string id="57">CONTEXT: Stel weer waarschuwing in als standaard weergave</string>
<string id="100">Kaarten ophalen...</string>
<string id="101">36 uur vooruitzicht ophalen...</string>
<string id="102">Uur per uur vooruitzicht ophalen...</string>
<string id="103">Weekend vooruitzicht ophalen...</string>
<string id="104">10 dagen vooruitzicht ophalen...</string>
<string id="200">Kaarten</string>
<string id="201">36 Uur</string>
<string id="202">Uur per uur</string>
<string id="203">Weekend</string>
<string id="204">10-Dagen</string>
<string id="205">Instellingen</string>
<string id="206">Waarschuwingen</string>
<string id="2060">Waarschuwing</string>
<string id="300">Details</string>
<string id="301">Outlook</string>
<string id="302">Video</string>
<!-- Settings strings -->
<string id="400">Toon geanimeerde kaarten</string>
<string id="401">Gebruik metrische eenheden</string>
<string id="402">Open weer-waarschuwing tab als standaard</string>
<string id="403">Map Lijst #1 categorie</string>
<string id="404">Map Lijst #2 categorie</string>
<string id="405">Map Lijst #3 categorie</string>
<string id="406">Weer fanart locatie</string>
<string id="407">- Gebruik Weer condition</string>
<string id="408">- Fade-niveau</string>
<string id="450">Choose map category</string>
<string id="600">Versie</string>
<string id="601">Auteur</string>
<string id="602">Taal door</string>
<string id="603">Standaard weergave</string>
</strings>
Nuka1195
2009-03-08, 17:01
thanks
lewis.donofrio
2009-03-08, 17:03
how would I go about replaceing the default weather from the main screen xbmc with this script?
You can make an extra button that opens TWC
See this post. http://xbmc.org/forum/showthread.php?p=274250#post274250
Or/and make a shortcut with your remote.
See this post. http://xbmc.org/forum/showthread.php?p=274244#post274244
Nuka1195
2009-03-13, 16:19
anybody use this with the weather fanart pack?
i'm noticing flashing when the images change. i want to know if this is on my end or an xbmc issue, before i create a trac.
last time it was on my end, but now i can not build without this issue.
about using this in place of the default weather. i have something in the works, but needs a patch to xbmc to work fully. stay tuned.
edit: it's only noticeable when you turn the fade level down.
same problem with video info?
http://xbmc.org/trac/changeset/18470
Nuka1195
2009-03-13, 17:01
maybe, but jmarshalls fix didn't fix my issue.
edit: not ecery image does this. so it may be switching between two different resolution or color depth images that is causing this.
i will get a few images that do this and submit a trac.
ydatografida
2009-04-12, 23:51
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<strings>
<string id="0">The Weather Channel - Συμπληρωματικά στοιχεία καιρού</string>
<string id="1">xbmc media center</string>
<!-- language strings credit -->
<string id="2">Ydatografida</string>
<string id="10">Φόρτωση...</string>
<string id="50">DISPLAY: εναλλαγή χάρτη σε πλήρη οθόνη</string>
<string id="51">CONTEXT: ορισμός του παρόντος χάρτη ως προεπιλεγμένη προβολή</string>
<string id="52">MENU: έξοδος από το script</string>
<string id="53">CONTEXT: ορισμός της τριάντα εξάωρης πρόγνωσης ως προεπιλεγμένη προβολή</string>
<string id="54">CONTEXT: ορισμός της ωριαίας πρόγνωσης ως προεπιλεγμένη προβολή</string>
<string id="55">CONTEXT: ορισμός της πρόγνωσης σαββατοκύριακου ως προεπιλεγμένη προβολή</string>
<string id="56">CONTEXT: ορισμός της δεκαήμερης πρόγνωσης ως προεπιλεγμένη προβολή</string>
<string id="57">CONTEXT: ορισμός των προειδοποιήσεων καιρού ως προεπιλεγμένη προβολή</string>
<string id="100">Ανάκτηση χαρτών πρόγνωσης...</string>
<string id="101">Ανάκτηση τριάντα εξάωρης πρόγνωσης...</string>
<string id="102">Ανάκτηση ωριαίας πρόγνωσης...</string>
<string id="103">Ανάκτηση πρόγνωσης σαββατοκύριακου...</string>
<string id="104">Ανάκτηση δεκαήμερης πρόγνωσης...</string>
<string id="200">Χάρτες</string>
<string id="201">36ωρη πρόγνωση</string>
<string id="202">Ωριαία πρόγνωση</string>
<string id="203">Σαββατοκύριακο</string>
<string id="204">Δεκαήμερη πρόγνωση</string>
<string id="205">Ρυθμίσεις</string>
<string id="206">Προειδοποιήσεις</string>
<string id="2060">Προειδοποίηση</string>
<string id="300">Λεπτομέρειες</string>
<string id="301">Πρόβλεψη</string>
<string id="302">Βίντεο</string>
<!-- Settings strings -->
<string id="400">Ενεργοποίηση κίνησης χαρτών</string>
<string id="401">Χρήση μονάδων μετρικού συστήματος</string>
<string id="402">Εξ ορισμού εμφάνιση της καρτέλας προειδοποιήσεων</string>
<string id="403">Κατηγορία χαρτών 1ης καρτέλας</string>
<string id="404">Κατηγορία χαρτών 2ης καρτέλας</string>
<string id="405">Κατηγορία χαρτών 3ης καρτέλας</string>
<string id="406">Διαδρομή των fanart καιρού</string>
<string id="407">- Χρήση συνθήκης καιρού</string>
<string id="408">- Επίπεδο εξασθένησης</string>
<string id="450">Επιλογή κατηγορίας χάρτη</string>
<string id="600">Έκδοση</string>
<string id="601">Συγγραφέας</string>
<string id="602">Μεταφραστής</string>
<string id="603">Προεπιλεγμένη προβολή</string>
</strings>
Hi there,
Anyone else getting corrupted layout for temperatures on the 10 day preview?
This happens using Celsius...
Cheers,
J
Nuka1195
2009-04-13, 17:18
[TWC Supplemental]
-changed: version - 1.5.5
-fixed: 10 day forecast high temp(why did it ever work)
-fixed: weekend forecast
-added: Greek language strings, thanks to Ydatografida
@Ydatografida, thanks for the strings
rwparris2
2009-05-02, 13:07
In whatever skin you're using, you could point the weather button/item to this script instead of where it normally points to.
If you need help post what skin you're using and I'll tell what to change in the xml.
Edit -- or better yet PM me or I'll forget to look here.
As requested, for PM3.HD open Home.xml in xbmc/skin/PM3.HD/720p, then search for "Weather Push Button".
Under that change line 696 from
<onclick>ActivateWindow(Weather)</onclick>to
<onclick>RunScript(C:\Documents and Settings\rwparris2\Application Data\XBMC\scripts\TWC Supplemental\default.py)</onclick>Obviously you'll need to substitute that path to fit your system.
ThickHead
2009-06-27, 23:29
Hello,
First let me say that this is my most used script, so Thank You Nuka1195! I was wondering if you would consider adding the "local interactive maps" from weather.com to the list of map choices? The classic maps for my locale are too wide of a range. The interactive maps even have a new "future" selection that makes them perfect for seeing storms coming.
Thanks!
Nuka1195
2009-06-28, 00:43
i don't beleive it's possible.
Is there a way to increase the font size within the script? I scanned this thread, but didn't see anything.
or is the font size tied to the skin in which it's invoked? (currently using in jezz_x's mediastream_redux)
edit: Nevermind, went poking around the skin directory within the script's folder and replaced the instances of 'font10' with 'font12' and voila! it became readable at distance again.
I got a problem with Metric Units and Values shown If you turn on Metric Units it still shows imperial "Fanrenheit" in the 36 hour forcast and the weekend Outlook sections
See Image (red circles)
http://img441.imageshack.us/img441/8057/screenshot023.jpg
Nuka1195
2009-07-23, 18:02
weather.com doesn't localise those.
the "plugin" (which skins almost the same) does do more, but i haven't figured a good way to handle those. converting "low 60s" would be what in celcius?
Well my guess is 60's and 40s are just 60 degree and 40 degree in fahrenheit
so according to google 60 degrees Fahrenheit = 15.5555556 degrees Celsius
so I guess highs in the low 10s :\
Nuka1195
2009-07-26, 02:45
Yeah i know how to convert. the problem is/was if it's low 60s, then is it 60 or 63, same with mid or high.
this is how i did it, if someone has a better way, please post.
this is only available in the plugin as this script is depreciated and does not have these localized functions. what weather.com returns is what i use.
skinning the plugin isn't much different and an easy check to see if the plugin is available is !IsEmpty(Weather.Plugin) i think is what it is.
def _normalize_outlook( outlook ):
# if we're debugging xbmc module is not available
tid = "F"
sid = "mph"
if ( not DEBUG ):
tid = xbmc.getRegion( id="tempunit" )[ -1 ]
sid = xbmc.getRegion( id="speedunit" )
# enumerate thru and localize values
for count, tmp_outlook in enumerate( outlook ):
# calculate the localized temp if C is required
temps = re.findall( "[0-9]+F", tmp_outlook )
for temp in temps:
tmp_outlook = re.sub( temp, _localize_unit( temp ) + tid, tmp_outlook, 1 )
# calculate the localized temp ranges if C is required
temps = re.findall( "[low|mid|high]+ [0-9]+s", tmp_outlook )
add = { "l": 3, "m": 6, "h": 9 }
for temp in temps:
new_temp = _localize_unit( str( int( re.findall( "[0-9]+", temp )[ 0 ] ) + add.get( temp[ 0 ], 3 ) ) )
temp_int = int( float( new_temp ) / 10 ) * 10
temp_rem = int( float( new_temp ) % 10 )
temp_text = ( "low %ds", "mid %ds", "high %ds", )[ ( temp_rem >= 4 ) + ( temp_rem >= 6 ) ]
tmp_outlook = re.sub( temp, temp_text % ( temp_int, ), tmp_outlook, 1 )
# calculate the localized wind if C is required
winds = re.findall( "[0-9]+ to [0-9]+ mph", tmp_outlook )
for wind in winds:
speeds = re.findall( "[0-9]+", wind )
for speed in speeds:
wind = re.sub( speed, _localize_unit( speed, "speed" ).split( " " )[ 0 ], wind, 1 )
tmp_outlook = re.sub( "[0-9]+ to [0-9]+ mph", wind.replace( "mph", sid ), tmp_outlook, 1 )
# add our text back to the main variable
outlook[ count ] = tmp_outlook
# return normalized text
return outlook
def _localize_unit( value, unit="temp" ):
# replace any invalid characters
value = value.replace( chr(176), "" ).replace( "°", "" ).replace( "F", "" )
# do not convert invalid values
if ( not value or value.startswith( "N/A" ) ):
return value
# time conversion
if ( unit == "time" ):
# set default time
time = value
# set our default temp unit
id = "h:mm:ss xx"
# if we're debugging xbmc module is not available
if ( not DEBUG ):
id = xbmc.getRegion( id="time" )
if ( id == "h:mm:ss xx" ):
return time
# 24 hour ?
if ( id.startswith( "H" ) ):
hour = int( value.split( ":" )[ 0 ] ) + ( 12 * ( value.split( " " )[ 1 ] == "PM" ) )
time = "%d:%s" % ( hour, value.split( " " )[ 0 ].split( ":" )[ 1 ], )
if ( id.split( " " )[ -1 ] == "xx" ):
time = "%s %s" % ( time, value.split( " " )[ 1 ], )
return time
else:
# we need an float
value = float( value.replace( chr(176), "" ).replace( "°", "" ).replace( "F", "" ).replace( "mph", "" ).replace( "in.", "" ) )
# temp conversion
if ( unit == "temp" or unit == "tempdiff" ):
# set our default temp unit
id = "F"
# if we're debugging xbmc module is not available
if ( not DEBUG ):
id = xbmc.getRegion( id="tempunit" )[ -1 ]
# calculate the localized temp if C is required
if ( id == "C" ):
# C/F difference or temperature conversion
if ( unit == "tempdiff" ):
# 9 degrees of F equal 5 degrees of C
value = round( float( 5 * value ) / 9 )
else:
# convert to celcius
value = round( ( value - 32 ) * ( float( 5 ) / 9 ) )
# get our sign, only + is needed for tempdiff
sign = ( "", "+", )[ value >= 0 and unit == "tempdiff" ]
# return localized temp
return sign + str( int( value ) )
# speed conversion
elif ( unit == "speed" ):
# set our default temp unit
id = "mph"
# if we're debugging xbmc module is not available
if ( not DEBUG ):
id = xbmc.getRegion( id="speedunit" )
# calculate the localized speed
if ( id == "km/h" ):
value = round( value * 1.609344 )
elif ( id == "m/s" ):
value = round( value * 0.45 )
elif ( id == "ft/min" ):
value = round( value * 88 )
elif ( id == "ft/s" ):
value = round( value * 1.47 )
elif ( id == "yard/s" ):
value = round( value * 0.4883 )
# return localized speed
return "%d %s" % ( int( value ), id, )
# length conversion
elif ( unit == "length" ):
# set our default length unit
id = "in."
# if we're debugging xbmc module is not available
if ( not DEBUG ):
id = ( "in.", "cm", )[ xbmc.getRegion( id="tempunit" )[ -1 ] == "C" ]
# calculate the localized length
if ( id == "cm" ):
value = float( value * 2.54 )
# return localized length
return "%.2f%s" % ( value, id, )
I can't get this to integrate into pm3.hd I can go to scripts and open it and check the weather and everything, but I'm not getting the fancier looking weather details on my home page like everyone is showing and bragging about?? Please help.
I'm on an xbox, most current svn build, installer, etc.
Thanks