moved code for weather station update