SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#101 2014-01-09 17:30:26

Habitual
#! Member
From: Youngstown, OH
Registered: 2010-09-10
Posts: 62
Website

Re: Wun Weather Script for Conky (Lua)

well, at least it's not "me" (this time).

Edit: at least my conkyForecast is working!

Last edited by Habitual (2014-01-09 17:31:35)


Success is 1% Inspiration
and 98% Perspiration and
2% atttention to details.

Offline

Be excellent to each other!

#102 2014-01-09 17:44:10

jst_joe
#! Junkie
From: Here, There and After
Registered: 2012-07-03
Posts: 297

Re: Wun Weather Script for Conky (Lua)

Their website is taking forever to load also Hotlanta isn't used to this kind of weather. lol
That or we're all overloading their servers. big_smile


A person who has a cat by the tail knows a whole lot more about cats than someone who has just read about them.
Mark Twain

Offline

#103 2014-01-09 17:46:49

Habitual
#! Member
From: Youngstown, OH
Registered: 2010-09-10
Posts: 62
Website

Re: Wun Weather Script for Conky (Lua)

jst_joe wrote:

That or we're all overloading their servers. big_smile

Yeah, bandwidth usage must be "way up" wink
That or someone at wunderground is waaaay too "Type A".


Success is 1% Inspiration
and 98% Perspiration and
2% atttention to details.

Offline

#104 2014-01-09 18:32:13

mrpeachy
20% cooler
From: The Everfree Forest
Registered: 2009-11-08
Posts: 3,460

Re: Wun Weather Script for Conky (Lua)

i just ran the script and it looks like the time problem has gone, at least for me
i seriously doubt that we are having any impact on the wunderground servers
people paying $5000 for the downpour key get to make 1,000,000 calls per day (10,000 per minute)
i cant imagine why you would need that but obviously some people do! smile

i hope to have iweather.lua swapped over to the new names and functional soon

Offline

#105 2014-01-09 18:46:22

Habitual
#! Member
From: Youngstown, OH
Registered: 2010-09-10
Posts: 62
Website

Re: Wun Weather Script for Conky (Lua)

Aha!

Fixed it.

I switched
lua_load /home/jj/wun/iweather.lua
to
lua_load /home/jj/wun/wun_template.lua

ran wunrc and got data.
switched it back to original and re-ran wunrc and
it's working.

Enjoy.


Success is 1% Inspiration
and 98% Perspiration and
2% atttention to details.

Offline

#106 2014-01-09 19:12:20

mrpeachy
20% cooler
From: The Everfree Forest
Registered: 2009-11-08
Posts: 3,460

Re: Wun Weather Script for Conky (Lua)

here is the newly formatted iweather.lua, imperial/metric swappable

--DISPLAY FUNCTION--DISPLAY FUNCTION--DISPLAY FUNCTION--DISPLAY FUNCTION-
_G.weather_script = function(update,time,now,text_forecast,day,hour)--#### DO NOT EDIT THIS LINE ##############
--[#######################################################################
--these tables hold the coordinates for each repeat do not edit #########
top_left_x_coordinate={}--###############################################
top_left_y_coordinate={}--###############################################
--#######################################################################
--SET DEFAULTS ##########################################################
--set defaults do not localise these defaults if you use a seperate display script
default_font="URW Gothic L"--font must be in quotes
default_font_size=11
default_color=0xffffff--white
default_alpha=1--fully opaque
default_image_width=50
default_image_height=50
--END OF DEFAULTS #######################################################
--#######################################################################
--START OF BUTTON CODE -- START OF BUTTON CODE -- START OF BUTTON CODE
--########################################################################################
function button_settings()
dh=do_button({blx_on=222,fs_off={"14"},fs_on={"14"},fxadj_off={10},fxadj_on={10},fyadj_off={-5},fyadj_on={-5},text=1,font_off={"URW Gothic L"},font_on={"URW Gothic L"},txt_on={"DAYS"},txt_off={"HOURS"},dolw_on=2,dolw_off=2,docol_off=0x000000,docol_on=0x000000,dtype_off=3,dfal_on=0.5,dfcol_on=0xffffff,dfal_off=0.5,btype=1,bname="dayhour",blx_off=296.5,bly_off=166+240,bw_off=70,bh_off=23,draw=1,on_on_on={"current"},on_on_off={"mlh","current"},off_on_off={"day1","day2","day3","day4","day5","day6","day7","day8","day9","day10"},off_on_on={"day1","day2","day3","day4","day5","day6","day7","day8","day9","day10"}})
if dh==1 then
hm=do_button({blx_on=296.5,fs_off={"14"},fs_on={"14"},fxadj_off={10},fxadj_on={10},fyadj_off={-5},fyadj_on={-5},text=1,font_off={"URW Gothic L"},font_on={"URW Gothic L"},txt_on={"LESS"},txt_off={"MORE"},dolw_on=2,dolw_off=2,docol_off=0x000000,docol_on=0x000000,dtype_off=3,dfal_on=0.5,dfcol_on=0xffffff,dfal_off=0.5,btype=1,bname="mlh",blx_off=296.5,bly_off=166+240,bw_off=70,bh_off=23,draw=1})
else
hm=0
end
local b1=do_button({dfal_off=0.5,btype=1,bname="day1",blx_off=9.5,bly_off=166,bw_off=70,bh_off=23,draw=1,		off_on_on={"day2","day3","day4","day5","day6","day7","day8","day9","day10","current"}})
local b2=do_button({dfal_off=0.5,btype=1,bname="day2",blx_off=81.5,bly_off=166,bw_off=69.5,bh_off=23,draw=1,		off_on_on={"day1","day3","day4","day5","day6","day7","day8","day9","day10","current"}})
local b3=do_button({dfal_off=0.5,btype=1,bname="day3",blx_off=153,bly_off=166,bw_off=70,bh_off=23,draw=1,		off_on_on={"day1","day2","day4","day5","day6","day7","day8","day9","day10","current"}})
local b4=do_button({dfal_off=0.5,btype=1,bname="day4",blx_off=225,bly_off=166,bw_off=69.5,bh_off=23,draw=1,		off_on_on={"day1","day2","day3","day5","day6","day7","day8","day9","day10","current"}})
local b5=do_button({dfal_off=0.5,btype=1,bname="day5",blx_off=296.5,bly_off=166,bw_off=70,bh_off=23,draw=1,		off_on_on={"day1","day2","day3","day4","day6","day7","day8","day9","day10","current"}})
local b6=do_button({dfal_off=0.5,btype=1,bname="day6",blx_off=9.5,bly_off=166+120,bw_off=70,bh_off=23,draw=1,	off_on_on={"day1","day2","day3","day4","day5","day7","day8","day9","day10","current"}})
local b7=do_button({dfal_off=0.5,btype=1,bname="day7",blx_off=81.5,bly_off=166+120,bw_off=69.5,bh_off=23,draw=1,	off_on_on={"day1","day2","day3","day4","day5","day6","day8","day9","day10","current"}})
local b8=do_button({dfal_off=0.5,btype=1,bname="day8",blx_off=153,bly_off=166+120,bw_off=70,bh_off=23,draw=1,	off_on_on={"day1","day2","day3","day4","day5","day6","day7","day9","day10","current"}})
local b9=do_button({dfal_off=0.5,btype=1,bname="day9",blx_off=225,bly_off=166+120,bw_off=69.5,bh_off=23,draw=1,	off_on_on={"day1","day2","day3","day4","day5","day6","day7","day8","day10","current"}})
local b10=do_button({dfal_off=0.5,btype=1,bname="day10",blx_off=296.5,bly_off=166+120,bw_off=70,bh_off=23,draw=1,	off_on_on={"day1","day2","day3","day4","day5","day6","day7","day8","day9","current"}})
local bc=do_button({dfal_off=0.5,st_type=1,btype=1,bname="current",blx_off=264,bly_off=134.5,bw_off=23,bh_off=98,draw=1,	off_on_on={"day1","day2","day3","day4","day5","day6","day7","day8","day9","day10"}})
if hm==1 then add=10 elseif hm==0 then add=0 end
if     b1==1 and b2==0 and b3==0 and b4==0 and b5==0 and b6==0 and b7==0 and b8==0 and b9==0 and b10==0 and bc==0 then
showday=1+add
elseif b1==0 and b2==1 and b3==0 and b4==0 and b5==0 and b6==0 and b7==0 and b8==0 and b9==0 and b10==0 and bc==0 then
showday=2+add
elseif b1==0 and b2==0 and b3==1 and b4==0 and b5==0 and b6==0 and b7==0 and b8==0 and b9==0 and b10==0 and bc==0 then
showday=3+add
elseif b1==0 and b2==0 and b3==0 and b4==1 and b5==0 and b6==0 and b7==0 and b8==0 and b9==0 and b10==0 and bc==0 then
showday=4+add
elseif b1==0 and b2==0 and b3==0 and b4==0 and b5==1 and b6==0 and b7==0 and b8==0 and b9==0 and b10==0 and bc==0 then
showday=5+add
elseif b1==0 and b2==0 and b3==0 and b4==0 and b5==0 and b6==1 and b7==0 and b8==0 and b9==0 and b10==0 and bc==0 then
showday=6+add
elseif b1==0 and b2==0 and b3==0 and b4==0 and b5==0 and b6==0 and b7==1 and b8==0 and b9==0 and b10==0 and bc==0 then
showday=7+add
elseif b1==0 and b2==0 and b3==0 and b4==0 and b5==0 and b6==0 and b7==0 and b8==1 and b9==0 and b10==0 and bc==0 then
showday=8+add
elseif b1==0 and b2==0 and b3==0 and b4==0 and b5==0 and b6==0 and b7==0 and b8==0 and b9==1 and b10==0 and bc==0 then
showday=9+add
elseif b1==0 and b2==0 and b3==0 and b4==0 and b5==0 and b6==0 and b7==0 and b8==0 and b9==0 and b10==1 and bc==0 then
showday=10+add
elseif b1==0 and b2==0 and b3==0 and b4==0 and b5==0 and b6==0 and b7==0 and b8==0 and b9==0 and b10==0 and bc==1 then
showday=0
elseif b1==0 and b2==0 and b3==0 and b4==0 and b5==0 and b6==0 and b7==0 and b8==0 and b9==0 and b10==0 and bc==0 then
showday=0
end
end--function button_settings
--########################################################################################
--END OF BUTTON CODE ----END OF BUTTON CODE ----END OF BUTTON CODE ---
--#######################################################################
image({x=0,y=0,w=376,h=265*(620/421),file="/home/mcdowall/wun/additional_files/bg.png"})
--START OF WEATHER CODE -- START OF WEATHER CODE -- START OF WEATHER CODE
out({a=1,fs=10,x=12,y=20,txt=now.location_full.." ".." "..now.observation_time_rfc822})
out({a=1,fs=16,x=280,y=25,txt=os.date("%I:%M %p")})
ct={"C","U","R","R","E","N","T"}
for i=1,7 do
out({hj="c",a=1,fs=14,x=274,y=50+(13*(i-1)),txt=ct[i]})
end
--current window
image({x=300,y=45,h=50,w=50,file=now.weather_icon})
out({a=1,fs=20,x=300,y=125,txt=now.temp_metric..now.temp_metric_unit})
--DATA WINDOW
if showday==nil then showday=0 end
if dh==0 and showday>0 then
local sd=tonumber(showday)
	out({a=1,fs=14,x=15,y=48,txt=day[sd].weekday.." "..day[sd].monthname.." "..day[sd].day_pad})
	out({a=1,fs=18,x=15,y=65,txt=day[sd].conditions})
	gap=13
	ypos=67+gap
	out({a=1,fs=12,x=15,y=ypos,txt="High: "..day[sd].high_metric..day[sd].high_metric_unit})
	out({a=1,fs=12,x=90,y=ypos,txt="Low: "..day[sd].low_metric..day[sd].low_metric_unit})
	out({a=1,fs=12,x=165,y=ypos,txt="Hum: "..day[sd].avehumidity.."%"})
	ypos=ypos+gap
	out({a=1,fs=12,x=15,y=ypos,txt="Rain: "..day[sd].precipitation.."%"})
	out({a=1,fs=12,x=80,y=ypos,txt="QPF: "..day[sd].rain_allday_metric..day[sd].rain_allday_metric_unit})
	out({a=1,fs=12,x=150,y=ypos,txt="D/N: "..day[sd].rain_day_metric..day[sd].rain_day_metric_unit.." / "..day[sd].rain_night_metric..day[sd].rain_night_metric_unit})
	ypos=ypos+gap
	out({a=1,fs=12,x=15,y=ypos,txt="Snow All Day: "..day[sd].snow_allday_metric..day[sd].snow_allday_metric_unit})
	out({a=1,fs=12,x=140,y=ypos,txt="D/N: "..day[sd].snow_day_metric..day[sd].snow_day_metric_unit.." / "..day[sd].snow_night_metric..day[sd].snow_night_metric_unit})
	ypos=ypos+gap
	out({a=1,fs=12,x=15,y=ypos,txt="Ave Wind: "..day[sd].avewind_metric..day[sd].avewind_metric_unit})
	out({a=1,fs=12,x=130,y=ypos,txt=day[sd].avewind_degrees.."°"})
	out({a=1,fs=12,x=165,y=ypos,txt=day[sd].avewind_dir})	
	ypos=ypos+gap
	out({a=1,fs=12,x=15,y=ypos,txt="Max Wind: "..day[sd].maxwind_metric..day[sd].maxwind_metric_unit})
	out({a=1,fs=12,x=130,y=ypos,txt=day[sd].maxwind_degrees.."°"})
	out({a=1,fs=12,x=165,y=ypos,txt=day[sd].maxwind_dir})
	image({x=215,y=ypos-24,h=30,w=30,file=day[sd].avewind_icon})
elseif dh==1 and showday>0 then
local sd=tonumber(showday)
	out({a=1,fs=14,x=15,y=48,txt=hour[sd].hour_12..hour[sd].ampm.." "..hour[sd].weekday.." "..hour[sd].monthname.." "..hour[sd].day})
	out({a=1,fs=18,x=15,y=65,txt=hour[sd].conditions})
	gap=13
	ypos=67+gap
	out({a=1,fs=12,x=15,y=ypos,txt="Temp: "..hour[sd].temp_metric..hour[sd].temp_metric_unit})
	out({a=1,fs=12,x=90,y=ypos,txt="Feels Like: "..hour[sd].feelslike_metric..hour[sd].feelslike_metric_unit})
	ypos=ypos+gap
	out({a=1,fs=12,x=15,y=ypos,txt="Dew: "..hour[sd].dewpoint_metric..hour[sd].dewpoint_metric_unit})
	out({a=1,fs=12,x=90,y=ypos,txt="Chill: "..hour[sd].windchill_metric..hour[sd].windchill_metric_unit})
	out({a=1,fs=12,x=165,y=ypos,txt="Heat: "..hour[sd].heatindex_metric..hour[sd].heatindex_metric_unit})
	ypos=ypos+gap
	out({a=1,fs=12,x=15,y=ypos,txt="Rain: "..hour[sd].precipitation.."%"})
	out({a=1,fs=12,x=90,y=ypos,txt="QPF: "..hour[sd].rain_metric..hour[sd].rain_metric_unit})
	out({a=1,fs=12,x=165,y=ypos,txt="Snow: "..hour[sd].snow_metric..hour[sd].snow_metric_unit})
	ypos=ypos+gap
	out({a=1,fs=12,x=15,y=ypos,txt="UV: "..hour[sd].uvi.."/"..hour[sd].uvi_text})
	out({a=1,fs=12,x=115,y=ypos,txt="Pressure: "..hour[sd].pressure_metric..hour[sd].pressure_metric_unit})	
	ypos=ypos+gap
	out({a=1,fs=12,x=15,y=ypos,txt="Wind: "..hour[sd].wind_metric..hour[sd].wind_metric_unit})
	out({a=1,fs=12,x=115,y=ypos,txt=hour[sd].wind_degrees.."°"})
	out({a=1,fs=12,x=165,y=ypos,txt=hour[sd].wind_dir})
	image({x=215,y=ypos-24,h=30,w=30,file=hour[sd].wind_icon})
elseif showday==0 then
	out({a=1,fs=14,x=15,y=48,txt=os.date("%A").." "..os.date("%B").." "..os.date("%d").." "..os.date("%G")})
	out({a=1,fs=18,x=15,y=65,txt=now.weather})
	gap=13
	ypos=67+gap
	out({a=1,fs=12,x=15,y=ypos,txt="Temp: "..now.temp_metric..now.temp_metric_unit})
	out({a=1,fs=12,x=100,y=ypos,txt="Feels: "..now.feelslike_metric..now.feelslike_metric_unit})
	out({a=1,fs=12,x=165,y=ypos,txt="Hum: "..now.humidity.."%"})
	ypos=ypos+gap
	out({a=1,fs=12,x=15,y=ypos,txt="Chill: "..now.windchill_metric..now.windchill_metric_unit})
	out({a=1,fs=12,x=100,y=ypos,txt="Heat: "..now.heatindex_metric..now.heatindex_metric_unit})
	out({a=1,fs=12,x=165,y=ypos,txt="Dew: "..now.dewpoint_metric..now.dewpoint_metric_unit})
	ypos=ypos+gap
	out({a=1,fs=12,x=15,y=ypos,txt="Vis: "..now.visibility_metric..now.visibility_metric_unit})
	out({a=1,fs=12,x=100,y=ypos,txt="Pressure: "..now.pressure_metric..now.pressure_metric_unit})
	out({a=1,fs=12,x=200,y=ypos,txt="Trend: "..now.pressure_trend})
	ypos=ypos+gap
	out({a=1,fs=12,x=15,y=ypos,txt="Wind: "..now.wind_metric..now.wind_metric_unit})
	out({a=1,fs=12,x=115,y=ypos,txt=now.wind_degrees.."°"})
	out({a=1,fs=12,x=165,y=ypos,txt=now.wind_dir})
	ypos=ypos+gap
	out({a=1,fs=12,x=15,y=ypos,txt="Gusts: "..now.wind_gust_metric..now.wind_gust_metric_unit})
	image({x=200,y=ypos-24,h=30,w=30,file=now.wind_icon})
else
	out({a=1,fs=18,x=15,y=50,txt="oops!"})
end
--FORECAST DAY BOXES
--set start forecast day
start_day=1
--set total forecast days you want to display
number_of_days=5
topx=20
py=160
--set coordinates for top lef corners for each repeat
top_left_x_coordinate[1],top_left_y_coordinate[1]     =topx          			,py
top_left_x_coordinate[2],top_left_y_coordinate[2]     =topx+70				,py
top_left_x_coordinate[3],top_left_y_coordinate[3]     =topx+70+71.5  			,py
top_left_x_coordinate[4],top_left_y_coordinate[4]     =topx+70+72+71.5 			,py
top_left_x_coordinate[5],top_left_y_coordinate[5]     =topx+70+72+71.5+71.5 		,py
top_left_x_coordinate[6],top_left_y_coordinate[6]     =topx+70+72+71.5+71.5+71.5	,py
if dh==0 then
--########################################################################################
for i=start_day,number_of_days do --start of day repeat, do not edit #######
tlx=top_left_x_coordinate[i] --sets top left x position for each repeat ##################
tly=top_left_y_coordinate[i] --sets top left y position for each repeat ##################
--########################################################################################
--top row
out({a=1,fs=12,x=tlx-4,y=tly,txt=day[i].weekday_short.." "..day[i].month_pad.."/"..day[i].day_pad})
image({x=tlx,y=tly+10,h=45,w=45,file=day[i].weather_icon})

out({a=1,fs=12,x=tlx,y=tly+91,txt=day[i].high_metric..day[i].high_metric_unit})
out({a=1,fs=12,x=tlx+35,y=tly+91,txt=day[i].low_metric..day[i].low_metric_unit})
out({a=1,fs=14,x=tlx+5,y=tly+73,txt=day[i].precipitation.."%"})
tly=tly+120
--bottom row
out({a=1,fs=12,x=tlx-4,y=tly,txt=day[i+5].weekday_short.." "..day[i+5].month_pad.."/"..day[i+5].day_pad})
image({x=tlx,y=tly+10,h=45,w=45,file=day[i+5].weather_icon})
out({a=1,fs=12,x=tlx,y=tly+91,txt=day[i+5].high_metric..day[i+5].high_metric_unit})
out({a=1,fs=12,x=tlx+35,y=tly+91,txt=day[i+5].low_metric..day[i+5].low_metric_unit})
out({a=1,fs=14,x=tlx+5,y=tly+73,txt=day[i+5].precipitation.."%"})
--########################################################################################
end--of forecast repeat section ##########################################################
elseif dh==1 then
--########################################################################################
for i=start_day,number_of_days do --start of day repeat, do not edit #######
tlx=top_left_x_coordinate[i] --sets top left x position for each repeat ##################
tly=top_left_y_coordinate[i] --sets top left y position for each repeat ##################
--########################################################################################
i=i+add
--top row
out({a=1,fs=11,x=tlx-4,y=tly,txt=hour[i].hour_12..hour[i].ampm.." "..hour[i].month_pad.."/"..hour[i].day_pad})
image({x=tlx,y=tly+10,h=45,w=45,file=hour[i].weather_icon})
--print(hour[i].weather_icon)
out({a=1,fs=12,x=tlx,y=tly+91,txt=hour[i].heatindex_metric..hour[i].heatindex_metric_unit})
out({a=1,fs=12,x=tlx+30,y=tly+91,txt=hour[i].windchill_metric..hour[i].windchill_metric_unit})
out({a=1,fs=14,x=tlx+5,y=tly+73,txt=hour[i].precipitation.."%"})
tly=tly+120
--bottom row
out({a=1,fs=11,x=tlx-4,y=tly,txt=hour[i+5].hour_12..hour[i].ampm.." "..hour[i+5].month_pad.."/"..hour[i+5].day_pad})
image({x=tlx,y=tly+10,h=45,w=45,file=hour[i+5].weather_icon})
out({a=1,fs=12,x=tlx,y=tly+91,txt=hour[i+5].heatindex_metric..hour[i+5].heatindex_metric_unit})
out({a=1,fs=12,x=tlx+30,y=tly+91,txt=hour[i+5].windchill_metric..hour[i+5].windchill_metric_unit})
out({a=1,fs=14,x=tlx+5,y=tly+73,txt=hour[i+5].precipitation.."%"})
--########################################################################################
end--of forecast repeat section ##########################################################
end--if dh
--########################################################################################
--END OF WEATHER CODE ----END OF WEATHER CODE ----END OF WEATHER CODE ---
--########################################################################################
--]]
end--of weather_display function do not edit this line ##################
--#######################################################################

im not having any issues with wun today
ill update the archive in a minute

Offline

#107 2014-01-09 19:15:06

Habitual
#! Member
From: Youngstown, OH
Registered: 2010-09-10
Posts: 62
Website

Re: Wun Weather Script for Conky (Lua)

Thanks!


Success is 1% Inspiration
and 98% Perspiration and
2% atttention to details.

Offline

#108 2014-01-09 19:23:18

mrpeachy
20% cooler
From: The Everfree Forest
Registered: 2009-11-08
Posts: 3,460

Re: Wun Weather Script for Conky (Lua)

oops seems like i have to be more careful with my api calls
apparently ive gone over the per minute limit a couple of times
all those starts - error - kill - restart !

Offline

#109 2014-01-09 19:44:48

falldown
#! Samurai
Registered: 2011-09-01
Posts: 1,727

Re: Wun Weather Script for Conky (Lua)

lol  yea me too.. maybe a little less killalls  smile

Offline

#110 2014-01-09 19:50:24

lionhead
#! Junkie
From: Dagobah / Germany
Registered: 2011-01-22
Posts: 459

Re: Wun Weather Script for Conky (Lua)

it seems that wunderground.com is a 'bit' overloaded:

alexander@netbook:~$ conky -c /home/alexander/wun/wunrc
Conky: desktop window (aa) is root window
Conky: window type - normal
Conky: drawing to created window (0x3a00001)
Conky: drawing to double buffer
data url= http://api.wunderground.com/api/0419fe8c1c1c1bea/conditions/forecast10day/astronomy/hourly/lang:DE/q/63125.json
gathering weather data 1/3
data url= http://api.wunderground.com/api/0419fe8c1c1c1bea/conditions/forecast10day/astronomy/hourly/lang:DE/q/63125.json
gathering weather data 2/3
data url= http://api.wunderground.com/api/0419fe8c1c1c1bea/conditions/forecast10day/astronomy/hourly/lang:DE/q/63125.json
gathering weather data 3/3

but nothing happened ...

Offline

#111 2014-01-09 19:53:25

Habitual
#! Member
From: Youngstown, OH
Registered: 2010-09-10
Posts: 62
Website

Re: Wun Weather Script for Conky (Lua)

lionhead:

see post 105 above for what I used to get mine working.
Nice API key too, btw... wink


Success is 1% Inspiration
and 98% Perspiration and
2% atttention to details.

Offline

#112 2014-01-09 20:13:42

mrpeachy
20% cooler
From: The Everfree Forest
Registered: 2009-11-08
Posts: 3,460

Re: Wun Weather Script for Conky (Lua)

certainly seems that something is up with the wunderground site, as sector11 mentioned earlier, going to www.wunderground.com in a browser is also blank

hope they get things sorted out smile

Offline

#113 2014-01-09 20:16:12

jst_joe
#! Junkie
From: Here, There and After
Registered: 2012-07-03
Posts: 297

Re: Wun Weather Script for Conky (Lua)

Their website isn't loading at all right now, so they must be having some kind of issues.

EDIT
@mrpeachy, you must have been posting as I was typing. lol

Last edited by jst_joe (2014-01-09 20:18:26)


A person who has a cat by the tail knows a whole lot more about cats than someone who has just read about them.
Mark Twain

Offline

#114 2014-01-09 20:20:13

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

Re: Wun Weather Script for Conky (Lua)

Habitual wrote:

well, at least it's not "me" (this time).

Edit: at least my conkyForecast is working!

AHHHHHHHHHHHHHHHHHHH SHUDDUP!!! {mumble mumble mumble}
That just isn't fair... :cool:  ... Oh wait ... I am getting something from cF:

 09 Jan 14 | 17:07:15 ~
    $ cf
Thu, 9 Jan 2014  ERROR: ErERROR: ErTodays ForecastthERROR: ErERROR: Error reading weather data: too many values to unpackN/A: Error reading weather data: ERROR: Error reading weather data: too many values to unpack
Partly Cloudy:ERROR: ErrERROR: ErroERROR: EERROR: EERROR: Error reading weather data: too many values to unpack
ERROR: Error reading weather data: ERROR: ErERROR: ErERROR: Error reading weather data: too many values to unpack
19:12 16kphr readMoon Phase -->ta: ERROR: Error reading weather data: too many values to unpack
{snip}
 09 Jan 14 | 17:08:07 ~
    $ 

Weather today is ERROR with a high of ERROR and winds from the ERROR at ErERROR. :lol:

... and wunderground simply isn't working here.  I can't connect to the web page, and none of the wun scripts are working.  :(   I tried both the static and the interactive.  :(
2014_01_09_16_56_06_1920x1080_Sector11.jpg
Creating the image - editing it - uploading it - and wunderground is still stuck on data 3/3 and Iceweasel still trying to connect!  :(

Maybe I'm over my limit and they dropped the axe!


·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

#115 2014-01-09 20:28:46

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

Re: Wun Weather Script for Conky (Lua)

mrpeachy wrote:

certainly seems that something is up with the wunderground site, as sector11 mentioned earlier, going to www.wunderground.com in a browser is also blank

hope they get things sorted out smile

Allways good to have a second opinion.  I was on the brink of thinking maybe it was me again .. but with a website not loading , there has to be something afoot.

DoS or DDoS???

Last edited by Sector11 (2014-01-09 20:31:46)


·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

#116 2014-01-09 20:29:16

Habitual
#! Member
From: Youngstown, OH
Registered: 2010-09-10
Posts: 62
Website

Re: Wun Weather Script for Conky (Lua)

Sector11 wrote:
Habitual wrote:

well, at least it's not "me" (this time).

Edit: at least my conkyForecast is working!

AHHHHHHHHHHHHHHHHHHH SHUDDUP!!! {mumble mumble mumble}

I knew that'd shake you up, Old(er) Man! wink

I'm chalking this up to "gremlins" and will quit messing with it until tomorrow.

Last edited by Habitual (2014-01-09 20:30:00)


Success is 1% Inspiration
and 98% Perspiration and
2% atttention to details.

Offline

#117 2014-01-09 20:51:04

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

Re: Wun Weather Script for Conky (Lua)

Habitual wrote:

I knew that'd shake you up, Old(er) Man! wink

I'm chalking this up to "gremlins" and will quit messing with it until tomorrow.

lol  lol
Of course you did.  And it was 'obvious' why you put that there.
{it's an ongoing joke | battle folks .. nothing serious .. move along}

I think we should all feed, water and house those gremlins ... keep them dry though. wink

EDIT:  Even my bash script, that uses wunderground, old scrot seen below, has stopped working.  So it's not the WUN script!

2014_01_01_08_40_17_1920x1080_Sector11.jpg

Last edited by Sector11 (2014-01-09 21:04:26)


·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

#118 2014-01-09 21:33:10

falldown
#! Samurai
Registered: 2011-09-01
Posts: 1,727

Re: Wun Weather Script for Conky (Lua)

From twitter..
Screenshot_from_2014_01_09_13_18_35.jpg
smile 
So everyone is experiencing the same issue. We didn't break anything.   wink

Offline

#119 2014-01-09 22:53:19

mrpeachy
20% cooler
From: The Everfree Forest
Registered: 2009-11-08
Posts: 3,460

Re: Wun Weather Script for Conky (Lua)

pain in the butt
well it leads me to a couple of conclusions
1.  i need to ping wunderground first to see if its up before trying to gather the data
2.  i can save the last successful data to a text file then if the ping fails, load that data

Offline

#120 2014-01-09 23:32:32

falldown
#! Samurai
Registered: 2011-09-01
Posts: 1,727

Re: Wun Weather Script for Conky (Lua)

Maybe this is just a rare happening Peachy..

Offline

#121 2014-01-09 23:46:12

jst_joe
#! Junkie
From: Here, There and After
Registered: 2012-07-03
Posts: 297

Re: Wun Weather Script for Conky (Lua)

^ Their servers froze. lol  lol  lol
I used to go to Atlanta aka: Hotlanta, about twice a year for classes.
Anything below 40 and the local government shuts down.


A person who has a cat by the tail knows a whole lot more about cats than someone who has just read about them.
Mark Twain

Offline

#122 2014-01-09 23:46:13

mrpeachy
20% cooler
From: The Everfree Forest
Registered: 2009-11-08
Posts: 3,460

Re: Wun Weather Script for Conky (Lua)

it most likely is unusual, but always good to be prepared for when it happens again  big_smile

it would also be useful for anyone who is unconnected during an update interval
instead of the script breaking with errors it keeps running, just doesnt update until it next connects

Offline

#123 2014-01-10 00:14:58

falldown
#! Samurai
Registered: 2011-09-01
Posts: 1,727

Re: Wun Weather Script for Conky (Lua)

Actually Peachy that sounds like a good plan.. with maybe some text saying that it is displaying a backup or unable to connect.  smile

Offline

#124 2014-01-10 00:20:26

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

Re: Wun Weather Script for Conky (Lua)

mrpeachy wrote:

pain in the butt
well it leads me to a couple of conclusions
1.  i need to ping wunderground first to see if its up before trying to gather the data
2.  i can save the last successful data to a text file then if the ping fails, load that data

If you do that is there a way to show something like: "Old Data"

EDIT:  Started this - had supper - come back - hit [Submit] and see falldown up there!   cool  cool

Last edited by Sector11 (2014-01-10 00:21:42)


·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

Help fund CrunchBang, donate to the project!

#125 2014-01-10 00:26:49

mrpeachy
20% cooler
From: The Everfree Forest
Registered: 2009-11-08
Posts: 3,460

Re: Wun Weather Script for Conky (Lua)

yes, i will set all the "last updated" information to indicate that the data is old
i was thinking before, in an interactive lua there could be an update button... if you have your interval for every 30 mins, but for some reason want the most recent data you can click the button and the script will update again

wonder if i could figure out a way to count api calls and display it  smile
well first things first!

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.
Server: acrobat

Debian Logo