OpenSprinkler › Forums › Hardware Questions › OpenSprinkler Pi (OSPi) › interval program problem: gv.lg = gv.sd[‘lg’] › Re: Re: interval program problem: gv.lg = gv.sd[‘lg’]
Dan in CA
It looks like the sd.json file in the OSPi/data directory is missing a couple of logging related keys. If you saved your setting by backing up and then restoring the files in the data directory, or just replaced the ospi.py file that could cause this problem 😳
You should be able for fix the problem by editing the sd.json file. It is just a text file. Add the following:
, “lg”: “”, “lr”: “100”
just before the final curly brace , }
You could also just replace the file with the the one from the update but you will loose some of your settings.
In the July 21st update of the ospi.py file I added some error checking which should have eliminated the error.
Dan