updated graphCombined block

davidefa
Expert
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

Post by davidefa » Sat Dec 07, 2024 8:10 pm

It seems working on my site, could you provide the link to your site so I can take a look?
Image

Hagebeek
Newbie
Newbie
Posts: 3
Joined: Sat Aug 06, 2022 3:43 pm

Re: updated graphCombined block

Post by Hagebeek » Sun Dec 08, 2024 3:22 pm

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.

davidefa
Expert
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

Post by davidefa » Sun Dec 08, 2024 9:25 pm

I see you are still on version 2.9 of the block:
{"version":2.9,"name":"Graph - combined","namespace":"graphCombined","variables":[
Image

Hagebeek
Newbie
Newbie
Posts: 3
Joined: Sat Aug 06, 2022 3:43 pm

Re: updated graphCombined block

Post by Hagebeek » Mon Dec 09, 2024 8:37 am

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?

milesb
Observer
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

Post by milesb » Mon Jan 20, 2025 4:55 am

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

mchd17
Forecaster
Forecaster
Posts: 196
Joined: Sat Mar 17, 2018 2:01 am
Location: Illinois
Station model: Davis Pro2 Plus
Software: Meteobridge

Re: updated graphCombined block

Post by mchd17 » Thu Jan 30, 2025 3:11 am

Same here...dates and times on X axis are 5 hours off
Image

alexvanuxem
Forecaster
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

Post by alexvanuxem » 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
Image

mchd17
Forecaster
Forecaster
Posts: 196
Joined: Sat Mar 17, 2018 2:01 am
Location: Illinois
Station model: Davis Pro2 Plus
Software: Meteobridge

Re: updated graphCombined block

Post by mchd17 » Thu Jan 30, 2025 10:34 pm

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
Image

alexvanuxem
Forecaster
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

Post by alexvanuxem » Fri Jan 31, 2025 8:00 am

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
Image

alexvanuxem
Forecaster
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

Post by alexvanuxem » Fri Jan 31, 2025 4:50 pm

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
Attachments
graphCombined.zip
(7.96 KiB) Downloaded 533 times
Image

mchd17
Forecaster
Forecaster
Posts: 196
Joined: Sat Mar 17, 2018 2:01 am
Location: Illinois
Station model: Davis Pro2 Plus
Software: Meteobridge

Re: updated graphCombined block

Post by mchd17 » Fri Jan 31, 2025 8:54 pm

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.
Image

mchd17
Forecaster
Forecaster
Posts: 196
Joined: Sat Mar 17, 2018 2:01 am
Location: Illinois
Station model: Davis Pro2 Plus
Software: Meteobridge

Re: updated graphCombined block

Post by mchd17 » Sat Feb 01, 2025 3:55 pm

my database entries are the right time when i look in the db, has to be a highcharts code edit
Image

alexvanuxem
Forecaster
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

Post by alexvanuxem » Sat Feb 01, 2025 4:50 pm

the zip file is the complete 3.0 block
Image

mchd17
Forecaster
Forecaster
Posts: 196
Joined: Sat Mar 17, 2018 2:01 am
Location: Illinois
Station model: Davis Pro2 Plus
Software: Meteobridge

Re: updated graphCombined block

Post by mchd17 » Fri Feb 07, 2025 9:18 pm

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?
Image

milesb
Observer
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

Post by milesb » Thu Feb 13, 2025 10:15 pm

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

mchd17
Forecaster
Forecaster
Posts: 196
Joined: Sat Mar 17, 2018 2:01 am
Location: Illinois
Station model: Davis Pro2 Plus
Software: Meteobridge

Re: updated graphCombined block

Post by mchd17 » Sun Feb 16, 2025 6:57 pm

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
Image

Post Reply