Code Monkey home page Code Monkey logo

Comments (8)

bakoenig avatar bakoenig commented on May 11, 2024

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.

from lain.

lcpz avatar lcpz commented on May 11, 2024

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'

from lain.

t0m5k1 avatar t0m5k1 commented on May 11, 2024

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 ;)

from lain.

t0m5k1 avatar t0m5k1 commented on May 11, 2024

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!)

from lain.

lcpz avatar lcpz commented on May 11, 2024

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'

from lain.

lcpz avatar lcpz commented on May 11, 2024

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

from lain.

t0m5k1 avatar t0m5k1 commented on May 11, 2024

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]

from lain.

lcpz avatar lcpz commented on May 11, 2024

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.

from lain.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.