Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

added pops

  • Loading branch information...
commit 032d9dad13175add2b203957316499f9d1490848 1 parent 4bacfeb
Max Henstell authored October 05, 2012

Showing 1 changed file with 14 additions and 0 deletions. Show diff stats Hide diff stats

  1. 14  server/weather-script.py
14  server/weather-script.py
@@ -33,6 +33,20 @@
33 33
         for i in range(len(values)):
34 34
             lows[i] = int(values[i].firstChild.nodeValue)
35 35
 
  36
+pop = dom.getElementsByTagName('probability-of-precipitation')
  37
+for item in pop:
  38
+	values = item.getElementsByTagName('value')
  39
+	#for i in range(len(values)):
  40
+		#print values[i].firstChild.nodeValue
  41
+
  42
+
  43
+time_layout = dom.getElementsByTagName('time-layout')
  44
+for item in time_layout:
  45
+	values = item.getElementsByTagName('summarization')
  46
+	for i in range(len(values)):
  47
+		print values[i].firstChild.nodeValue
  48
+
  49
+
36 50
 # Parse icons
37 51
 xml_icons = dom.getElementsByTagName('icon-link')
38 52
 icons = [None]*4

0 notes on commit 032d9da

Please sign in to comment.
Something went wrong with that request. Please try again.