PDA

View Full Version : Weather On Xbmc...


Brazilian
2004-04-04, 14:48
hello guys,

i'm trying to place my city code on xboxmediacenter.xml, but i still no finding it...
i got the newest one (abril 1/2004) from bt...
the code i want to place is brxx0033 from belo horizonte, brasil.
could you tell me what to do ?
there's no weather tag... :unsure:
<xboxmediacenter>

<!-- when using xbmc as dashboard, define home directory here !-->
<!-- and copy the xbe with this config file to c:\ !-->
<home>-</home>

<!-- network settings for ip,netmask,default gateway, nameserver !-->
<!-- option 1: leave empty to use the current settings (from evox, avalaunch or other dashboard) !-->
<!-- option 2: fill in the ipadres,netmask etc and xbmc will configure xbox to use it-->
<!-- option 3: fill in dhcp as ip and xbmc will use dhcp to configure (so <ip>dhcp</ip> ) -->
<ipadres>-</ipadres>
<netmask>-</netmask>
<defaultgateway>-</defaultgateway>
<nameserver>-</nameserver>

<cddbipaddress>194.97.4.18</cddbipaddress>

<!-- determines which drives 2 use. change this for lba48 !-->
<usefdrive>yes</usefdrive>
<usegdrive>no</usegdrive>

<!-- fill in the http proxy values below if you're using an http proxy to connect to the internet !-->
<httpproxy>-</httpproxy>
<httpproxyport>-</httpproxyport>

<!-- remote timeserver used to set the xbox time/date!-->
<timeserver>time.windows.com</timeserver>

<!-- dashboard 2 launch when exiting xbmc!-->
<dashboard>c:\evoxdash.xbe</dashboard>


<!-- fill in path&filename of external dvd player-->
<!-- if empty, xbmc will play any dvd's by itself-->
<dvdplayer></dvdplayer>

<!-- alternate subtitle directory. if subtitle cant be found in same directory !-->
<!-- as the movie it will look here: !-->
<subtitles>$home\subtitles</subtitles>


<!-- startup window !-->
<startwindow>0</startwindow>

<!-- file extensions for pictures,music and videos !-->
<pictureextensions>.png|.jpg|.jpeg|.bmp|.gif|.ico|.tif|.tiff|.tga|.pc x</pictureextensions>
<musicextensions>.m4a|.flac|.aac|.strm|.pls|.rm|.mpa|.wav|.wma|.ogg |.mp3|.mp2|.m3u|.mod|.amf|.669|.dmf|.dsm|.far|.gdm |.imf|.it|.m15|.med|.okt|.s3m|.stm|.sfx|.ult|.uni| .xm|.sid</musicextensions>
<videoextensions>.ty|.nfo|.strm|.rm|.m3u|.ifo|.mov|.qt|.divx|.xvid| .bivx|.vob|.img|.iso|.pva|.wmv|.asf|.asx|.ogm|.m2v |.avi|.bin|.dat|.mpg|.mpeg|.mp4|.mkv|.avc|.vp3|.sv q3|.nuv|.viv|.dv|.fli</videoextensions>

<!-- path where xbmc should store its thumbnails !-->
<thumbnails>$home\thumbs</thumbnails>

<!-- path where xbmc should store its shortcuts !-->
<shortcuts>$home\shortcuts</shortcuts>

<!-- path where xbmc should store the music albums cache !-->
<albums>$home\albums</albums>

<!-- path where shoutcast rips/recordings are stored !-->
<recordings>$home\recordings</recordings>

<!-- path where screenshots are stored !-->
<screenshots>$home\screenshots</screenshots>

<!-- move & repeat delays for controller and remote (values are in msec) !-->
<delays>
<remote>
<move>220</move>
<repeat>300</repeat>
</remote>
<controller>
<move>220</move>
<repeat>220</repeat>
</controller>
</delays>

<!-- remote debug info. displays the remote code with each button press !-->
<!-- useful to see if xbmc reads extra buttons on your universal remote !-->
<!-- these remote codes can be placed in keymap.xml to give you more button options !-->
<displayremotecodes>false</displayremotecodes>

<!-- this section allows you to overwrite/specify the icons shown !-->
<!-- for specific file types !-->
<filetypeicons>
<xbe>defaultprogram.png</xbe>
</filetypeicons>

<!-- my programs bookmarks !-->
<myprograms>
<default>q:\shortcuts</default>
<bookmark>
<name>c drive</name>
<path>c:\</path>
</bookmark>
<bookmark>
<name>e drive</name>
<path>e:\</path>
</bookmark>
<bookmark>
<name>f drive</name>
<path>f:\</path>
</bookmark>
<bookmark>
<name>dvd</name>
<path>d:\</path>
</bookmark>
</myprograms>


<!-- my pictures shares !-->
<pictures>
<default></default>
<bookmark>
<name>c drive</name>
<path>c:\</path>
</bookmark>
<bookmark>
<name>e drive</name>
<path>e:\</path>
</bookmark>
<bookmark>
<name>f drive</name>
<path>f:\</path>
</bookmark>
<bookmark>
<name>dvd</name>
<path>d:\</path>
</bookmark>
<!-- expert setting: uncomment for seperate iso and udf share !-->
<!-- comment out the bookmark named dvd to disable dvd autodetect !-->
<!-- for my pictures !-->
<!-- <bookmark> !-->
<!-- <name>iso</name> !-->
<!-- <path>iso9660://</path> !-->
<!-- </bookmark> !-->
<!-- <bookmark> !-->
<!-- <name>udf</name> !-->
<!-- <path>udf:</path> !-->
<!-- </bookmark> !-->
<bookmark>
<name>xns</name>
<path>xns://192.168.0.1:1400/</path>
</bookmark>
<bookmark>
<name>xbms</name>
<path>xbms://192.168.0.1:1400/</path>
</bookmark>
<bookmark>
<name>smb</name>
<!-- you can use the following formats: !-->
<!-- smb://domain;user:password@ip/share/directory/ !-->
<!-- smb://user:password@ip/share/ !-->
<!-- if guest/public access is enabled: !-->
<!-- smb://ip/ !-->
<path>smb://domain;username:pwd@mywindowsserver/movies/</path>
</bookmark>
</pictures>

<!-- my files shares !-->
<files>
<bookmark>
<name>c drive</name>
<path>c:\</path>
</bookmark>
<bookmark>
<name>e drive</name>
<path>e:\</path>
</bookmark>
<bookmark>
<name>f drive</name>
<path>f:\</path>
</bookmark>
<bookmark>
<name>q drive</name>
<path>q:\</path>
</bookmark>
<bookmark>
<name>dvd</name>
<path>d:\</path>
</bookmark>
<!-- expert setting: uncomment for seperate iso and udf share !-->
<!-- comment out the bookmark named dvd to disable dvd autodetect !-->
<!-- for my files !-->
<!-- <bookmark> !-->
<!-- <name>iso</name> !-->
<!-- <path>iso9660://</path> !-->
<!-- </bookmark> !-->
<!-- <bookmark> !-->
<!-- <name>udf</name> !-->
<!-- <path>udf:</path> !-->
<!-- </bookmark> !-->
<bookmark>
<name>xns</name>
<path>xns://192.168.0.1:1400/</path>
</bookmark>
<bookmark>
<name>xbms</name>
<path>xbms://192.168.0.1:1400/</path>
</bookmark>
<bookmark>
<name>smb</name>
<!-- you can use the following formats: !-->
<!-- smb://domain;user:password@ip/share/directory/ !-->
<!-- smb://user:password@ip/share/ !-->
<!-- if guest/public access is enabled: !-->
<!-- smb://ip/ !-->
<path>smb://domain;username:pwd@mywindowsserver/movies/</path>
</bookmark>
</files>


<!-- my music shares !-->
<music>
<default></default>
<bookmark>
<name>c drive</name>
<path>c:\</path>
</bookmark>
<bookmark>
<name>e drive</name>
<path>e:\</path>
</bookmark>
<bookmark>
<name>f drive</name>
<path>f:\</path>
</bookmark>
<bookmark>
<name>dvd</name>
<path>d:\</path>
</bookmark>
<!-- expert setting: uncomment for seperate iso and udf cdda share !-->
<!-- comment out the bookmark named dvd to disable dvd autodetect !-->
<!-- for my music !-->
<!-- <bookmark> !-->
<!-- <name>iso</name> !-->
<!-- <path>iso9660://</path> !-->
<!-- </bookmark> !-->
<!-- <bookmark> !-->
<!-- <name>udf</name> !-->
<!-- <path>udf:</path> !-->
<!-- </bookmark> !-->
<!-- <bookmark> !-->
<!-- <name>cdda</name> !-->
<!-- <path>cdda:</path> !-->
<!-- </bookmark> !-->
<bookmark>
<name>xns</name>
<path>xns://192.168.0.1:1400/</path>
</bookmark>
<bookmark>
<name>ms soundtrack</name>
<path>soundtrack://</path>
</bookmark>
<bookmark>
<name>xbms</name>
<path>xbms://192.168.0.1:1400/</path>
</bookmark>
<bookmark>
<name>smb</name>
<!-- you can use the following formats: !-->
<!-- smb://domain;user:password@ip/share/directory/ !-->
<!-- smb://user:password@ip/share/ !-->
<!-- if guest/public access is enabled: !-->
<!-- smb://ip/ !-->
<path>smb://domain;username:pwd@mywindowsserver/movies/</path>
</bookmark>
</music>


<!-- my video shares !-->
<video>
<default></default>
<bookmark>
<name>e drive</name>
<path>e:\</path>
</bookmark>
<bookmark>
<name>f drive</name>
<path>f:\</path>
</bookmark>
<bookmark>
<name>dvd</name>
<path>d:\</path>
</bookmark>
<!-- expert setting: uncomment for seperate iso and udf share !-->
<!-- comment out the bookmark named dvd to disable dvd autodetect !-->
<!-- for my video !-->
<!-- <bookmark> !-->
<!-- <name>iso</name> !-->
<!-- <path>iso9660://</path> !-->
<!-- </bookmark> !-->
<!-- <bookmark> !-->
<!-- <name>udf</name> !-->
<!-- <path>udf:</path> !-->
<!-- </bookmark> !-->
<bookmark>
<name>xns</name>
<path>xns://192.168.0.1:1400/</path>
</bookmark>
<bookmark>
<name>xbms</name>
<path>xbms://192.168.0.1:1400/</path>
</bookmark>
<bookmark>
<name>smb</name>
<!-- you can use the following formats: !-->
<!-- smb://domain;user:password@ip/share/directory/ !-->
<!-- smb://user:password@ip/share/ !-->
<!-- if guest/public access is enabled: !-->
<!-- smb://ip/ !-->
<path>smb://domain;username:pwd@mywindowsserver/movies/</path>
</bookmark>
<bookmark>
<name>replaytv</name>
<path>rtv://*/</path>
</bookmark>
</video>
</xboxmediacenter>


thanks,
philipe

elupus
2004-04-04, 15:55
just go into settings and search for you city???

Anomaly
2004-04-05, 04:48
hmm i thought i already answered this but my post is gone. anyway, you have to add the section about weather in the.xml file. it's not there at the moment.

i am at work so i can't post the code from mine, but you can hunt around the forum and you are sure to find some. it is written about in the notes that come with the release anyway.

it starts with <weather>...

ent
2004-04-05, 12:15
you don't really, a way to change the default weather city is to search using the name of the city, not the code.

Anomaly
2004-04-05, 16:18
here you go. read the instructions next time. this is for tokyo.

<!-- get your area code from www.weather.com its the 4 character, 4 number bit after /local/ !-->
<!-- unitt is the units for temperature (f or c) units is the units for speed (k or m) !-->
<!-- refresh is the auto refresh time in minutes !-->
<weather>
<areacode>jaxx0085</areacode>
<unitt>c</unitt>
<units>k</units>
<refresh>20</refresh>
</weather>

Butcher
2004-04-05, 16:33
weather hasn't been in the xml file for nearly a month. you can put it there if you want, but xbmc will ignore it. anomaly, seems like you haven't read the instructions yourself.

to set your weather go to the weather settings section and enter your city name.

Anomaly
2004-04-06, 06:35
ouch, hey that's not entirely fair. it may have changed in the cvs but the last "release" (yeah yeah i know) has it in the .xml file..... i'm fairly sure as there have not been many this year...berhaps 2 or 3. not in the march one anyway.

it obviously still works in the .xml but i admit that if the most recent "release" has it in the settings then that would be much easier to use.

tslayer
2004-04-06, 07:39
umm.. weather is was not in xml file in 3-9 release if i am not mistaken.

it is in settings->weather.

the weather settings in gui was added in february. maybe you forgot to update your xml file and you still had it in there. but it has been in settings->weather since february:

http://cvs.sourceforge.net/viewcvs....her.cpp (http://cvs.sourceforge.net/viewcvs.py/xbmc/xbmc/xbmc/guiwindowsettingsweather.cpp)

ts

b01
2004-04-06, 10:01
xbmc released on 3-9-2004 does not require you to put the weather information in the xml file. ask the developers if you dont believe. check your bt dl and make sure it is the most recent version of xbmc.

i have made a tutorial that tells you how to set it up, with pictures, in pdf format (right click to download).
xbmc weater tutorial (http://www.msu.edu/~shabazz3/mod_box/weather.pdf) http://www.xboxmediaplayer.de/forums/non-cgi/emoticons/tounge.gif

b01
2004-04-06, 10:14
dang! did he have to post his entire xml file?! :(

Anomaly
2004-04-06, 15:20
ok... my bad. i didn't pick up the change.