def current_reading(doc)
      reading = {}

      xpath = "//table/caption[@class='titleDataHeader']["
      xpath += "contains(text(),'Conditions')"
      xpath += " and "
      xpath += "not(contains(text(),'Solar Radiation'))"
      xpath += "]"

      # Get the reading timestamp
      source_updated_at = reading_timestamp(doc, xpath)
      reading[:source_updated_at] = source_updated_at

      # Get the reading data
      xpath += "/../tr"
      elements = doc.xpath xpath

      unless elements.empty?
        elements.each do |element|
          r = scrape_condition_from_element(element)
          reading.merge! r unless r.empty?
        end
      end

      reading
    end
def current_reading(doc)
      reading = {}

      xpath = "//table/caption[@class='titleDataHeader']["
      xpath += "contains(text(),'Conditions')"
      xpath += " and "
      xpath += "not(contains(text(),'Solar Radiation'))"
      xpath += "]"

      # Get the reading timestamp
      source_updated_at = reading_timestamp(doc, xpath)
      reading[:source_updated_at] = source_updated_at

      # Get the reading data
      xpath += "/../tr"
      elements = doc.xpath xpath

      unless elements.empty?
        elements.each do |element|
          r = scrape_condition_from_element(element)
          reading.merge! r unless r.empty?
        end
      end

      reading
    end
Reding from the 'Conditions at..as of..' table