fix bugs of wrong temperature unit, add ampm