"My Weather"

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Closed
OuTBiT Offline
Junior Member
Posts: 13
Joined: Oct 2003
Reputation: 0
Post: #1
display the local weather.
i've seen this with the myhtpc program, it looks
very nice

outbit

[Image: small_weather.jpg]
find
mknight Offline
Senior Member
Posts: 166
Joined: Oct 2003
Reputation: 0
Post: #2
i had suggested this in xbmp, and i would still love to see it in xbmc, but i don't think anyone else had much interest in it.

http://sourceforge.net/tracker....d=64793

but weather.com does have an xml interface in to their database, and publishes their interface at

http://www.weather.com/services/oap.html?
from=servicesindex

you just sign up and get a free licence code from them. you can also download their sdk at http://download.weather.com/web/xml/sdk.zip which includes a short pdf on how to use the xml feed as well as all the graphics for various weather conditions.
find
jcee Offline
Member
Posts: 61
Joined: Oct 2003
Reputation: 0
Star    Post: #3
i would love this one too
find
IndieRockSteve Offline
Senior Member
Posts: 195
Joined: Oct 2003
Reputation: 0
Post: #4
this would rock the casbah!

especially if you could have it display the detailed info you can view when you go to their webpage so you could see an hourly breakdown of the weather.
it would also be cool if you could set a default zip code but still be able to check weather in other zipcodes (using the keyboard interface to input it).
find
poing Offline
Member
Posts: 72
Joined: Oct 2003
Reputation: 0
Post: #5
i think this would be pointless bloat, it has nothing to do with xbmc's purpose of playing media.

read the xbmc online-manual, faq and search the forums before posting! do not e-mail the xbmc-team asking for support!
read/follow the forum rules! note! team-xbmc never have and never will host or distribute ms-xdk binaries/executables!
find
ktd Offline
Senior Member
Posts: 267
Joined: Nov 2003
Reputation: 0
Post: #6
(poing @ nov. 23 2003,20:02 Wrote:i think this would be pointless bloat, it has nothing to do with xbmc's purpose of playing media.
hmm. it kind of have as much to do with it as a tvguide since you cant watch tv on the box...

a weather guide can show us if we should sit and play/watch movies or go outside in the sun without having to look outside... Wink
find
IndieRockSteve Offline
Senior Member
Posts: 195
Joined: Oct 2003
Reputation: 0
Post: #7
also, xbmc/xbmp can act as a dashboard, which means i turn on my stereo switch over to the already running xbox, select "weather" and i can see what the weather will be like today and whether i should bother taking my raincoat/umbrella, or if its shorts and sandals weather, etc.

it would also be neat if it could get the surfing conditions so i know if i should get up early the next morning to go surfing. the same could be said for skiers and snow.

so while it doesn't meet with the "media player" side of things, xbmc is a media "center" and also a dashboard. so anything useful like this should be added if the developers/a developer like the idea.
find
lixer Offline
Junior Member
Posts: 38
Joined: Jan 2004
Reputation: 0
Post: #8
i think you have a great idea. i would love to see somthing similar to that. if python matures enough, it wouldn't be too hard to do. hmmm now i need to start looking into python. only thing i don't like about python is that its neat freak Angry . but still powerful enough to do lot of these things.
find
XDX Offline
Junior Member
Posts: 7
Joined: Jan 2004
Reputation: 0
Star    Post: #9
thanks for the idea... i made a simple python script to download current weather conditions and display them on your screen.  the ui isn't great, but it works.
Quote:#display weather forecast on your xbox


########enter your zip code###########
zipcode = '94025'        


import sys, urllib, string, urlparse, re, xbmc, xbmcgui

#will parse out text between given tag
def parsexml( line, tag ):
   result= re.search('<' + tag + '>.*' + tag + '>', line, re.dotall)
   try:
       if result.group(0):
           mod = string.replace(result.group(0), '<' + tag + '>','')
           mod = string.replace(mod, '</' + tag + '>', '')
           mod = string.lstrip(mod)
           return mod
   except:
       return


url = 'http://www.rssweather.com/rss.php?config=&forecast=zandh&zipcode=' + zipcode + '&alt=rss20a'
data = urllib.urlopen(url)
currentline= data.read()
itemdivide= string.split(currentline, '<item>')
place= parsexml(itemdivide[0], 'title')

i=1
items= len(itemdivide)
dayforecast=[]
forecast=[]

while i < items:
   check=parsexml(itemdivide[i], 'category')
   if check=="current conditions":
       time=parsexml(itemdivide[i], 'pubdate')
       ctemp=parsexml(itemdivide[i], 'description')
   if check=="weather forecast":
       forecast.append(parsexml(itemdivide[i],'description'))
       dayforecast.append(parsexml(itemdivide[i], 'title'))
   i=i+1
   
# now we have all the parts we need so display to the user

dialog= xbmcgui.dialog()
dayforecast.insert(0, 'exit')
dayforecast.insert(0, 'current temperature: ' + ctemp)
dayforecast.insert(0, 'information from: ' + time)
selected= dialog.select(place, dayforecast)
if selected < 3:
   print 'quitting..'
else:
   dialog.ok(dayforecast[selected],forecast[selected-3])
                 
find
san Offline
Junior Member
Posts: 42
Joined: Jan 2004
Reputation: 0
Post: #10
there is something called superkaramba for unix flavored os-es. it allows tiny (scripted) programs make your desktop more beautifull by adding things like clocks, systeminfo and weatherinfo on your desktop.

i'm not a python guru but i use this "liquid weather ++" script for superkaramba on my freebsd machine and it works great. it displays the weather in you own location (it's configurable through a gui) and it lools very nice. i don't have the time or the python knowledge to pick this up but perhaps someone else will.

check this url for screenshots and the files:
http://www.kde-look.org/content/show.php?content=6384
find
Thread Closed