question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

weathercom shows no data if set to imperial

See original GitHub issue

I live in the US and if I give the location code, the temp shows as C instead of F. If I add “units=imperial” then no data shows at all.

Debug log shows the data but nothing shows in i3pystatus bar.

Here is that part of my config:

backend=weathercom.Weathercom(
              location_code='USNC0314:1:US',
            units='imperial'
            update_error='<span color="#ff0000">|</span>',
          log_level=logging.DEBUG 
       )

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
CPromptcommented, Sep 1, 2018

Well, did a fresh git clone and copied files over and it now works.

Thanks!

0reactions
terminalmagecommented, Aug 31, 2018

USNC0314:1:US works for me.

Like I said earlier, Weather.com changed the structure of their JSON weather data a couple weeks ago, so I added bfdff2e to fix this. If you are not running from a recently-updated git clone of i3pystatus, it’s probably not going to work as expected.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Frequently Asked Questions
How do I get more data if I don't want to use Facebook to log in? How do I view the radar map?...
Read more >
Сurrent weather and forecast - OpenWeatherMap
Historical weather data for 40 years back for any coordinate. ... Interactive maps show precipitation, clouds, pressure, wind around your location.
Read more >
Feature availability and data sources in the Weather app
Learn more about regional availability and data sources for features in the Weather app. The Weather app includes a number of features that ......
Read more >
Yahoo.com - weather.com alternative
As far as I can test, Yahoo always returns Imperial values (I did not see a way to force Metric in the parse)...
Read more >
Switching between temperature units
To get data in API for both current weather and forecast in Fahrenheit just add units=imperial parameter into your API call like in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found