updated graphCombined block
-
davidefa
- Expert

- Posts: 888
- Joined: Tue Jan 12, 2021 8:03 am
- Location: Italy
- Station model: WH2650
- Software: WH2650 (direct upload)
- Contact:
Re: updated graphCombined block
It seems working on my site, could you provide the link to your site so I can take a look?
Re: updated graphCombined block
Sure: https://meteo-naaldwijk.nl/meteo/indexMobile.php
Now I see that the page displays fine on my macbook, but on the iPhone I see an empty block. Strange.
I use Safari but also tried Firefox Focus with the same result.
Thanks.
Now I see that the page displays fine on my macbook, but on the iPhone I see an empty block. Strange.
I use Safari but also tried Firefox Focus with the same result.
Thanks.
-
davidefa
- Expert

- Posts: 888
- Joined: Tue Jan 12, 2021 8:03 am
- Location: Italy
- Station model: WH2650
- Software: WH2650 (direct upload)
- Contact:
Re: updated graphCombined block
I see you are still on version 2.9 of the block:
{"version":2.9,"name":"Graph - combined","namespace":"graphCombined","variables":[
Re: updated graphCombined block
Quite embarrassing, I guess I have not unpacked the new version zip file.
Once unpacked, the Graphcombined block is working again. Thanks
I changed both fontSize occurrences to 10px, so text is displayed properly on a mobile device. Maybe this is an option for configuration in settings.php?
Once unpacked, the Graphcombined block is working again. Thanks
I changed both fontSize occurrences to 10px, so text is displayed properly on a mobile device. Maybe this is an option for configuration in settings.php?
-
milesb
- Observer

- Posts: 49
- Joined: Tue Mar 26, 2019 10:38 pm
- Location: Asheville, NC
- Station model: Davis Vantage Pro2
- Software: Weather Display
- Contact:
Re: updated graphCombined block
I got graphcombined block working with suggestions and files from those here with much more php knowledge than I have, which is virtually none on my part.
Running graphCombined 3.0 and got it working by replacing the data.php with the version from grahpCombined 2.0
Two issues with how the graphs display.
#1 the dates and times along the X axis are off by 5 hours. At first, I thought it was because I am 5 hours behind GMT. But looking at other sites, even those in Europe, I noted they are also off by 5 hours.
#2 when holding the cursor over a graph line, the value at that point is not displayed, as I believe it should display, date - time - value. Mine only displays date - time
Running graphCombined 3.0 and got it working by replacing the data.php with the version from grahpCombined 2.0
Two issues with how the graphs display.
#1 the dates and times along the X axis are off by 5 hours. At first, I thought it was because I am 5 hours behind GMT. But looking at other sites, even those in Europe, I noted they are also off by 5 hours.
#2 when holding the cursor over a graph line, the value at that point is not displayed, as I believe it should display, date - time - value. Mine only displays date - time
-
alexvanuxem
- Forecaster

- Posts: 212
- Joined: Mon Jan 31, 2022 4:41 pm
- Location: Sint-Katelijne-Waver, Belgium
- Station model: Davis Vantage Pro 2
- Software: Meteobridge
- Contact:
Re: updated graphCombined block
Hi, when I check your site http://www.sunset-weather.com/template/indexDesktop.php, and check your 'offset' it's not 5 hours but 1 hour just like with me,
(i put my cursor on midnight of a date, and it shows not 00:00 but 01:00).
Also you should see, as you said the data when you hover over a graph.
But you said you used the data.php from an older version of grapgcombined (2.0) with inside the latest version (3.0).
You shouldn't do that.
Are you using meteotemplate 19.0 and which php version are you using? (in admin section, you can check this under the info tab).
KR
Alex
(i put my cursor on midnight of a date, and it shows not 00:00 but 01:00).
Also you should see, as you said the data when you hover over a graph.
But you said you used the data.php from an older version of grapgcombined (2.0) with inside the latest version (3.0).
You shouldn't do that.
Are you using meteotemplate 19.0 and which php version are you using? (in admin section, you can check this under the info tab).
KR
Alex
-
mchd17
- Forecaster

- Posts: 196
- Joined: Sat Mar 17, 2018 2:01 am
- Location: Illinois
- Station model: Davis Pro2 Plus
- Software: Meteobridge
Re: updated graphCombined block
i have enabled the block so you can view it. time on x axis is way off. i'm still on php 7.4 and 18.0 mt
time within graph is good though
time within graph is good though
-
alexvanuxem
- Forecaster

- Posts: 212
- Joined: Mon Jan 31, 2022 4:41 pm
- Location: Sint-Katelijne-Waver, Belgium
- Station model: Davis Vantage Pro 2
- Software: Meteobridge
- Contact:
Re: updated graphCombined block
OK, still the same as in my previous mail.
only one hour off for me.
we are on php 8.2 , MTv 19.0 and graphcombined 3.0 already.
I will send you the 3.0 version later today.
Grtz
a
only one hour off for me.
we are on php 8.2 , MTv 19.0 and graphcombined 3.0 already.
I will send you the 3.0 version later today.
Grtz
a
-
alexvanuxem
- Forecaster

- Posts: 212
- Joined: Mon Jan 31, 2022 4:41 pm
- Location: Sint-Katelijne-Waver, Belgium
- Station model: Davis Vantage Pro 2
- Software: Meteobridge
- Contact:
Re: updated graphCombined block
Did you set your timezone correctly in the main settings page?
I checked the php script for the graphcombined block and I think the offset is just your timezone which is not in sync with the graph x axis.
but hey here's the new version , but in php 8.2
make a backup first
grtz Alex
I checked the php script for the graphcombined block and I think the offset is just your timezone which is not in sync with the graph x axis.
but hey here's the new version , but in php 8.2
make a backup first
grtz Alex
- Attachments
-
- graphCombined.zip
- (7.96 KiB) Downloaded 533 times
-
mchd17
- Forecaster

- Posts: 196
- Joined: Sat Mar 17, 2018 2:01 am
- Location: Illinois
- Station model: Davis Pro2 Plus
- Software: Meteobridge
Re: updated graphCombined block
yes, timezone is set correctly. the file you posted is only the settings file. i am using v3.0 block.
x axis is not showing my timezone time, but within graph is.
x axis is not showing my timezone time, but within graph is.
-
mchd17
- Forecaster

- Posts: 196
- Joined: Sat Mar 17, 2018 2:01 am
- Location: Illinois
- Station model: Davis Pro2 Plus
- Software: Meteobridge
Re: updated graphCombined block
my database entries are the right time when i look in the db, has to be a highcharts code edit
-
alexvanuxem
- Forecaster

- Posts: 212
- Joined: Mon Jan 31, 2022 4:41 pm
- Location: Sint-Katelijne-Waver, Belgium
- Station model: Davis Vantage Pro 2
- Software: Meteobridge
- Contact:
-
mchd17
- Forecaster

- Posts: 196
- Joined: Sat Mar 17, 2018 2:01 am
- Location: Illinois
- Station model: Davis Pro2 Plus
- Software: Meteobridge
Re: updated graphCombined block
using the 3.0, still x axis time is 6 hours off
i have messed around with the graphCombinedblock.php and the data.php
i have tried several different things to the code, no help
any other ideas?
i have messed around with the graphCombinedblock.php and the data.php
i have tried several different things to the code, no help
any other ideas?
-
milesb
- Observer

- Posts: 49
- Joined: Tue Mar 26, 2019 10:38 pm
- Location: Asheville, NC
- Station model: Davis Vantage Pro2
- Software: Weather Display
- Contact:
Re: updated graphCombined block
The time displayed when the cursor is on midnight seems to correspond to the time zone we are in. I am EST (GMT-5) and I believe you are GMT+1. When I put the cursor on midnight, it shows 7PM.alexvanuxem wrote: ↑Thu Jan 30, 2025 8:26 am Hi, when I check your site http://www.sunset-weather.com/template/indexDesktop.php, and check your 'offset' it's not 5 hours but 1 hour just like with me,
(i put my cursor on midnight of a date, and it shows not 00:00 but 01:00).
Also you should see, as you said the data when you hover over a graph.
But you said you used the data.php from an older version of grapgcombined (2.0) with inside the latest version (3.0).
You shouldn't do that.
Are you using meteotemplate 19.0 and which php version are you using? (in admin section, you can check this under the info tab).
KR
Alex
I am running Meteotemplate 19.0, and PHP 8.2.27
-
mchd17
- Forecaster

- Posts: 196
- Joined: Sat Mar 17, 2018 2:01 am
- Location: Illinois
- Station model: Davis Pro2 Plus
- Software: Meteobridge
Re: updated graphCombined block
updated to 19.0 and php 8.4
block is still showing wrong time in x axis. it's not showing correct timezone time. i believe its showing utc time, my timezone is utc -6
time in footer is correct. times in db are correct
block is still showing wrong time in x axis. it's not showing correct timezone time. i believe its showing utc time, my timezone is utc -6
time in footer is correct. times in db are correct
