Giter VIP home page Giter VIP logo

Comments (10)

Thamial avatar Thamial commented on July 23, 2024 1

I got a bit different problem: My up/low are mostly correct, but current temp is off.

I tested with coordinates http://forecast.io/#/f/61.45,23.84, and got -3°c (7°c|-4°c). On the page forecast says right now is 9°c.

Tablet is set to correct GMT +3

from mirror.

ineptech avatar ineptech commented on July 23, 2024

Hunh, that's pretty weird. Can you send me the full url you're using, along with the correct temp and the time of day? Does it do this all the time or just occasionally? When I had this problem it was because I forgot the minus sign on the lattitude.

from mirror.

flatoutdodge avatar flatoutdodge commented on July 23, 2024

https://api.forecast.io/forecast/f204ba8b859279829c992912a30a6781/48.31,-82.13 Those are the correct coordinates for Elyria, OH. It depends on the time of day that determines how far off it is. Currently my actual temperature (according to intellicast.com and from what I can decipher from the url) is 61º (61º | 43º) and the app is showing 53º (58º | 30º)

from mirror.

ineptech avatar ineptech commented on July 23, 2024

I think the problem is just a typo - according to Google Maps, Elyria OH is latitude 41.31, not 48.31. The coordinates you specified are about 500 miles due north, in the middle of Canada :)

from mirror.

flatoutdodge avatar flatoutdodge commented on July 23, 2024

Oh, sorry, the typo was in the url in the message. I have been using 41.31 on the app. and just double-checked to make sure. The temps are still off I'm afraid.

from mirror.

ineptech avatar ineptech commented on July 23, 2024

Hrm. The code is pretty simple - the url it submits looks like this:

https://api.forecast.io/forecast/api-key/41.31,-82.13,2016-04-07T08:22:33-0800?exclude=minutely,hourly

I don't think there's any way there could be a bug screwing up the coordinates, so the only other possibility is an issue with the time or timezone. The timezone it submits is the one your phone considers itself to be in, not necessarily the one for the latitude/longitude you enter. Any chance your phone/tablet is set to a different timezone than GMT -4?

from mirror.

flatoutdodge avatar flatoutdodge commented on July 23, 2024

The tablet is set to the correct GMT of -4. Right now the current temperature is correct but my High is off by 6º. Is the high/low data for the day or for the next 24 hours? Its really hard to tell if the temperature module is working correctly or if the temperatures are similar in another location, giving the impression that it is.

from mirror.

thepiratejesh avatar thepiratejesh commented on July 23, 2024

Having the same problem as Thamial.

from mirror.

thepiratejesh avatar thepiratejesh commented on July 23, 2024

For me, the problem had something to do with the way that the time is being entered into the URL. I fixed the problem by changing the line:

forecastTime += "T" + new SimpleDateFormat("HH:mm:ss-0800").format(new Date());

to:

forecastTime += "T" + new SimpleDateFormat("HH:mm:ss").format(new Date());

from mirror.

ineptech avatar ineptech commented on July 23, 2024

Argh! Thank you @thepiratejesh, you're right, I was hard-coding GMT-0800 in to the url. Sorry it took me so long to look at this, been a busy time at home but I will get this checked in ASAP.

from mirror.

Related Issues (18)

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.