Comments (11)
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.
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.
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.
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.
Yep, Now works without OWM API Key
from jump.
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.
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.
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.
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.
Also are you using the latest release? Docker container or manually installed?
from jump.
Awesome, thanks for letting me know.
from jump.
Related Issues (20)
- This is a request not an issue HOT 1
- Not an issue but request/idea HOT 2
- LANGUAGE not respected HOT 4
- Change Time? HOT 4
- Cache favicons HOT 4
- LANGUAGE integration: FR HOT 2
- Created file owner is root fro docker HOT 1
- Pull time from system locale. HOT 2
- Font characters like "g" get cut off HOT 8
- DEBUG setting not honoured HOT 15
- Docker Integration in Swarm HOT 2
- Update time for greetings
- LANGUAGE: Integration FR Weather HOT 1
- REQUEST: custom CSS Box
- ampersand in url in sites.json breaks icon... HOT 5
- PHP Fatal error: No sites have been tagged with "home" HOT 8
- Suggestion: "data" directory
- How to edit the CSS? HOT 1
- unRAID Docker not able to customize site name, weather ip key HOT 3
- Automatically loading a new image from UNSPLASH when the page is refreshed? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jump.