@arclance - I woke up this morning to old weather data; the python script stopped with an error about 5AM. When I ran the python manually, this is what I got:
Code:
no pull yet
3666.36041093
pulling data
backupUsed: False
pullFailure: False
pullFailure2: False
Traceback (most recent call last):
File "/usr/share/conkyforecast/conkyWunderground.py", line 1107, in <module>
conkyWeather()
File "/usr/share/conkyforecast/conkyWunderground.py", line 173, in conkyWeather
outputString = makeOutput(weatherData, intellicastData, lastPull, moonState, False, False, False) # make output string
File "/usr/share/conkyforecast/conkyWunderground.py", line 315, in makeOutput
[currentMoonPhaseString,currentMoonImagePath,moonState] = convertMoonPhase(int(currentMoonAge),int(currentMoonIllumination),moonState) # convert to moon phase string and moonphase image path
File "/usr/share/conkyforecast/conkyWunderground.py", line 1103, in convertMoonPhase
moonImagePath = "/usr/share/conkyforecast/images/moonicons/" + moonImage
UnboundLocalError: local variable 'moonImage' referenced before assignment
Examining the json_readable.txt file indicates the following moon info:
Code:
, "moon_phase": {
"percentIlluminated":"48",
"ageOfMoon":"22",
"current_time": {
"hour":"8",
"minute":"57"
},
"sunset": {
"hour":"17",
"minute":"27"
},
"sunrise": {
"hour":"7",
"minute":"52"
}
}
If I am reading the the python correctly, with a percentilluminated of 48, it should be building a path to image 20.png.
Any ideas?
Bookmarks