Interactive Graph

Post Reply
User avatar
jay_hoehn
Language Admin
Language Admin
Posts: 135
Joined: Sun Aug 20, 2017 1:45 pm
Location: Las Cruces, NM USA
Station model: Vantage Pro 2 Plus
Software: WeeWx
Contact:

Interactive Graph

Post by jay_hoehn » Tue Jan 09, 2018 3:24 pm

My Interactive graph is showing the wrong time scale at the bottom and the times in the popup boxes. The time is exactly minus 7 hours. The data displayed is correct for the correct time. Example: The temp at 8:00 am this morning was 41.3 if you look at the time of 1:00 am on the graph is shows 41.3. It is the graph times that are wrong. Help please.

Jay

User avatar
iatros
Language Admin
Language Admin
Posts: 147
Joined: Mon Aug 21, 2017 5:56 am
Location: Flims Waldhaus Switzerland
Station model: Davis Pro 2 6163
Software: Meteobridge
Contact:

Re: Interactive Graph

Post by iatros » Tue Jan 09, 2018 4:07 pm

Hi Jay
to increase your confusion:
seen from here (Switzerland), it looks all right (8 am - 41.3 °F) ?
Clipboard-1.jpg
Clipboard-1.jpg (169.63 KiB) Viewed 53162 times
iatros
Image

Language Admin für Deutsch

User avatar
jay_hoehn
Language Admin
Language Admin
Posts: 135
Joined: Sun Aug 20, 2017 1:45 pm
Location: Las Cruces, NM USA
Station model: Vantage Pro 2 Plus
Software: WeeWx
Contact:

Re: Interactive Graph

Post by jay_hoehn » Tue Jan 09, 2018 4:24 pm

Latros,
Thanks for looking. I am confused. I deleted the cache and still seeing the same issue.
Jay

User avatar
Jachym
Site Admin
Site Admin
Posts: 1686
Joined: Fri Aug 18, 2017 10:12 pm
Location: Brno, Czech Republic
Station model: WH1080
Software: Meteobridge
Contact:

Re: Interactive Graph

Post by Jachym » Tue Jan 09, 2018 5:59 pm

I suspect they must have made some change in Highcharts, because similar issue was in Meteogram and Interactive Graph was working fine, it is there since v1, people would notice...

User avatar
jay_hoehn
Language Admin
Language Admin
Posts: 135
Joined: Sun Aug 20, 2017 1:45 pm
Location: Las Cruces, NM USA
Station model: Vantage Pro 2 Plus
Software: WeeWx
Contact:

Re: Interactive Graph

Post by jay_hoehn » Tue Jan 09, 2018 6:28 pm

Can it be fixed?

Jay

User avatar
Jachym
Site Admin
Site Admin
Posts: 1686
Joined: Fri Aug 18, 2017 10:12 pm
Location: Brno, Czech Republic
Station model: WH1080
Software: Meteobridge
Contact:

Re: Interactive Graph

Post by Jachym » Tue Jan 09, 2018 6:43 pm

I will have to look at what exactly they did

User avatar
georg
Observer
Observer
Posts: 42
Joined: Sun Aug 20, 2017 8:59 pm
Location: Denmark
Station model: Davis Pro 2+
Software: Weather Display
Contact:

Re: Interactive Graph

Post by georg » Wed Jan 10, 2018 1:09 pm

jay_hoehn wrote: Tue Jan 09, 2018 3:24 pm My Interactive graph is showing the wrong time scale at the bottom and the times in the popup boxes. The time is exactly minus 7 hours. The data displayed is correct for the correct time. Example: The temp at 8:00 am this morning was 41.3 if you look at the time of 1:00 am on the graph is shows 41.3. It is the graph times that are wrong. Help please.

Jay
Mine is plus 1 hour, could it bee something related to UTC time? (Denmark UTC +1 hour --- US UTC -7 hour)

https://www.timeanddate.com/time/map/

Graftime on popup shows correct time.
Image

User avatar
Jachym
Site Admin
Site Admin
Posts: 1686
Joined: Fri Aug 18, 2017 10:12 pm
Location: Brno, Czech Republic
Station model: WH1080
Software: Meteobridge
Contact:

Re: Interactive Graph

Post by Jachym » Wed Jan 10, 2018 1:57 pm

I sent Jay a fix to test, if it works I will release it

User avatar
iatros
Language Admin
Language Admin
Posts: 147
Joined: Mon Aug 21, 2017 5:56 am
Location: Flims Waldhaus Switzerland
Station model: Davis Pro 2 6163
Software: Meteobridge
Contact:

Re: Interactive Graph

Post by iatros » Wed Jan 10, 2018 2:17 pm


Mine is plus 1 hour, could it bee something related to UTC time? (Denmark UTC +1 hour --- US UTC -7 hour)

https://www.timeanddate.com/time/map/

Graftime on popup shows correct time.
I'm UTC +1 also - my interactive graph is correct!
Image

Language Admin für Deutsch

User avatar
jay_hoehn
Language Admin
Language Admin
Posts: 135
Joined: Sun Aug 20, 2017 1:45 pm
Location: Las Cruces, NM USA
Station model: Vantage Pro 2 Plus
Software: WeeWx
Contact:

Re: Interactive Graph

Post by jay_hoehn » Thu Jan 11, 2018 5:48 pm

Jachym,

Not sure if this might help, but the new lite mobile site interactive graph has the correct times on it. Just noticed this.

Jay

User avatar
georg
Observer
Observer
Posts: 42
Joined: Sun Aug 20, 2017 8:59 pm
Location: Denmark
Station model: Davis Pro 2+
Software: Weather Display
Contact:

Re: Interactive Graph

Post by georg » Thu Jan 11, 2018 7:33 pm

Noticed that the popup on the block shows the correct time.
It is only the block it self that differs. (+1 hour ahead)
Image
Image

User avatar
Jachym
Site Admin
Site Admin
Posts: 1686
Joined: Fri Aug 18, 2017 10:12 pm
Location: Brno, Czech Republic
Station model: WH1080
Software: Meteobridge
Contact:

Re: Interactive Graph

Post by Jachym » Thu Jan 11, 2018 7:43 pm

Hi,
yes, which makes no sense... the new mobile homepage uses the same setting as the interactiveGraph one

droiddk
Newbie
Newbie
Posts: 7
Joined: Sat Oct 21, 2017 3:46 pm

Re: Interactive Graph

Post by droiddk » Thu Jan 11, 2018 8:00 pm

georg wrote: Thu Jan 11, 2018 7:33 pm Noticed that the popup on the block shows the correct time.
It is only the block it self that differs. (+1 hour ahead)
Image
Hi georg

Your "big" graph looks fine to me. Time is now 20:58 and latest record from 20:55
Time on x-axis on the right is 21:00
http://vejr.arloese.dk/template/pages/station/graph.php

Inspector gives this option:

Highcharts.setOptions({
global: {
useUTC: true
},
lang: {
months: ['Januar', 'Februar', 'Marts', 'April', 'Maj', 'Juni', 'Juli', 'August', 'September', 'Oktober', 'November', 'December'],
shortMonths: ['Jan', 'Feb', 'Mar', 'Apr', 'Maj', 'Jun', 'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Dec'],
weekdays: ['Søn', 'Man', 'Tir', 'Ons', 'Tor', 'Fre', 'Lør'],
resetZoom: ['Standard zoom']
}
});

But this is one hour ahead:
http://vejr.arloese.dk/template/indexDesktop.php

Inspector gives this option:

Highcharts.setOptions({
global: {
useUTC: true
},
lang: {
months: ['Januar', 'Februar', 'Marts', 'April', 'Maj', 'Juni', 'Juli', 'August', 'September', 'Oktober', 'November', 'December'],
shortMonths: ['Jan', 'Feb', 'Mar', 'Apr', 'Maj', 'Jun', 'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Dec'],
weekdays: ['Søn', 'Man', 'Tir', 'Ons', 'Tor', 'Fre', 'Lør'],
resetZoom: ['Standard zoom']
}
});

Inspector also finds this option:

Highcharts.setOptions({
global: {
useUTC: false,
timezoneOffset: -60
},
lang: {
months: ['Januar', 'Februar', 'Marts', 'April', 'Maj', 'Juni', 'Juli', 'August', 'September', 'Oktober', 'November', 'December'],
shortMonths: ['Jan', 'Feb', 'Mar', 'Apr', 'Maj', 'Jun', 'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Dec'],
weekdays: ['Søn', 'Man', 'Tir', 'Ons', 'Tor', 'Fre', 'Lør'],
resetZoom: ['Standard zoom']
}
});

Maybe you wanna have a look at the timezone-option: https://api.highcharts.com/highcharts/global.timezone
Requires moment.js but user just have to type in location and Highcharts takes care of the rest (also at DST-change).

Kind Regards

User avatar
Jachym
Site Admin
Site Admin
Posts: 1686
Joined: Fri Aug 18, 2017 10:12 pm
Location: Brno, Czech Republic
Station model: WH1080
Software: Meteobridge
Contact:

Re: Interactive Graph

Post by Jachym » Thu Jan 11, 2018 10:18 pm

Highcharts adjusts time based on user system time, which is a problem because thats not what we want. Setting it to UTC should prevent this because it tells the script not to convert anything. What puzzles me is that the same setting works in other blocks/pages

droiddk
Newbie
Newbie
Posts: 7
Joined: Sat Oct 21, 2017 3:46 pm

Re: Interactive Graph

Post by droiddk » Fri Jan 12, 2018 3:43 pm

Jachym wrote: Thu Jan 11, 2018 10:18 pm ...Setting it to UTC should prevent this because it tells the script not to convert anything.
Yes...but one of the options got

useUTC: false,

Regards

User avatar
Didiersm
Observer
Observer
Posts: 40
Joined: Sun Aug 20, 2017 1:05 pm
Location: Fontnilles France
Station model: WMR200
Software: Weathe rDisplay
Contact:

Re: Interactive Graph

Post by Didiersm » Thu Nov 28, 2019 2:40 pm

HI,

Sorry but the issue is still alive for me and I don't know wy!
I take the time to have a look on it since long months!
All PhP file seems to be correct.
Any idea?
thks
Station WMR200
Fontenilles Wheather - FR http://didiersm.16mb.com/template/indexDesktop.php
mailto:didier.sm@gmail.com
Image

Tigro11
Observer
Observer
Posts: 31
Joined: Fri Nov 08, 2019 8:11 pm
Location: Italy
Station model: davis 6152
Software: weatherLink - cumulus mx
Contact:

Re: Interactive Graph

Post by Tigro11 » Thu Dec 05, 2019 6:05 pm

hello guys same problem, the chart is one hour ahead, and is it possible to solve the problem?
thanks

casabastiano
Newbie
Newbie
Posts: 1
Joined: Fri Oct 20, 2017 9:17 am
Station model: Davis Vantage Pro 2
Software: WeatherCat

Re: Interactive Graph

Post by casabastiano » Fri Aug 23, 2024 10:05 am

I'm sorry, but I have the same problem. My interactive graph on the block show +2 hour. The popup on the block shows the correct time. Even if I change from "Today" to "last 24 hours" or "yesterday" the graph show the correct time, but when I open the home page the time is +2 hour (the block is set on "Today", i already try to change the default configuration but nothing changed).

Is it possible to fix this problem?

FSC830
Forecaster
Forecaster
Posts: 195
Joined: Thu Aug 02, 2018 11:40 am
Station model: Davis Vantage Pro2
Software: Meteobridge

Re: Interactive Graph

Post by FSC830 » Sat Aug 24, 2024 6:43 am

Can you please post a screenshot showing the issue?
Currently I dont know where at the page is the issue you taklng from.
Which block is it?

Regards
Image

FSC830
Forecaster
Forecaster
Posts: 195
Joined: Thu Aug 02, 2018 11:40 am
Station model: Davis Vantage Pro2
Software: Meteobridge

Re: Interactive Graph

Post by FSC830 » Wed Aug 28, 2024 6:01 am

Hi,
I see. I did install the interactiveGraph block some days ago, but all was fine.
Today I noticed that the hour at the x-axis wat abt. 2 hours ahead. Modifying time zone in main setup did not change anything.
But switching in the block from i.e. "Today" to "Yesterday" or switching from "Temperature" to "Dewpoint" the time at the axis was displayed correct again... very weird.

Regards
Image

Post Reply