gets weather code