TUTORIAL: Read weather from Yahoo! weather with PHP

  • thunderball
  • Born
  • Born
  • No Avatar
  • Joined: Oct 07, 2009
  • Posts: 2
  • Status: Offline

Post October 9th, 2009, 7:20 am

nevermind, i did not have php5 installed, it works :)
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post October 9th, 2009, 7:20 am

  • kpbca2000
  • Born
  • Born
  • No Avatar
  • Joined: Nov 15, 2009
  • Posts: 2
  • Status: Offline

Post November 15th, 2009, 11:03 am

Hello Sir your this php tutorial for xml parsing is really help full to me but can you tell me how can i get access and display the geo:lat and geo:long elements in <item> please reply as soon as possible because i am doing my MSc's dissertaion.
  • Bogey
  • Bogey
  • Genius
  • User avatar
  • Joined: Jul 14, 2005
  • Posts: 8212
  • Loc: USA
  • Status: Offline

Post November 15th, 2009, 12:16 pm

I'm pretty sure it's
Code: [ Select ]
channel->item->geo:lat
"Bring forth therefore fruits meet for repentance:" Matthew 3:8
  • kpbca2000
  • Born
  • Born
  • No Avatar
  • Joined: Nov 15, 2009
  • Posts: 2
  • Status: Offline

Post November 16th, 2009, 2:07 am

sorry to ask again but i managed any how to get data from geo:lat and geo:long now can any one tell me how can i get data of temp from <yweather:condition text="Mostly Cloudy" code="26" temp="57" date="Tue, 29 Nov 2005 3:56 pm PST"></yweather:condition> i am using DOMDocument() in php5.
  • Bogey
  • Bogey
  • Genius
  • User avatar
  • Joined: Jul 14, 2005
  • Posts: 8212
  • Loc: USA
  • Status: Offline

Post November 17th, 2009, 9:24 pm

I don't think my previous post was correct. If it was, than ignore this post, if it wasn't, then don't ignore this post :)

Code: [ Select ]
channel->item->geo['lat']


I did that before and I don't really remember how I did it. I'm not in the mood to test things right now though.
"Bring forth therefore fruits meet for repentance:" Matthew 3:8
  • ventage
  • Born
  • Born
  • No Avatar
  • Joined: Feb 16, 2011
  • Posts: 2
  • Status: Offline

Post February 16th, 2011, 5:14 pm

Hello,

Thank you for this useful tutorial. It's working perfect.

But is it possible to remove those:

Forecast:
Wed - Mostly Clear. High: 18 Low: 8
Thu - Sunny. High: 19 Low: 8

Full Forecast at Yahoo! Weather

(provided by The Weather Channel)

and use custom icons for it?

Thank you for your time and waiting for response.
  • ventage
  • Born
  • Born
  • No Avatar
  • Joined: Feb 16, 2011
  • Posts: 2
  • Status: Offline

Post February 23rd, 2011, 6:18 pm

Ok i find the way to hiding those texts but can please someone could tell me how to use custom icons.

Thanks.

Post Information

  • Total Posts in this topic: 22 posts
  • Moderator: Tutorial Writers
  • Users browsing this forum: No registered users and 2 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.