self.add_subview(wv)


if __name__ == '__main__':
    '''
  Query api for json outputs of current & extended
  weather & their respective reformatted outputs
  for use in scene.
  '''
    json_w, json_f, w, f = get_weather()

    # Format extended forecast & plot scene coordinates to display it
    txt_wrapped_f, icon_y, y1_y2 = format_plot_weather(f)

    # Current weather info for scene header
    city_name, temp_now, conditions = wa.get_scene_header(json_w)

    # Get icons & 24 hr weather data for scene
    the_icons, the_hours, the_temps, the_pops = wa.get_icons_24h_data(
        json_w, json_f, icon_path)

    # Check for any missing icons before scene runs
    check_icons(the_icons, icon_path)

    # Debug
    #for ys in y1_y2:
    #print ys
    #for ys in icon_y:
    #print ys
    #sys.exit()
    # If any are missing then download what icons are needed
    print('=' * 20)
    wa.download_weather_icons(path)

'''
Query api for json outputs of current & extended
weather & their respective reformatted outputs for
use in scene
'''
json_w, json_f, w, f = get_weather()

# Format extended forecast & plot scene coordinates to display it
txt_wrapped_f, icon_y, y1_y2 = format_plot_weather(f)

# Current weather info for scene header
city_name, temp_now, conditions = wa.get_scene_header(json_w)

# Get icons & 24 hr weather data for scene
the_icons, the_hours, the_temps, the_pops = wa.get_icons_24h_data(json_w, json_f, icon_path)

# Check for any missing icons before scene runs
check_icons(the_icons, icon_path)

# Debug
#for ys in y1_y2:
  #print ys
#for ys in icon_y:
  #print ys
#sys.exit()

class MyScene(scene.Scene):