Fix unit test.
Update .gitignore.
Add backwards-compatible rain_level value.