Fixed typo in the variable name

This was causing the file not to be written.
Merge branch 'feature/weather_sunrise_sunset'