add one missing ifdef to conditionally compile weather code