 
  # Valid json goes here and need to parse valid string
   def format_render_response(conn, %{response_body: a_body},  %{response_body: today_body} ) do
+    IO.puts a_body
     response = Poison.Parser.parse!(a_body)
-    IO.puts response["city"]["name"]
     conn
     |> assign(:w_data, response["list"])
     |> assign(:today, today_body)

  end

  def show_weather(conn, %{"city" => city}) do
  a_response = fetch(city)
  a_today = fetch_today(city)
  conn


  @api_token "9dbfcd557bbda142ce4ae277b5d24e3b"
  @weather_url_api "api.openweathermap.org/data/2.5/forecast/daily"
#  api.openweathermap.org/data/2.5/forecast/daily?q=London&mode=json&cnt=3&units=metric&appid=2de143494c0b295cca9337e1e96b00e0
  @weather_url_api_today "api.openweathermap.org/data/2.5/weather"
  @api_no_data_error  "{\"cod\":\"404\",\"message\":\"Error: Not found city\"}\n"
  @api_data_list  "{\"cod\":\"200\",\"list\": forecast_list }\n"
