optimize weather configuration