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.

Weather.getCurrent not working

See original GitHub issue

Weather.getCurrent doesn’t work. When changing it to a different city (e.g. London) it stays the same

<script>
        Weather.getCurrent( "London", function( current ) {
            $( "#current" ).html( "Temperature: " + current.temperature() + "&deg;K or " +
                Weather.kelvinToFahrenheit( current.temperature() ) + "&deg;F or " +
                Weather.kelvinToCelsius( current.temperature() ) + "&deg;C" +
                "<br />Current Conditions: " + current.conditions() );
        });
        Weather.getForecast( "London", function ( forecast ) {
            $( "#forecast" ).html( "High: " + forecast.high() + "&deg;K or " +
                Weather.kelvinToFahrenheit( forecast.high() ) + "&deg;F or " +
                Weather.kelvinToCelsius( forecast.high() ) + "&deg;C<br />Low: " +
                forecast.low() + "&deg;K or " +
                Weather.kelvinToFahrenheit( forecast.low() ) + "&deg;F or " +
                Weather.kelvinToCelsius( forecast.low() ) + "&deg;C" );
        });
</script>`

Issue Analytics

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

github_iconTop GitHub Comments

5reactions
noazarkcommented, Sep 11, 2016

@RandomlyKnighted is correct. Unfortunately no solid date. I am working on it more consistently now though so I’ll get it out asap.

1reaction
lsterling03commented, Jan 2, 2017

Is this fixed? I’m considering using weather.js.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Weather - Get Current Conditions - REST API (Azure Maps)
Get Current Conditions Applies to: see pricing tiers. Get Current Conditions service returns detailed current weather conditions such as precipitation, ...
Read more >
Survey123 "Get current weather" in Microsoft Flow
I wanted to know if there is a solution that is available to grab the lat/long of a Survey123 submission and populate it...
Read more >
Cannot get current location in my weather App.getlatitude ...
Android In my weather app I cannot get the current location and access its temperature.I think there is no problem with the api...
Read more >
“Get Current Weather”action problem : r/shortcuts - Reddit
I'm curious why you are getting maps url from clipboard and trying to get weather there. What is your goal with this shortcut?...
Read more >
FalconChristmas/FPP-Plugin-Weather: Get current ... - GitHub
FPP-Plugin-Weather. This plugin will retreive the current weather information for a specified location. This plugin requires the Message Queue to Matrix ...
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