tempC=float(vc.getObject("LastResult",""))

if 0 <= tempC <= 10:   
    vc.callAction("TTS.Speak","It is pretty cold. You might want a hat.", None)
    vc.callAction("OSD.ShowText","It is pretty cold.", None)

elif 10 <= tempC <= 19:   
    vc.callAction("TTS.Speak","It is chilly. You'll want a light jacket.", None)
    vc.callAction("OSD.ShowText","It is chilly out.", None)
    
elif 19 <= tempC < 30:   
    vc.callAction("TTS.Speak","It is perfect weather. You should find a patio and knock back a cold one.", None)
    vc.callAction("OSD.ShowText","It is perfect weather.", None)
    
else:
    vc.callAction("TTS.Speak","It is %s degrees Celsius"%tempC, None)
    vc.callAction("OSD.ShowText","It is %s degrees Celsius."%tempC, None)