commit weather function