def temperature(): data = get_stream.get_stream_data() #print(data) return template(""" <table> %for item in data: <tr> <td> {{item['kentid']}} </td> <td> {{item['collection_time']}} </td> <td> {{item['lat']}} </td> <td> {{item['lon']}} </td> <td> {{item['temperature']}} </td> <td> {{item['humidity']}} </td> </tr> %end </table> """, data=data)
def temperature(): data = get_stream.get_stream_data() print(data) return template(""" <table> %for item in data: <tr> <td> {{item['lat']}} </td> <td> {{item['lon']}} </td> <td> {{item['temperature']}} </td> <td> {{item['windspeed']}} </td> <td> {{item['humidity']}} </td> <td> {{item['clouds']}} </td> </tr> %end </table> """, data=data)
def index(): data = get_stream.get_stream_data() #print(data) return template(""" <b> An example weather server. </b> %for item in data: <b> {{item}} </b> """, data=data)
def calendar_chart(): data = get_stream.get_stream_data() return template("calendar_chart", data=data)
def example_map1(): data = get_stream.get_stream_data() return template("example_map1", data=data)
def graph1(): data = get_stream.get_stream_data() return template("project_graph", data=data)
def graph(): data = get_stream.get_stream_data() return template("scatter_graph", data=data)
def example_map(): data = get_stream.get_stream_data() #print (data) return template("ice_arena_map.tpl", data=data)