GithubHelp home page GithubHelp logo

Comments (11)

mcbrown1010 avatar mcbrown1010 commented on August 25, 2024 1

I think I have fixed the issue. The problem was that I didn't use an open weather map API key. I didn't think it would need one for the time. I added the environment variable in docker and its now working

from jump.

daledavies avatar daledavies commented on August 25, 2024 1

Interesting, thanks for getting back to me.

Adding the API key will make Jump use the open weather API, the time will be shown for the location provided by the LATLONG parameter, this essentially takes the current UTC time and applies the shift in seconds for the requested location's timezone. Supplying a value for LATLONG effectively does nothing without having an API key supplied.

What I think is happening is that without using the open weather API, Jump actually just displays UTC time rather than applying the local client timezone.

I think I should probably explain this more clearly in the readme, also I can fix the case where the open weather API is not used so time is displayed in the client timezone rather than just showing UTC.

from jump.

daledavies avatar daledavies commented on August 25, 2024 1

FYI I have included a patch to resolve this, if you pull the latest commits in the main branch you'll see it.

It will be included in the next release which I will hopefully push to docker hub later this evening.

from jump.

daledavies avatar daledavies commented on August 25, 2024 1

I've created a new release and tag for v1.1.4 and pushed a new image to docker hub, I hope this works OK for you :)

from jump.

mcbrown1010 avatar mcbrown1010 commented on August 25, 2024 1

Yep, Now works without OWM API Key

from jump.

mcbrown1010 avatar mcbrown1010 commented on August 25, 2024

image
In the image you can see the correct time in my taskbar which is an hour earlier than what is shown in jump

from jump.

daledavies avatar daledavies commented on August 25, 2024

That's interesting, I'm in the UK and don't have this problem so can I ask a few questions...

  • What timezone is your client in? E.g. are you actually in the UK or just using a latitude and longitude for the UK?
  • Could you open your browser's dev tools and paste the json response from /api/weatherdata.php?

from jump.

mcbrown1010 avatar mcbrown1010 commented on August 25, 2024

I'm in the UK and I have setup the latitude and longitude as the cords of my hometown. My windows PC is displaying the correct time

I have looked in the dev tools and I found this:

DevTools failed to load source map: Could not parse content for https://my.domain.example/assets/css/weather-icons.min.css.map: Unexpected token < in JSON at position 0

edit: checked on safari in IOS and it is also displaying wrong time so its not localized to just my PC

from jump.

daledavies avatar daledavies commented on August 25, 2024

Thanks, I don't use Windows but in both Linux and Android I get the correct time across Firefox, Chrome and Edge. Unfortunately the error you pasted isn't what I need however.

In devtools can you open the network tab and copy the response from /api/weatherdata.php?

I can use this to try to reproduce your problem, it should help me to understand what differences there might be between us.

from jump.

daledavies avatar daledavies commented on August 25, 2024

Also are you using the latest release? Docker container or manually installed?

from jump.

daledavies avatar daledavies commented on August 25, 2024

Awesome, thanks for letting me know.

from jump.

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.