Page 1 of 3
updated graphCombined block
Posted: Mon Mar 22, 2021 6:30 pm
by davidefa
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 )
2024/12/02
- ver 3.0 corrected javascript map function call ( causing an error )
2026/02/08
- see
dashboardCombined block for a replacement block
Re: updated graphCombined block
Posted: Sat Mar 27, 2021 9:51 pm
by davidefa
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 )
Re: updated graphCombined block
Posted: Fri May 14, 2021 4:57 pm
by davidefa
ver 2.3
Added parameter to define sensor's name and graph's color
Re: updated graphCombined block
Posted: Sun Nov 28, 2021 5:22 pm
by mchd17
great block
found issue
my soil temps are in C not F
any work around?
Re: updated graphCombined block
Posted: Sun Nov 28, 2021 9:46 pm
by davidefa
ver 2.3b
Corrected extra sensor temperature conversion ( this bug only occurred when temperatures saved in °F in db )
Re: updated graphCombined block
Posted: Sun Nov 28, 2021 9:48 pm
by davidefa
@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 )
Re: updated graphCombined block
Posted: Sun Nov 28, 2021 11:28 pm
by mchd17
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

Re: updated graphCombined block
Posted: Sun Nov 28, 2021 11:29 pm
by mchd17
i'm using meteobridge nano to feed the db, if that matters
Re: updated graphCombined block
Posted: Sun Nov 28, 2021 11:31 pm
by mchd17
i see my temp inside is in F not C in db, hmmmmmm
Re: updated graphCombined block
Posted: Sun Nov 28, 2021 11:38 pm
by mchd17
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.
Re: updated graphCombined block
Posted: Mon Nov 29, 2021 5:31 pm
by davidefa
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 ).
Re: updated graphCombined block
Posted: Mon Nov 29, 2021 10:35 pm
by mchd17
its in the graphCombined dir, had to overwrite the data.php that was there. i saved that one as well.
Re: updated graphCombined block
Posted: Mon Nov 29, 2021 10:42 pm
by mchd17
look at that, it appears to be showing F now
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
Re: updated graphCombined block
Posted: Mon Nov 29, 2021 11:15 pm
by davidefa
Ok, try overwriting with this ( is the script from v2.3 ), same script without debug mode
Re: updated graphCombined block
Posted: Mon Nov 29, 2021 11:50 pm
by mchd17
Working fine

Re: updated graphCombined block
Posted: Mon Nov 29, 2021 11:55 pm
by mchd17
i uploaded the first one i saved as a backup. It changed back to metric. Look at it here
Re: updated graphCombined block
Posted: Tue Nov 30, 2021 10:25 pm
by davidefa
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.
Re: updated graphCombined block
Posted: Tue Nov 30, 2021 10:52 pm
by mchd17
Thanks alot for the help!
Re: updated graphCombined block
Posted: Thu Dec 23, 2021 10:08 pm
by davidefa
ver 2.3c
Minor update: added evapotranspiration
Re: updated graphCombined block
Posted: Sun Jan 16, 2022 8:54 pm
by mchd17
How do I assign a sensors name? So I can use sensor T1 and define it as TV Shed?
Re: updated graphCombined block
Posted: Sun Jan 16, 2022 9:01 pm
by mchd17

Nevermind, i am getting old, i actually read the heading in the block setting. Got it!
Re: updated graphCombined block
Posted: Sun Jan 16, 2022 9:07 pm
by mchd17
Cant use more than 1 word as name. I had to use the underscore to separate the two.

- name_sensor.png (6.24 KiB) Viewed 77072 times
Re: updated graphCombined block
Posted: Sun Jan 16, 2022 9:13 pm
by mchd17
Thanks again for this block, looks great!!
Re: updated graphCombined block
Posted: Sun Jan 16, 2022 9:25 pm
by mchd17
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.
Re: updated graphCombined block
Posted: Sun Jan 16, 2022 11:22 pm
by davidefa
ver 2.4
- corrected bug in wind bearing visualization
- spaces are allowed in sensor name