# File lib/msg-chumby-daemon/http-xml-server.rb, line 38 def process(request, response) response.start(200) do |head,out| head["Content-Type"] = "text/xml" reading=(@reading_cache.last_reading()) reading = Flukso::UTCReading.new(Time.now.to_i, 0.0) if reading==nil; time=Time.at(reading.utc_timestamp); current_reading= {'time' => [ time.strftime("%H:%M:%S")], 'reading' => [reading.value]}; out.write(XmlSimple.xml_out( current_reading,{'RootName' => "current_reading"})); end end