Working with localstorage

Working with local storage but dies when I enable storage for sunrise, sunset, location