Page 3 of 3
Re: updated graphCombined block
Posted: Sat Dec 07, 2024 8:10 pm
by davidefa
It seems working on my site, could you provide the link to your site so I can take a look?
Re: updated graphCombined block
Posted: Sun Dec 08, 2024 3:22 pm
by Hagebeek
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.
Re: updated graphCombined block
Posted: Sun Dec 08, 2024 9:25 pm
by davidefa
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
Posted: Mon Dec 09, 2024 8:37 am
by Hagebeek
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?
Re: updated graphCombined block
Posted: Mon Jan 20, 2025 4:55 am
by milesb
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
Re: updated graphCombined block
Posted: Thu Jan 30, 2025 3:11 am
by mchd17
Same here...dates and times on X axis are 5 hours off
Re: updated graphCombined block
Posted: Thu Jan 30, 2025 8:26 am
by alexvanuxem
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
Re: updated graphCombined block
Posted: Thu Jan 30, 2025 10:34 pm
by mchd17
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
Re: updated graphCombined block
Posted: Fri Jan 31, 2025 8:00 am
by alexvanuxem
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
Re: updated graphCombined block
Posted: Fri Jan 31, 2025 4:50 pm
by alexvanuxem
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
Re: updated graphCombined block
Posted: Fri Jan 31, 2025 8:54 pm
by mchd17
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.
Re: updated graphCombined block
Posted: Sat Feb 01, 2025 3:55 pm
by mchd17
my database entries are the right time when i look in the db, has to be a highcharts code edit
Re: updated graphCombined block
Posted: Sat Feb 01, 2025 4:50 pm
by alexvanuxem
the zip file is the complete 3.0 block
Re: updated graphCombined block
Posted: Fri Feb 07, 2025 9:18 pm
by mchd17
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?
Re: updated graphCombined block
Posted: Thu Feb 13, 2025 10:15 pm
by milesb
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
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.
I am running Meteotemplate 19.0, and PHP 8.2.27
Re: updated graphCombined block
Posted: Sun Feb 16, 2025 6:57 pm
by mchd17
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