Return Yahoo! weather API data in Celsius, using YQL












18














I'm trying to get Yahoo! weather API with temperatures in Celsius.



I've added &u=c in the request, but it's still returning data in Fahrenheit.



This is the URL i'm using:




http://query.yahooapis.com/v1/public/yql?q=select%20item%20from%20weather.forecast%20where%20location=%22LEXX0003%22&format=json&u=c




And the response:



{"query":{"count":1,"created":"2014-01-13T13:06:43Z","lang":"en-US","results":{"channel":{"item":{"title":"Conditions for Beirut, LE at 1:59 pm EET","lat":"33.82","long":"35.48","link":"http://us.rd.yahoo.com/dailynews/rss/weather/Beirut__LE/*http://weather.yahoo.com/forecast/LEXX0003_f.html","pubDate":"Mon, 13 Jan 2014 1:59 pm EET","condition":{"code":"30","date":"Mon, 13 Jan 2014 1:59 pm EET","temp":"64","text":"Partly Cloudy"},"description":"n<img src="http://l.yimg.com/a/i/us/we/52/30.gif"/><br />n<b>Current Conditions:</b><br />nPartly Cloudy, 64 F<BR />n<BR /><b>Forecast:</b><BR />nMon - Partly Cloudy. High: 64 Low: 55<br />nTue - Cloudy. High: 66 Low: 56<br />nWed - Mostly Sunny. High: 68 Low: 58<br />nThu - Sunny. High: 70 Low: 60<br />nFri - Scattered Showers. High: 65 Low: 57<br />n<br />n<a href="http://us.rd.yahoo.com/dailynews/rss/weather/Beirut__LE/*http://weather.yahoo.com/forecast/LEXX0003_f.html">Full Forecast at Yahoo! Weather</a><BR/><BR/>n(provided by <a href="http://www.weather.com" >The Weather Channel</a>)<br/>n","forecast":[{"code":"30","date":"13 Jan 2014","day":"Mon","high":"64","low":"55","text":"Partly Cloudy"},{"code":"26","date":"14 Jan 2014","day":"Tue","high":"66","low":"56","text":"Cloudy"},{"code":"34","date":"15 Jan 2014","day":"Wed","high":"68","low":"58","text":"Mostly Sunny"},{"code":"32","date":"16 Jan 2014","day":"Thu","high":"70","low":"60","text":"Sunny"},{"code":"39","date":"17 Jan 2014","day":"Fri","high":"65","low":"57","text":"Scattered Showers"}],"guid":{"isPermaLink":"false","content":"LEXX0003_2014_01_17_7_00_EET"}}}}}}`


any ideas ?










share|improve this question
























  • Did you ever solve this?
    – DanV
    Jan 21 '14 at 22:00
















18














I'm trying to get Yahoo! weather API with temperatures in Celsius.



I've added &u=c in the request, but it's still returning data in Fahrenheit.



This is the URL i'm using:




http://query.yahooapis.com/v1/public/yql?q=select%20item%20from%20weather.forecast%20where%20location=%22LEXX0003%22&format=json&u=c




And the response:



{"query":{"count":1,"created":"2014-01-13T13:06:43Z","lang":"en-US","results":{"channel":{"item":{"title":"Conditions for Beirut, LE at 1:59 pm EET","lat":"33.82","long":"35.48","link":"http://us.rd.yahoo.com/dailynews/rss/weather/Beirut__LE/*http://weather.yahoo.com/forecast/LEXX0003_f.html","pubDate":"Mon, 13 Jan 2014 1:59 pm EET","condition":{"code":"30","date":"Mon, 13 Jan 2014 1:59 pm EET","temp":"64","text":"Partly Cloudy"},"description":"n<img src="http://l.yimg.com/a/i/us/we/52/30.gif"/><br />n<b>Current Conditions:</b><br />nPartly Cloudy, 64 F<BR />n<BR /><b>Forecast:</b><BR />nMon - Partly Cloudy. High: 64 Low: 55<br />nTue - Cloudy. High: 66 Low: 56<br />nWed - Mostly Sunny. High: 68 Low: 58<br />nThu - Sunny. High: 70 Low: 60<br />nFri - Scattered Showers. High: 65 Low: 57<br />n<br />n<a href="http://us.rd.yahoo.com/dailynews/rss/weather/Beirut__LE/*http://weather.yahoo.com/forecast/LEXX0003_f.html">Full Forecast at Yahoo! Weather</a><BR/><BR/>n(provided by <a href="http://www.weather.com" >The Weather Channel</a>)<br/>n","forecast":[{"code":"30","date":"13 Jan 2014","day":"Mon","high":"64","low":"55","text":"Partly Cloudy"},{"code":"26","date":"14 Jan 2014","day":"Tue","high":"66","low":"56","text":"Cloudy"},{"code":"34","date":"15 Jan 2014","day":"Wed","high":"68","low":"58","text":"Mostly Sunny"},{"code":"32","date":"16 Jan 2014","day":"Thu","high":"70","low":"60","text":"Sunny"},{"code":"39","date":"17 Jan 2014","day":"Fri","high":"65","low":"57","text":"Scattered Showers"}],"guid":{"isPermaLink":"false","content":"LEXX0003_2014_01_17_7_00_EET"}}}}}}`


any ideas ?










share|improve this question
























  • Did you ever solve this?
    – DanV
    Jan 21 '14 at 22:00














18












18








18


3





I'm trying to get Yahoo! weather API with temperatures in Celsius.



I've added &u=c in the request, but it's still returning data in Fahrenheit.



This is the URL i'm using:




http://query.yahooapis.com/v1/public/yql?q=select%20item%20from%20weather.forecast%20where%20location=%22LEXX0003%22&format=json&u=c




And the response:



{"query":{"count":1,"created":"2014-01-13T13:06:43Z","lang":"en-US","results":{"channel":{"item":{"title":"Conditions for Beirut, LE at 1:59 pm EET","lat":"33.82","long":"35.48","link":"http://us.rd.yahoo.com/dailynews/rss/weather/Beirut__LE/*http://weather.yahoo.com/forecast/LEXX0003_f.html","pubDate":"Mon, 13 Jan 2014 1:59 pm EET","condition":{"code":"30","date":"Mon, 13 Jan 2014 1:59 pm EET","temp":"64","text":"Partly Cloudy"},"description":"n<img src="http://l.yimg.com/a/i/us/we/52/30.gif"/><br />n<b>Current Conditions:</b><br />nPartly Cloudy, 64 F<BR />n<BR /><b>Forecast:</b><BR />nMon - Partly Cloudy. High: 64 Low: 55<br />nTue - Cloudy. High: 66 Low: 56<br />nWed - Mostly Sunny. High: 68 Low: 58<br />nThu - Sunny. High: 70 Low: 60<br />nFri - Scattered Showers. High: 65 Low: 57<br />n<br />n<a href="http://us.rd.yahoo.com/dailynews/rss/weather/Beirut__LE/*http://weather.yahoo.com/forecast/LEXX0003_f.html">Full Forecast at Yahoo! Weather</a><BR/><BR/>n(provided by <a href="http://www.weather.com" >The Weather Channel</a>)<br/>n","forecast":[{"code":"30","date":"13 Jan 2014","day":"Mon","high":"64","low":"55","text":"Partly Cloudy"},{"code":"26","date":"14 Jan 2014","day":"Tue","high":"66","low":"56","text":"Cloudy"},{"code":"34","date":"15 Jan 2014","day":"Wed","high":"68","low":"58","text":"Mostly Sunny"},{"code":"32","date":"16 Jan 2014","day":"Thu","high":"70","low":"60","text":"Sunny"},{"code":"39","date":"17 Jan 2014","day":"Fri","high":"65","low":"57","text":"Scattered Showers"}],"guid":{"isPermaLink":"false","content":"LEXX0003_2014_01_17_7_00_EET"}}}}}}`


any ideas ?










share|improve this question















I'm trying to get Yahoo! weather API with temperatures in Celsius.



I've added &u=c in the request, but it's still returning data in Fahrenheit.



This is the URL i'm using:




http://query.yahooapis.com/v1/public/yql?q=select%20item%20from%20weather.forecast%20where%20location=%22LEXX0003%22&format=json&u=c




And the response:



{"query":{"count":1,"created":"2014-01-13T13:06:43Z","lang":"en-US","results":{"channel":{"item":{"title":"Conditions for Beirut, LE at 1:59 pm EET","lat":"33.82","long":"35.48","link":"http://us.rd.yahoo.com/dailynews/rss/weather/Beirut__LE/*http://weather.yahoo.com/forecast/LEXX0003_f.html","pubDate":"Mon, 13 Jan 2014 1:59 pm EET","condition":{"code":"30","date":"Mon, 13 Jan 2014 1:59 pm EET","temp":"64","text":"Partly Cloudy"},"description":"n<img src="http://l.yimg.com/a/i/us/we/52/30.gif"/><br />n<b>Current Conditions:</b><br />nPartly Cloudy, 64 F<BR />n<BR /><b>Forecast:</b><BR />nMon - Partly Cloudy. High: 64 Low: 55<br />nTue - Cloudy. High: 66 Low: 56<br />nWed - Mostly Sunny. High: 68 Low: 58<br />nThu - Sunny. High: 70 Low: 60<br />nFri - Scattered Showers. High: 65 Low: 57<br />n<br />n<a href="http://us.rd.yahoo.com/dailynews/rss/weather/Beirut__LE/*http://weather.yahoo.com/forecast/LEXX0003_f.html">Full Forecast at Yahoo! Weather</a><BR/><BR/>n(provided by <a href="http://www.weather.com" >The Weather Channel</a>)<br/>n","forecast":[{"code":"30","date":"13 Jan 2014","day":"Mon","high":"64","low":"55","text":"Partly Cloudy"},{"code":"26","date":"14 Jan 2014","day":"Tue","high":"66","low":"56","text":"Cloudy"},{"code":"34","date":"15 Jan 2014","day":"Wed","high":"68","low":"58","text":"Mostly Sunny"},{"code":"32","date":"16 Jan 2014","day":"Thu","high":"70","low":"60","text":"Sunny"},{"code":"39","date":"17 Jan 2014","day":"Fri","high":"65","low":"57","text":"Scattered Showers"}],"guid":{"isPermaLink":"false","content":"LEXX0003_2014_01_17_7_00_EET"}}}}}}`


any ideas ?







json api yahoo






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Oct 16 '16 at 13:09









Bacco

609818




609818










asked Jan 13 '14 at 13:10









Jack

9,92972055




9,92972055












  • Did you ever solve this?
    – DanV
    Jan 21 '14 at 22:00


















  • Did you ever solve this?
    – DanV
    Jan 21 '14 at 22:00
















Did you ever solve this?
– DanV
Jan 21 '14 at 22:00




Did you ever solve this?
– DanV
Jan 21 '14 at 22:00












5 Answers
5






active

oldest

votes


















68














Better late than never...



var locationQuery = escape("select item from weather.forecast where woeid in (select woeid from geo.places where text='GB-LND') and u='c'"),
locationUrl = "http://query.yahooapis.com/v1/public/yql?q=" + locationQuery + "&format=json&callback=?";


It's easier to read if you break it up. You we're pretty close, just needed the u=c as part of the query, not at the end of the url.






share|improve this answer





















  • what if I already have an and appended? <and gflags = "R">
    – nr5
    May 29 '15 at 9:27






  • 2




    u='c' not working for me...it steel give me result in F
    – H Raval
    Mar 25 '16 at 11:56










  • it works! thanks
    – nicmare
    Apr 5 '17 at 8:05










  • for me u="c" woked, not u='c'
    – eadmaster
    Aug 28 at 11:39



















10














I used the yql



select item from weather.forecast where woeid=22724447 and u='c'


and it worked fine with the results in Celsius. I changed the "LEXX0003" for the real WOEID of that zone and it seems to have worked.






share|improve this answer





























    1














    Whenever I had to call a temperature that I wanted in Celsius I just used a simple conversion function:



    function FtoC(temp) {return Math.round((temp - 32) / (9 / 5));}


    Then again, I wanted to toggle between Fahrenheit and Celsius. Just calling the Celsius JSON element from Yahoo is probably better if all you want to use is Celsius.






    share|improve this answer





























      1














      You can try this:



      YQL Query:



      select * from weather.forecast where woeid in (select woeid from geo.places(1) where text="jiangmen,cn") and u="c"


      EndPoint:



      https://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20weather.forecast%20where%20woeid%20in%20(select%20woeid%20from%20geo.places(1)%20where%20text%3D%22jiangmen%2Ccn%22)%20and%20u%3D%22c%22&format=json&env=store%3A%2F%2Fdatatables.org%2Falltableswithkeys


      This work when I try just now






      share|improve this answer





























        -1














        just do this,be sure it will work



        add this -->{ and u="c" } at the end of the YQL Query



        for example:



        YQL Query



        select * from weather.forecast where woeid in (select woeid from geo.places(1) where text="greenland") and u="c"





        share|improve this answer























          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f21092164%2freturn-yahoo-weather-api-data-in-celsius-using-yql%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          5 Answers
          5






          active

          oldest

          votes








          5 Answers
          5






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          68














          Better late than never...



          var locationQuery = escape("select item from weather.forecast where woeid in (select woeid from geo.places where text='GB-LND') and u='c'"),
          locationUrl = "http://query.yahooapis.com/v1/public/yql?q=" + locationQuery + "&format=json&callback=?";


          It's easier to read if you break it up. You we're pretty close, just needed the u=c as part of the query, not at the end of the url.






          share|improve this answer





















          • what if I already have an and appended? <and gflags = "R">
            – nr5
            May 29 '15 at 9:27






          • 2




            u='c' not working for me...it steel give me result in F
            – H Raval
            Mar 25 '16 at 11:56










          • it works! thanks
            – nicmare
            Apr 5 '17 at 8:05










          • for me u="c" woked, not u='c'
            – eadmaster
            Aug 28 at 11:39
















          68














          Better late than never...



          var locationQuery = escape("select item from weather.forecast where woeid in (select woeid from geo.places where text='GB-LND') and u='c'"),
          locationUrl = "http://query.yahooapis.com/v1/public/yql?q=" + locationQuery + "&format=json&callback=?";


          It's easier to read if you break it up. You we're pretty close, just needed the u=c as part of the query, not at the end of the url.






          share|improve this answer





















          • what if I already have an and appended? <and gflags = "R">
            – nr5
            May 29 '15 at 9:27






          • 2




            u='c' not working for me...it steel give me result in F
            – H Raval
            Mar 25 '16 at 11:56










          • it works! thanks
            – nicmare
            Apr 5 '17 at 8:05










          • for me u="c" woked, not u='c'
            – eadmaster
            Aug 28 at 11:39














          68












          68








          68






          Better late than never...



          var locationQuery = escape("select item from weather.forecast where woeid in (select woeid from geo.places where text='GB-LND') and u='c'"),
          locationUrl = "http://query.yahooapis.com/v1/public/yql?q=" + locationQuery + "&format=json&callback=?";


          It's easier to read if you break it up. You we're pretty close, just needed the u=c as part of the query, not at the end of the url.






          share|improve this answer












          Better late than never...



          var locationQuery = escape("select item from weather.forecast where woeid in (select woeid from geo.places where text='GB-LND') and u='c'"),
          locationUrl = "http://query.yahooapis.com/v1/public/yql?q=" + locationQuery + "&format=json&callback=?";


          It's easier to read if you break it up. You we're pretty close, just needed the u=c as part of the query, not at the end of the url.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Jan 21 '14 at 22:09









          DanV

          1,39811429




          1,39811429












          • what if I already have an and appended? <and gflags = "R">
            – nr5
            May 29 '15 at 9:27






          • 2




            u='c' not working for me...it steel give me result in F
            – H Raval
            Mar 25 '16 at 11:56










          • it works! thanks
            – nicmare
            Apr 5 '17 at 8:05










          • for me u="c" woked, not u='c'
            – eadmaster
            Aug 28 at 11:39


















          • what if I already have an and appended? <and gflags = "R">
            – nr5
            May 29 '15 at 9:27






          • 2




            u='c' not working for me...it steel give me result in F
            – H Raval
            Mar 25 '16 at 11:56










          • it works! thanks
            – nicmare
            Apr 5 '17 at 8:05










          • for me u="c" woked, not u='c'
            – eadmaster
            Aug 28 at 11:39
















          what if I already have an and appended? <and gflags = "R">
          – nr5
          May 29 '15 at 9:27




          what if I already have an and appended? <and gflags = "R">
          – nr5
          May 29 '15 at 9:27




          2




          2




          u='c' not working for me...it steel give me result in F
          – H Raval
          Mar 25 '16 at 11:56




          u='c' not working for me...it steel give me result in F
          – H Raval
          Mar 25 '16 at 11:56












          it works! thanks
          – nicmare
          Apr 5 '17 at 8:05




          it works! thanks
          – nicmare
          Apr 5 '17 at 8:05












          for me u="c" woked, not u='c'
          – eadmaster
          Aug 28 at 11:39




          for me u="c" woked, not u='c'
          – eadmaster
          Aug 28 at 11:39













          10














          I used the yql



          select item from weather.forecast where woeid=22724447 and u='c'


          and it worked fine with the results in Celsius. I changed the "LEXX0003" for the real WOEID of that zone and it seems to have worked.






          share|improve this answer


























            10














            I used the yql



            select item from weather.forecast where woeid=22724447 and u='c'


            and it worked fine with the results in Celsius. I changed the "LEXX0003" for the real WOEID of that zone and it seems to have worked.






            share|improve this answer
























              10












              10








              10






              I used the yql



              select item from weather.forecast where woeid=22724447 and u='c'


              and it worked fine with the results in Celsius. I changed the "LEXX0003" for the real WOEID of that zone and it seems to have worked.






              share|improve this answer












              I used the yql



              select item from weather.forecast where woeid=22724447 and u='c'


              and it worked fine with the results in Celsius. I changed the "LEXX0003" for the real WOEID of that zone and it seems to have worked.







              share|improve this answer












              share|improve this answer



              share|improve this answer










              answered Mar 29 '16 at 1:16









              Aris

              13818




              13818























                  1














                  Whenever I had to call a temperature that I wanted in Celsius I just used a simple conversion function:



                  function FtoC(temp) {return Math.round((temp - 32) / (9 / 5));}


                  Then again, I wanted to toggle between Fahrenheit and Celsius. Just calling the Celsius JSON element from Yahoo is probably better if all you want to use is Celsius.






                  share|improve this answer


























                    1














                    Whenever I had to call a temperature that I wanted in Celsius I just used a simple conversion function:



                    function FtoC(temp) {return Math.round((temp - 32) / (9 / 5));}


                    Then again, I wanted to toggle between Fahrenheit and Celsius. Just calling the Celsius JSON element from Yahoo is probably better if all you want to use is Celsius.






                    share|improve this answer
























                      1












                      1








                      1






                      Whenever I had to call a temperature that I wanted in Celsius I just used a simple conversion function:



                      function FtoC(temp) {return Math.round((temp - 32) / (9 / 5));}


                      Then again, I wanted to toggle between Fahrenheit and Celsius. Just calling the Celsius JSON element from Yahoo is probably better if all you want to use is Celsius.






                      share|improve this answer












                      Whenever I had to call a temperature that I wanted in Celsius I just used a simple conversion function:



                      function FtoC(temp) {return Math.round((temp - 32) / (9 / 5));}


                      Then again, I wanted to toggle between Fahrenheit and Celsius. Just calling the Celsius JSON element from Yahoo is probably better if all you want to use is Celsius.







                      share|improve this answer












                      share|improve this answer



                      share|improve this answer










                      answered Dec 18 '15 at 15:21









                      Michael Howard

                      112




                      112























                          1














                          You can try this:



                          YQL Query:



                          select * from weather.forecast where woeid in (select woeid from geo.places(1) where text="jiangmen,cn") and u="c"


                          EndPoint:



                          https://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20weather.forecast%20where%20woeid%20in%20(select%20woeid%20from%20geo.places(1)%20where%20text%3D%22jiangmen%2Ccn%22)%20and%20u%3D%22c%22&format=json&env=store%3A%2F%2Fdatatables.org%2Falltableswithkeys


                          This work when I try just now






                          share|improve this answer


























                            1














                            You can try this:



                            YQL Query:



                            select * from weather.forecast where woeid in (select woeid from geo.places(1) where text="jiangmen,cn") and u="c"


                            EndPoint:



                            https://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20weather.forecast%20where%20woeid%20in%20(select%20woeid%20from%20geo.places(1)%20where%20text%3D%22jiangmen%2Ccn%22)%20and%20u%3D%22c%22&format=json&env=store%3A%2F%2Fdatatables.org%2Falltableswithkeys


                            This work when I try just now






                            share|improve this answer
























                              1












                              1








                              1






                              You can try this:



                              YQL Query:



                              select * from weather.forecast where woeid in (select woeid from geo.places(1) where text="jiangmen,cn") and u="c"


                              EndPoint:



                              https://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20weather.forecast%20where%20woeid%20in%20(select%20woeid%20from%20geo.places(1)%20where%20text%3D%22jiangmen%2Ccn%22)%20and%20u%3D%22c%22&format=json&env=store%3A%2F%2Fdatatables.org%2Falltableswithkeys


                              This work when I try just now






                              share|improve this answer












                              You can try this:



                              YQL Query:



                              select * from weather.forecast where woeid in (select woeid from geo.places(1) where text="jiangmen,cn") and u="c"


                              EndPoint:



                              https://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20weather.forecast%20where%20woeid%20in%20(select%20woeid%20from%20geo.places(1)%20where%20text%3D%22jiangmen%2Ccn%22)%20and%20u%3D%22c%22&format=json&env=store%3A%2F%2Fdatatables.org%2Falltableswithkeys


                              This work when I try just now







                              share|improve this answer












                              share|improve this answer



                              share|improve this answer










                              answered Aug 30 '17 at 8:01









                              Zhao Weihao

                              1111




                              1111























                                  -1














                                  just do this,be sure it will work



                                  add this -->{ and u="c" } at the end of the YQL Query



                                  for example:



                                  YQL Query



                                  select * from weather.forecast where woeid in (select woeid from geo.places(1) where text="greenland") and u="c"





                                  share|improve this answer




























                                    -1














                                    just do this,be sure it will work



                                    add this -->{ and u="c" } at the end of the YQL Query



                                    for example:



                                    YQL Query



                                    select * from weather.forecast where woeid in (select woeid from geo.places(1) where text="greenland") and u="c"





                                    share|improve this answer


























                                      -1












                                      -1








                                      -1






                                      just do this,be sure it will work



                                      add this -->{ and u="c" } at the end of the YQL Query



                                      for example:



                                      YQL Query



                                      select * from weather.forecast where woeid in (select woeid from geo.places(1) where text="greenland") and u="c"





                                      share|improve this answer














                                      just do this,be sure it will work



                                      add this -->{ and u="c" } at the end of the YQL Query



                                      for example:



                                      YQL Query



                                      select * from weather.forecast where woeid in (select woeid from geo.places(1) where text="greenland") and u="c"






                                      share|improve this answer














                                      share|improve this answer



                                      share|improve this answer








                                      edited Nov 20 at 17:40









                                      pushkin

                                      3,914112651




                                      3,914112651










                                      answered Nov 20 at 16:45









                                      user10002267

                                      1




                                      1






























                                          draft saved

                                          draft discarded




















































                                          Thanks for contributing an answer to Stack Overflow!


                                          • Please be sure to answer the question. Provide details and share your research!

                                          But avoid



                                          • Asking for help, clarification, or responding to other answers.

                                          • Making statements based on opinion; back them up with references or personal experience.


                                          To learn more, see our tips on writing great answers.





                                          Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                                          Please pay close attention to the following guidance:


                                          • Please be sure to answer the question. Provide details and share your research!

                                          But avoid



                                          • Asking for help, clarification, or responding to other answers.

                                          • Making statements based on opinion; back them up with references or personal experience.


                                          To learn more, see our tips on writing great answers.




                                          draft saved


                                          draft discarded














                                          StackExchange.ready(
                                          function () {
                                          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f21092164%2freturn-yahoo-weather-api-data-in-celsius-using-yql%23new-answer', 'question_page');
                                          }
                                          );

                                          Post as a guest















                                          Required, but never shown





















































                                          Required, but never shown














                                          Required, but never shown












                                          Required, but never shown







                                          Required, but never shown

































                                          Required, but never shown














                                          Required, but never shown












                                          Required, but never shown







                                          Required, but never shown







                                          Popular posts from this blog

                                          Wiesbaden

                                          Marschland

                                          Dieringhausen