updated graphCombined block

davidefa
Expert
Expert
Posts: 862
Joined: Tue Jan 12, 2021 8:03 am
Location: Italy
Station model: WH2650
Software: WH2650 (direct upload)
Contact:

updated graphCombined block

Post by davidefa » Mon Mar 22, 2021 6:30 pm

I like this block but I find it does not 'play well' with other blocks containing graphs.
The block is ok when it is the only graph block in the page, or when it is executed enlarged.
But when inserted together with interactiveGraph, gfs, meteogram... it interacts with them producing unwanted behaviours: for example tooltip don't disappear when exiting graphs, tooltip move when cursor in different graph, the cursors in graphCombined lose syncronicity.
The only way I found to stop its effects is to 'jail it' in an iframe ( i renamed it to graphCombinedI so you can test it without uninstalling the official version ).

UPDATE
I don't even remember what I did ( no, I'm not getting old... I am old! )
Usage:
- install block graphCombined ( the original one ) and configure it as usual
- install block graphCombinedI ( the attached one )
- copy the file indexFull1.php to the root directory of meteotemplate ( where already is indexFull.php )
- enjoy
As explained above, this is only an iframe wrapper of the original block ( the modified indexFull1.php is needed to remove the footer from the iframe )
Attachments
graphCombinedI_2.1b.zip
(2.23 KiB) Downloaded 109 times
Image

davidefa
Expert
Expert
Posts: 862
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 Mar 27, 2021 9:51 pm

ver 2.1

Extended the sensor's choice ( so you can graph any sensor):
T - temperature,
A - apparent temperature,
D - dew point,
H - humidity,
P - pressure,
W - wind speed,
G - wind gust,
B - wind bearing,
R - (cumulative) precipitation ,
RD - daily precipitation,
RR - rain rate,
S - solar radiation,
TIN - int. temperature,
HIN - int. humidity,
UV - uv,
T# - extra temperature #,
H# - extra humidity #,
TS# - soil temperature #,
SM# - soil moisture #,
LW# - leaf wetness #,
LT# - leaf temperature #,
SN - snowfall,
SD - snow depth,
NL - noise level,
L - lightning,
SS - sunshine,
CO2_#,
NO2_#,
CO_#,
SO2_#,
O3_#,
PP# - particulate pollution #

NOTE
Substitute # with a digit ( 1-4 or 1-8 depending on sensor )

ver 2.2

Minor update: ajusted label's format, so that it 'jumps' less when moving cursor on the graph.
Added a parameter to set the label's offset ( from the right of the graph )
Attachments
graphCombined_2.2.zip
(5.64 KiB) Downloaded 98 times
graphCombined_2.1a.zip
(5.84 KiB) Downloaded 83 times
Image

davidefa
Expert
Expert
Posts: 862
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 » Fri May 14, 2021 4:57 pm

ver 2.3
Added parameter to define sensor's name and graph's color
Attachments
graphCombined_2.3a.zip
(6.09 KiB) Downloaded 91 times
Image

mchd17
Forecaster
Forecaster
Posts: 188
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 Nov 28, 2021 5:22 pm

great block

found issue

my soil temps are in C not F

any work around?
Image

davidefa
Expert
Expert
Posts: 862
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 Nov 28, 2021 9:46 pm

ver 2.3b
Corrected extra sensor temperature conversion ( this bug only occurred when temperatures saved in °F in db )
Attachments
graphCombined_2.3b.zip
(6.15 KiB) Downloaded 41 times
Image

davidefa
Expert
Expert
Posts: 862
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 Nov 28, 2021 9:48 pm

@mchd17
This should fix the bug you 've found.
Please confirm if everything is ok ( as I should have done the same mistake in other blocks too )
Image

mchd17
Forecaster
Forecaster
Posts: 188
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 Nov 28, 2021 11:28 pm

thanks for trying to fix, but tried version b, no luck

my db entries are in C not F

I have meteotemplate showing in F, doesn't work with soil temps :cry:
Image

mchd17
Forecaster
Forecaster
Posts: 188
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 Nov 28, 2021 11:29 pm

i'm using meteobridge nano to feed the db, if that matters
Image

mchd17
Forecaster
Forecaster
Posts: 188
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 Nov 28, 2021 11:31 pm

i see my temp inside is in F not C in db, hmmmmmm
Image

mchd17
Forecaster
Forecaster
Posts: 188
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 Nov 28, 2021 11:38 pm

Original Soil temp block shows correct temp format as F not C

Seems that all db entries are imperial not metric, except the soil temps.

Dont know if it's meteobridge or meteotemplate.
Image

davidefa
Expert
Expert
Posts: 862
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 » Mon Nov 29, 2021 5:31 pm

In the main sensor table ( alldata ) units are configurable ( you have used imperial units ).
In the extra sensor table (alldataExtra ) units are fixed ( and metric ).
This is not a problem, but I didn't realize this ( in particular that the alldataExtra table is metric ).
I tried to reproduce the issue on my testing server but everything works as should.
So, please, upload the following script to your graphCombined directory ( it has a debug option to help me diagnose the problem ).
Attachments
data1.zip
(2.2 KiB) Downloaded 34 times
Image

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

Re: updated graphCombined block

Post by mchd17 » Mon Nov 29, 2021 10:35 pm

its in the graphCombined dir, had to overwrite the data.php that was there. i saved that one as well.
Image

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

Re: updated graphCombined block

Post by mchd17 » Mon Nov 29, 2021 10:42 pm

look at that, it appears to be showing F now :D :D :D

i would like to try the old data.php

i will wait to upload/overwrite with the original until i hear back from you. i want to see if it goes back to metric

really appreciate the help
Image

davidefa
Expert
Expert
Posts: 862
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 » Mon Nov 29, 2021 11:15 pm

Ok, try overwriting with this ( is the script from v2.3 ), same script without debug mode
Attachments
data.zip
(2.1 KiB) Downloaded 44 times
Image

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

Re: updated graphCombined block

Post by mchd17 » Mon Nov 29, 2021 11:50 pm

Working fine :D
Image

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

Re: updated graphCombined block

Post by mchd17 » Mon Nov 29, 2021 11:55 pm

i uploaded the first one i saved as a backup. It changed back to metric. Look at it here
Attachments
datashowsmetric.zip
(2.1 KiB) Downloaded 40 times
Image

davidefa
Expert
Expert
Posts: 862
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 » Tue Nov 30, 2021 10:25 pm

Ok, the script you uploaded is v2.3a ( v2.3b already uploaded is ok, ).
Thanks for sharing.

P.S.
Forgot to add that if you need more than 4 extrasensors ( as you are uploading SM1-SM6 ) you can install this mod.
Image

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

Re: updated graphCombined block

Post by mchd17 » Tue Nov 30, 2021 10:52 pm

Thanks alot for the help!
Image

davidefa
Expert
Expert
Posts: 862
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 » Thu Dec 23, 2021 10:08 pm

ver 2.3c
Minor update: added evapotranspiration
Attachments
graphCombined_2.3c.zip
(6.31 KiB) Downloaded 41 times
Image

mchd17
Forecaster
Forecaster
Posts: 188
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 Jan 16, 2022 8:54 pm

How do I assign a sensors name? So I can use sensor T1 and define it as TV Shed?
Image

mchd17
Forecaster
Forecaster
Posts: 188
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 Jan 16, 2022 9:01 pm

:lol: :lol: Nevermind, i am getting old, i actually read the heading in the block setting. Got it!
Image

mchd17
Forecaster
Forecaster
Posts: 188
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 Jan 16, 2022 9:07 pm

Cant use more than 1 word as name. I had to use the underscore to separate the two.
name_sensor.png
name_sensor.png (6.24 KiB) Viewed 4515 times
Image

mchd17
Forecaster
Forecaster
Posts: 188
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 Jan 16, 2022 9:13 pm

Thanks again for this block, looks great!!
Image

mchd17
Forecaster
Forecaster
Posts: 188
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 Jan 16, 2022 9:25 pm

One more thing, just tried using B-Wind Bearing, it will shut all my graphs off. I must not have the correct updated file yet.
Image

davidefa
Expert
Expert
Posts: 862
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 Jan 16, 2022 11:22 pm

ver 2.4
- corrected bug in wind bearing visualization
- spaces are allowed in sensor name
Attachments
graphCombined_2.4.zip
(6.4 KiB) Downloaded 36 times
Image

Post Reply