config migration for receiver_gps

This commit is contained in:
Jakob Ketterl
2020-03-29 18:08:26 +02:00
parent 2b7d6738f1
commit fd9e913a49
7 changed files with 45 additions and 11 deletions

View File

@ -135,7 +135,8 @@ class DaylightSchedule(TimerangeSchedule):
def getSunTimes(self, date):
pm = Config.get()
lat, lng = pm["receiver_gps"]
lat = pm["receiver_gps"]["lat"]
lng = pm["receiver_gps"]["lon"]
degtorad = math.pi / 180
radtodeg = 180 / math.pi