weatherApp problem

how to get around this json call

First of all, you should first take care of the error in your console - “Uncaught Error: Bootstrap tooltips require Tether…”

You need to manually install this in settings/javascript/add-external-javascript, and it needs to go before your bootstrap:

Once that’s done, I found navigator.geolocation to be a pain and I heard of other people having problems with it so I went a different route:

  $.getJSON("", function (data) {
    var lat =;
    var lon = data.lon;

I’m sure someone smarter than me can get the navigator.geolocation to work just fine, but my solution hasn’t let me down yet.

1 Like

u also misspelled fahrenheit & celsius:

$('input[type=radio][name=farenheit-celcius]').change(function () {

Thank you very much for your tips and suggestions. its working now :slight_smile: