weather: Weather.getCurrent not working
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() + "°K or " +
Weather.kelvinToFahrenheit( current.temperature() ) + "°F or " +
Weather.kelvinToCelsius( current.temperature() ) + "°C" +
"<br />Current Conditions: " + current.conditions() );
});
Weather.getForecast( "London", function ( forecast ) {
$( "#forecast" ).html( "High: " + forecast.high() + "°K or " +
Weather.kelvinToFahrenheit( forecast.high() ) + "°F or " +
Weather.kelvinToCelsius( forecast.high() ) + "°C<br />Low: " +
forecast.low() + "°K or " +
Weather.kelvinToFahrenheit( forecast.low() ) + "°F or " +
Weather.kelvinToCelsius( forecast.low() ) + "°C" );
});
</script>`
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 16 (5 by maintainers)
@RandomlyKnighted is correct. Unfortunately no solid date. I am working on it more consistently now though so I’ll get it out asap.
Is this fixed? I’m considering using weather.js.