scripts/weather: refactor some, fix error output for now