added weekly funcion to temp mesuare