Code Monkey home page Code Monkey logo

Comments (17)

theanimator avatar theanimator commented on May 26, 2024

I'm also using Imperial, but mine appears to be correct even though there is quite a spread between the high and the low. I compared with http://openweathermap.org/city and weather.com

from magicmirror.

dpcarlton avatar dpcarlton commented on May 26, 2024

Anyway you can post a shot of your weather widget? My temps are not matching up at all.

I should add the above screen shot is for Colorado Springs, US. The low is way off.

from magicmirror.

theanimator avatar theanimator commented on May 26, 2024

I'm in Santa Clara CA magicmirror

from magicmirror.

dpcarlton avatar dpcarlton commented on May 26, 2024

Yeah, yours looks right. Out of curiosity, are you using lat/long or city name in config. js?

" q: 'Colorado Springs,US',"

from magicmirror.

theanimator avatar theanimator commented on May 26, 2024
        q: 'Santa Clara,US',

from magicmirror.

dpcarlton avatar dpcarlton commented on May 26, 2024

Could be an issue with my city. I changed to Santa Clara and it came up fine. Odd.

Thanks.

from magicmirror.

axlbundy avatar axlbundy commented on May 26, 2024

I'm having the same issues with Los Angeles weather. I've tried Los Angeles,US and Los Angeles,California both give the same 5 day incorrect High/Low Temps as compared to yahoo, weather underground, and apple weather. The strange thing is that the current temp displayed on the mirror seems to be accurate.
screen shot 2016-02-05 at 10 13 46 pm

Here is the same day range listed on weatherunderground.com
screen shot 2016-02-05 at 10 18 53 pm

from magicmirror.

MichMich avatar MichMich commented on May 26, 2024

If you use the openweathermap api you could check to see what the api feed sends to your mirror. If it is indeed an issue with the API, I would suggest reporting it to openweathermap.

Please let me know when I can close this issue.

from magicmirror.

dpcarlton avatar dpcarlton commented on May 26, 2024

Thanks. Is there a way to see the raw api data that I am receiving?

On Feb 6, 2016, at 7:58 AM, Michael Teeuw [email protected] wrote:

If you use the openweathermap api you could check to see what the api feed sends to your mirror. If it is indeed an issue with the API, I would suggest reporting it to openweathermap.

Please let me know when I can close this issue.


Reply to this email directly or view it on GitHub.

from magicmirror.

MichMich avatar MichMich commented on May 26, 2024

You could use the browsers web inspector, or just surf to the url:

http://api.openweathermap.org/data//2.5/weather?q=Baarn%2CNetherlands&units=metric&lang=nl&APPID=YOUR_API_KEY_HERE&cnt=5

Make sure to modify the parameters in the link above.

from magicmirror.

dpcarlton avatar dpcarlton commented on May 26, 2024

Thanks, that url returns the current weather, are you using this for the
forecast?

This url seems to return the correct forecast.

http://api.openweathermap.org/data/2.5/forecast?id=5417598&units=imperial&appid=
&cnt=5

On Sat, Feb 6, 2016 at 10:18 AM, Michael Teeuw [email protected]
wrote:

You could use the browsers web inspector, or just surf to the url:

http://api.openweathermap.org/data//2.5/weather?q=Baarn%2CNetherlands&units=metric&lang=nl&APPID=YOUR_API_KEY_HERE&cnt=5

Make sure to modify the parameters in the link above.


Reply to this email directly or view it on GitHub
#78 (comment)
.

from magicmirror.

MichMich avatar MichMich commented on May 26, 2024

you're right. sorry.... posted the wrong link.

from magicmirror.

dpcarlton avatar dpcarlton commented on May 26, 2024

Ok, so I see something.

In your code, you are using this url:

http://api.openweathermap.org/data/2.5/forecast/daily?id=5417598&units=imperial&appid=
&cnt=5

{"day":63.41,"min":31.37,"max":70.56,"night":41.77,"eve":62.76,"morn":31.37

This url returns completely different results then this url:

http://api.openweathermap.org/data/2.5/forecast?id=5417598&units=imperial&appid=
&cnt=5

{"temp":57.13,"temp_min":41.58,"temp_max":57.13,

On Sat, Feb 6, 2016 at 10:47 AM, Michael Teeuw [email protected]
wrote:

you're right. sorry.... posted the wrong link.


Reply to this email directly or view it on GitHub
#78 (comment)
.

from magicmirror.

dpcarlton avatar dpcarlton commented on May 26, 2024

So it appears some odd rounding is happening in the code.

Here is the displayed data:

image

And here is the raw data:

image

Sun - Min is off by 3 degrees.
Mon - High is off by 2 degrees
Tue - High is off by 2 degrees.
Wed - High is off by 2 degrees.
Thu - Both Match
Fri - Both Match

from magicmirror.

bitte-ein-bit avatar bitte-ein-bit commented on May 26, 2024

@dpcarlton Sorry to say, but no... this is just rounding to one decimal place. 37.13 becomes 37.1 and 21.49 is rounded to 21.5.
2016-02-08 21_45_45-bb136d6e-cd78-11e5-8f32-a4bee26f5600 png 895x250

from magicmirror.

dpcarlton avatar dpcarlton commented on May 26, 2024

You are right, sorry. When I looked at it yesterday I could have sworn it was off. No idea how I mis-read it. You can close this issue. I opened one with the api providers.

from magicmirror.

jamesarm97 avatar jamesarm97 commented on May 26, 2024

FYI, looks like you were looking at the "current" temps vs the Max temps and that was the reason for the difference.

from magicmirror.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.