Set key, hour and temp variables.