Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

yawn failing #22

Closed
t0m5k1 opened this issue Jan 21, 2014 · 8 comments
Closed

yawn failing #22

t0m5k1 opened this issue Jan 21, 2014 · 8 comments
Labels

Comments

@t0m5k1
Copy link

t0m5k1 commented Jan 21, 2014

when I use mod+w it displays the message "service not available at this moment"

http://i.imgur.com/3mpryRs.jpg
here are the lines for this widget i use in rc.lua

-- Weather
weathericon = wibox.widget.imagebox(beautiful.widget_weather)
yawn = lain.widgets.yawn(12752509, {
settings = function()
widget:set_markup(markup("#eca4c4", forecast:lower() .. " @ " .. units .. "°C "))
end
})

right_layout:add(weathericon)
right_layout:add(yawn.widget)

@bakoenig
Copy link

This code works for me. Did you try to restart awesome (Mod + Ctrl + r)? You do not have internet connection immediately after boot, so you might have to restart the window manager at certain times.

@lcpz
Copy link
Owner

lcpz commented Jan 21, 2014

This code works for me too.

Paste the output of

curl --connect-timeout 1 -fsm 1 'http://weather.yahooapis.com/forecastrss?u=c&w=12752509'

@t0m5k1
Copy link
Author

t0m5k1 commented Jan 21, 2014

curl --connect-timeout 1 -fsm 1 'http://weather.yahooapis.com/forecastrss?u=c&w=12752509'

produces nothing!

yup I restart awesome when debugging these widget, pointless rebooting ;)

@t0m5k1
Copy link
Author

t0m5k1 commented Jan 21, 2014

if I re-run that command but increase the timeout to above 5 then I get some output BUT when I increase the timeout within init.lua for yawn then I still see N/A
(yes I restarted awesome!)

@lcpz
Copy link
Owner

lcpz commented Jan 21, 2014

Since the output is an empty string, yawn interprets it as a bad connectivity or no network issue.

Then this might not be a lain bug.

Try:

curl --connect-timeout 3 -fsm 3 'http://weather.yahooapis.com/forecastrss?u=c&w=12752509'

@lcpz
Copy link
Owner

lcpz commented Jan 21, 2014

Also, opening http://weather.yahooapis.com/forecastrss?u=c&w=12752509 in a browser does show the feed for Pretoria, right?

@t0m5k1
Copy link
Author

t0m5k1 commented Jan 21, 2014

yup that link has always worked, I used to use it in conky which is how I knew my code ;)
but

IT WORKS :)

must have been a timeout due to my being connected to a pfsense router using a usb 3g dongle for internet!

[SOLVED]

@lcpz
Copy link
Owner

lcpz commented Jan 21, 2014

Ok, so this was definetly not a bug.

FYI, this is not a forum, instead of editing posts with [SOLVED] tag, you have to close the issue.

@lcpz lcpz closed this as completed Jan 21, 2014
lcpz pushed a commit that referenced this issue Jan 21, 2014
lcpz pushed a commit that referenced this issue Aug 5, 2015
@t0m5k1 t0m5k1 changed the title [SOLVED] yawn failing yawn failing Apr 24, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants