function conky_weather(locid)
	 local type
	 type = conky_parse("${weather http://xoap.weather.com/weather/local/ " .. locid .. " icon}")
	 if (type == "0") or (type == "1") or (type == "2") or (type == "3") or (type == "4") or (type == "17") or (type == "35") then
	    return "${image ~/.conky/0.png -p 55,630}"
	 end
	 if (type == "5") then
	    return "${image ~/.conky/05.png -p 55,630}"
	 end
	 if (type == "6") then
	    return "${image ~/.conky/06.png -p 55,630}"
	 end
	 if (type == "7") then
	    return "${image ~/.conky/07.png -p 55,630}"
	 end
	 if (type == "8") then
	    return "${image ~/.conky/08.png -p 55,630}"
	 end
	 if (type == "9") then
	    return "${image ~/.conky/09.png -p 55,630}"
	 end
	 if (type == "10") then
	    return "${image ~/.conky/10.png -p 55,630}"
	 end
	 if (type == "11") then
	    return "${image ~/.conky/11.png -p 55,630}"
	 end
	 if (type == "12") then
	    return "${image ~/.conky/12.png -p 55,630}"
	 end
	 if (type == "13") then
	    return "${image ~/.conky/13.png -p 55,630}"
	 end
	 if (type == "14") then
	    return "${image ~/.conky/14.png -p 55,630}"
	 end
	 if (type == "15") then
	    return "${image ~/.conky/15.png -p 55,630}"
	 end
	 if (type == "16") then
	    return "${image ~/.conky/16.png -p 55,630}"
	 end
	 if (type == "18") then
	    return "${image ~/.conky/18.png -p 55,630}"
	 end
	 if (type == "19") or (type == "22") then
	    return "${image ~/.conky/19.png -p 55,630}"
	 end	 
	 if (type == "20") then
	    return "${image ~/.conky/20.png -p 55,630}"
	 end
	 if (type == "21") then
	    return "${image ~/.conky/21.png -p 55,630}"
	 end
	 if (type == "23") or (type == "24") then
	    return "${image ~/.conky/23.png -p 55,630}"
	 end
	 if (type == "25") or (type == "44") then
	    return "${image ~/.conky/25.png -p 55,630}"
	 end
	 if (type == "26") then
	    return "${image ~/.conky/26.png -p 55,630}"
	 end
	 if (type == "27") then
	    return "${image ~/.conky/27.png -p 55,630}"
	 end	 
	 if (type == "28") then
	    return "${image ~/.conky/28.png -p 55,630}"
	 end
	 if (type == "29") then
	    return "${image ~/.conky/29.png -p 55,630}"
	 end
	 if (type == "30") then
	    return "${image ~/.conky/30.png -p 55,630}"
	 end
	 if (type == "31") then
	    return "${image ~/.conky/31.png -p 55,630}"
	 end
	 if (type == "32") then
	    return "${image ~/.conky/32.png -p 55,630}"
	 end
	 if (type == "33") then
	    return "${image ~/.conky/33.png -p 55,630}"
	 end
	 if (type == "34") then
	    return "${image ~/.conky/34.png -p 55,630}"
	 end
	 if (type == "36") then
	    return "${image ~/.conky/36.png -p 55,630}"
	 end
	 if (type == "37") then
	    return "${image ~/.conky/37.png -p 55,630}"
	 end
	 if (type == "38") then
	    return "${image ~/.conky/38.png -p 55,630}"
	 end
	 if (type == "39") then
	    return "${image ~/.conky/39.png -p 55,630}"
	 end
	 if (type == "40") then
	    return "${image ~/.conky/40.png -p 55,630}"
	 end
	 if (type == "41") then
	    return "${image ~/.conky/41.png -p 55,630}"
	 end
	 if (type == "42") then
	    return "${image ~/.conky/42.png -p 55,630}"
	 end
	 if (type == "43") then
	    return "${image ~/.conky/43.png -p 55,630}"
	 end
	 if (type == "44") then
	    return "${image ~/.conky/44.png -p 55,630}"
	 end
	 if (type == "45") then
	    return "${image ~/.conky/45.png -p 55,630}"
	 end
	 if (type == "46") then
	    return "${image ~/.conky/46.png -p 55,630}"
	 end
	 if (type == "47") then
	    return "${image ~/.conky/47.png -p 55,630}"
	 end
end

function conky_weather_1(locid)
	 local type
	 type = conky_parse("${weather_forecast http://xoap.weather.com/weather/local/ " .. locid .. " 1 icon}")
	 if (type == "0") or (type == "1") or (type == "2") or (type == "3") or (type == "4") or (type == "17") or (type == "35") then
	    return "${image ~/.conky/0.png -p 390,630}"
	 end
	 if (type == "5") then
	    return "${image ~/.conky/05.png -p 390,630}"
	 end
	 if (type == "6") then
	    return "${image ~/.conky/06.png -p 390,630}"
	 end
	 if (type == "7") then
	    return "${image ~/.conky/07.png -p 390,630}"
	 end
	 if (type == "8") then
	    return "${image ~/.conky/08.png -p 390,630}"
	 end
	 if (type == "9") then
	    return "${image ~/.conky/09.png -p 390,630}"
	 end
	 if (type == "10") then
	    return "${image ~/.conky/10.png -p 390,630}"
	 end
	 if (type == "11") then
	    return "${image ~/.conky/11.png -p 390,630}"
	 end
	 if (type == "12") then
	    return "${image ~/.conky/12.png -p 390,630}"
	 end
	 if (type == "13") then
	    return "${image ~/.conky/13.png -p 390,630}"
	 end
	 if (type == "14") then
	    return "${image ~/.conky/14.png -p 390,630}"
	 end
	 if (type == "15") then
	    return "${image ~/.conky/15.png -p 390,630}"
	 end
	 if (type == "16") then
	    return "${image ~/.conky/16.png -p 390,630}"
	 end
	 if (type == "18") then
	    return "${image ~/.conky/18.png -p 390,630}"
	 end
	 if (type == "19") or (type == "22") then
	    return "${image ~/.conky/19.png -p 390,630}"
	 end	 
	 if (type == "20") then
	    return "${image ~/.conky/20.png -p 390,630}"
	 end
	 if (type == "21") then
	    return "${image ~/.conky/21.png -p 390,630}"
	 end
	 if (type == "23") or (type == "24") then
	    return "${image ~/.conky/23.png -p 390,630}"
	 end
	 if (type == "25") or (type == "44") then
	    return "${image ~/.conky/25.png -p 390,630}"
	 end
	 if (type == "26") then
	    return "${image ~/.conky/26.png -p 390,630}"
	 end
	 if (type == "27") then
	    return "${image ~/.conky/27.png -p 390,630}"
	 end	 
	 if (type == "28") then
	    return "${image ~/.conky/28.png -p 390,630}"
	 end
	 if (type == "29") then
	    return "${image ~/.conky/29.png -p 390,630}"
	 end
	 if (type == "30") then
	    return "${image ~/.conky/30.png -p 390,630}"
	 end
	 if (type == "31") then
	    return "${image ~/.conky/31.png -p 390,630}"
	 end
	 if (type == "32") then
	    return "${image ~/.conky/32.png -p 390,630}"
	 end
	 if (type == "33") then
	    return "${image ~/.conky/33.png -p 390,630}"
	 end
	 if (type == "34") then
	    return "${image ~/.conky/34.png -p 390,630}"
	 end
	 if (type == "36") then
	    return "${image ~/.conky/36.png -p 390,630}"
	 end
	 if (type == "37") then
	    return "${image ~/.conky/37.png -p 390,630}"
	 end
	 if (type == "38") then
	    return "${image ~/.conky/38.png -p 390,630}"
	 end
	 if (type == "39") then
	    return "${image ~/.conky/39.png -p 390,630}"
	 end
	 if (type == "40") then
	    return "${image ~/.conky/40.png -p 390,630}"
	 end
	 if (type == "41") then
	    return "${image ~/.conky/41.png -p 390,630}"
	 end
	 if (type == "42") then
	    return "${image ~/.conky/42.png -p 390,630}"
	 end
	 if (type == "43") then
	    return "${image ~/.conky/43.png -p 390,630}"
	 end
	 if (type == "44") then
	    return "${image ~/.conky/44.png -p 390,630}"
	 end
	 if (type == "45") then
	    return "${image ~/.conky/45.png -p 390,630}"
	 end
	 if (type == "46") then
	    return "${image ~/.conky/46.png -p 390,630}"
	 end
	 if (type == "47") then
	    return "${image ~/.conky/47.png -p 390,630}"
	 end
end

function conky_weather_2(locid)
	 local type
	 type = conky_parse("${weather_forecast http://xoap.weather.com/weather/local/ " .. locid .. " 2 icon}")
	 if (type == "0") or (type == "1") or (type == "2") or (type == "3") or (type == "4") or (type == "17") or (type == "35") then
	    return "${image ~/.conky/0.png -p 740,630}"
	 end
	 if (type == "5") then
	    return "${image ~/.conky/05.png -p 740,630}"
	 end
	 if (type == "6") then
	    return "${image ~/.conky/06.png -p 740,630}"
	 end
	 if (type == "7") then
	    return "${image ~/.conky/07.png -p 740,630}"
	 end
	 if (type == "8") then
	    return "${image ~/.conky/08.png -p 740,630}"
	 end
	 if (type == "9") then
	    return "${image ~/.conky/09.png -p 740,630}"
	 end
	 if (type == "10") then
	    return "${image ~/.conky/10.png -p 740,630}"
	 end
	 if (type == "11") then
	    return "${image ~/.conky/11.png -p 740,630}"
	 end
	 if (type == "12") then
	    return "${image ~/.conky/12.png -p 740,630}"
	 end
	 if (type == "13") then
	    return "${image ~/.conky/13.png -p 740,630}"
	 end
	 if (type == "14") then
	    return "${image ~/.conky/14.png -p 740,630}"
	 end
	 if (type == "15") then
	    return "${image ~/.conky/15.png -p 740,630}"
	 end
	 if (type == "16") then
	    return "${image ~/.conky/16.png -p 740,630}"
	 end
	 if (type == "18") then
	    return "${image ~/.conky/18.png -p 740,630}"
	 end
	 if (type == "19") or (type == "22") then
	    return "${image ~/.conky/19.png -p 740,630}"
	 end	 
	 if (type == "20") then
	    return "${image ~/.conky/20.png -p 740,630}"
	 end
	 if (type == "21") then
	    return "${image ~/.conky/21.png -p 740,630}"
	 end
	 if (type == "23") or (type == "24") then
	    return "${image ~/.conky/23.png -p 740,630}"
	 end
	 if (type == "25") or (type == "44") then
	    return "${image ~/.conky/25.png -p 740,630}"
	 end
	 if (type == "26") then
	    return "${image ~/.conky/26.png -p 740,630}"
	 end
	 if (type == "27") then
	    return "${image ~/.conky/27.png -p 740,630}"
	 end	 
	 if (type == "28") then
	    return "${image ~/.conky/28.png -p 740,630}"
	 end
	 if (type == "29") then
	    return "${image ~/.conky/29.png -p 740,630}"
	 end
	 if (type == "30") then
	    return "${image ~/.conky/30.png -p 740,630}"
	 end
	 if (type == "31") then
	    return "${image ~/.conky/31.png -p 740,630}"
	 end
	 if (type == "32") then
	    return "${image ~/.conky/32.png -p 740,630}"
	 end
	 if (type == "33") then
	    return "${image ~/.conky/33.png -p 740,630}"
	 end
	 if (type == "34") then
	    return "${image ~/.conky/34.png -p 740,630}"
	 end
	 if (type == "36") then
	    return "${image ~/.conky/36.png -p 740,630}"
	 end
	 if (type == "37") then
	    return "${image ~/.conky/37.png -p 740,630}"
	 end
	 if (type == "38") then
	    return "${image ~/.conky/38.png -p 740,630}"
	 end
	 if (type == "39") then
	    return "${image ~/.conky/39.png -p 740,630}"
	 end
	 if (type == "40") then
	    return "${image ~/.conky/40.png -p 740,630}"
	 end
	 if (type == "41") then
	    return "${image ~/.conky/41.png -p 740,630}"
	 end
	 if (type == "42") then
	    return "${image ~/.conky/42.png -p 740,630}"
	 end
	 if (type == "43") then
	    return "${image ~/.conky/43.png -p 740,630}"
	 end
	 if (type == "44") then
	    return "${image ~/.conky/44.png -p 740,630}"
	 end
	 if (type == "45") then
	    return "${image ~/.conky/45.png -p 740,630}"
	 end
	 if (type == "46") then
	    return "${image ~/.conky/46.png -p 740,630}"
	 end
	 if (type == "47") then
	    return "${image ~/.conky/47.png -p 740,630}"
	 end
end

function conky_weather_3(locid)
	 local type
	 type = conky_parse("${weather_forecast http://xoap.weather.com/weather/local/ " .. locid .. " 3 icon}")
	 if (type == "0") or (type == "1") or (type == "2") or (type == "3") or (type == "4") or (type == "17") or (type == "35") then
	    return "${image ~/.conky/0.png -p 1090,630}"
	 end
	 if (type == "5") then
	    return "${image ~/.conky/05.png -p 1090,630}"
	 end
	 if (type == "6") then
	    return "${image ~/.conky/06.png -p 1090,630}"
	 end
	 if (type == "7") then
	    return "${image ~/.conky/07.png -p 1090,630}"
	 end
	 if (type == "8") then
	    return "${image ~/.conky/08.png -p 1090,630}"
	 end
	 if (type == "9") then
	    return "${image ~/.conky/09.png -p 1090,630}"
	 end
	 if (type == "10") then
	    return "${image ~/.conky/10.png -p 1090,630}"
	 end
	 if (type == "11") then
	    return "${image ~/.conky/11.png -p 1090,630}"
	 end
	 if (type == "12") then
	    return "${image ~/.conky/12.png -p 1090,630}"
	 end
	 if (type == "13") then
	    return "${image ~/.conky/13.png -p 1090,630}"
	 end
	 if (type == "14") then
	    return "${image ~/.conky/14.png -p 1090,630}"
	 end
	 if (type == "15") then
	    return "${image ~/.conky/15.png -p 1090,630}"
	 end
	 if (type == "16") then
	    return "${image ~/.conky/16.png -p 1090,630}"
	 end
	 if (type == "18") then
	    return "${image ~/.conky/18.png -p 1090,630}"
	 end
	 if (type == "19") or (type == "22") then
	    return "${image ~/.conky/19.png -p 1090,630}"
	 end	 
	 if (type == "20") then
	    return "${image ~/.conky/20.png -p 1090,630}"
	 end
	 if (type == "21") then
	    return "${image ~/.conky/21.png -p 1090,630}"
	 end
	 if (type == "23") or (type == "24") then
	    return "${image ~/.conky/23.png -p 1090,630}"
	 end
	 if (type == "25") or (type == "44") then
	    return "${image ~/.conky/25.png -p 1090,630}"
	 end
	 if (type == "26") then
	    return "${image ~/.conky/26.png -p 1090,630}"
	 end
	 if (type == "27") then
	    return "${image ~/.conky/27.png -p 1090,630}"
	 end	 
	 if (type == "28") then
	    return "${image ~/.conky/28.png -p 1090,630}"
	 end
	 if (type == "29") then
	    return "${image ~/.conky/29.png -p 1090,630}"
	 end
	 if (type == "30") then
	    return "${image ~/.conky/30.png -p 1090,630}"
	 end
	 if (type == "31") then
	    return "${image ~/.conky/31.png -p 1090,630}"
	 end
	 if (type == "32") then
	    return "${image ~/.conky/32.png -p 1090,630}"
	 end
	 if (type == "33") then
	    return "${image ~/.conky/33.png -p 1090,630}"
	 end
	 if (type == "34") then
	    return "${image ~/.conky/34.png -p 1090,630}"
	 end
	 if (type == "36") then
	    return "${image ~/.conky/36.png -p 1090,630}"
	 end
	 if (type == "37") then
	    return "${image ~/.conky/37.png -p 1090,630}"
	 end
	 if (type == "38") then
	    return "${image ~/.conky/38.png -p 1090,630}"
	 end
	 if (type == "39") then
	    return "${image ~/.conky/39.png -p 1090,630}"
	 end
	 if (type == "40") then
	    return "${image ~/.conky/40.png -p 1090,630}"
	 end
	 if (type == "41") then
	    return "${image ~/.conky/41.png -p 1090,630}"
	 end
	 if (type == "42") then
	    return "${image ~/.conky/42.png -p 1090,630}"
	 end
	 if (type == "43") then
	    return "${image ~/.conky/43.png -p 1090,630}"
	 end
	 if (type == "44") then
	    return "${image ~/.conky/44.png -p 1090,630}"
	 end
	 if (type == "45") then
	    return "${image ~/.conky/45.png -p 1090,630}"
	 end
	 if (type == "46") then
	    return "${image ~/.conky/46.png -p 1090,630}"
	 end
	 if (type == "47") then
	    return "${image ~/.conky/47.png -p 1090,630}"
	 end
end
