new customGraph block

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

new customGraph block

Post by davidefa » Sun Feb 27, 2022 12:16 am

v0.4
It is a customizable graph block derived from interactiveGraph block.
Highly configurable, shows any number of sensors on max 4 axes.

P.S.
It is still a preview ( not fully tested/completed ), but quite functional

custom_graph.png
custom_graph.png (30.01 KiB) Viewed 1802 times
custom_graph1.png
custom_graph1.png (137.31 KiB) Viewed 1802 times
Attachments
customGraph_0.4.zip
(9.2 KiB) Downloaded 32 times
Last edited by davidefa on Sun Feb 27, 2022 12:24 am, edited 2 times in total.
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: new customGraph block

Post by davidefa » Sun Feb 27, 2022 12:18 am

custom_graph2.png
custom_graph2.png (112.54 KiB) Viewed 1799 times
Image

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

Re: new customGraph block

Post by alexvanuxem » Sun Feb 27, 2022 4:17 pm

cool! nice

I was looking for a graph that calculates the amount of bright sun shining hours, I think the criteria is everything above 100 W/m², but not sure.

Maybe a idea for you? the SS parameter doesn't work for me.

thx
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: new customGraph block

Post by davidefa » Sun Feb 27, 2022 8:06 pm

Are you looking for a software calculated sunshine hours ( to be saved in the db or simply in file meteotemplateLive.txt )?
Yes, it can be done as CumulusMX does ( don't know if weewx does it too ), in my opinion confidence on this data is quite low, but it can be done.
Last edited by davidefa on Sun Feb 27, 2022 8:36 pm, edited 1 time in total.
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: new customGraph block

Post by davidefa » Sun Feb 27, 2022 8:35 pm

ver0.5
- added Y Axis manual min/max definition
- unit measure visualization fixes

ver0.6
corrected Yaxis grid width

P.S.
If you use the interactiveGraph block you have to update it to the last version ( to remove some nasty side effects between the two blocks )
Attachments
customGraph_0.6.zip
(9.09 KiB) Downloaded 28 times
customGraph_0.5.zip
(9.1 KiB) Downloaded 39 times
Last edited by davidefa on Thu Sep 01, 2022 9:15 pm, edited 1 time in total.
Image

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

Re: new customGraph block

Post by alexvanuxem » Mon Feb 28, 2022 4:53 pm

Hi,

yes, cumulus mx way is more accurate.

I use a lot of software packages: wl, meteobridge, weather display (sucks in my opinion), the old weatherlink software, cumulus mx, pwsWD web, and meteotemplate

It would a nice to have ultimately in the db too.

i'm aware it's not very accurate, just a nice to have,

thx
Image

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

Re: new customGraph block

Post by alexvanuxem » Mon Feb 28, 2022 4:54 pm

and cumulus mx doesn't store it, at least i dont know where,

the last month is visible in graphs

cheers

alex
Image

Julius
Advisor
Advisor
Posts: 89
Joined: Fri Sep 24, 2021 10:41 pm
Station model: Barani MeteoHelix
Software: meteobridge

Re: new customGraph block

Post by Julius » Wed Dec 06, 2023 10:33 pm

As a user loving the customgraph block, I want to point out that it does not show negative temperatures.
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: new customGraph block

Post by davidefa » Wed Dec 06, 2023 11:06 pm

Could you post/pm me you settings.php file ( from the homepage/blocks/customGraph directory ) so I can check.
Image

Julius
Advisor
Advisor
Posts: 89
Joined: Fri Sep 24, 2021 10:41 pm
Station model: Barani MeteoHelix
Software: meteobridge

Re: new customGraph block

Post by Julius » Sat Dec 09, 2023 2:01 pm

homepage/blocks/customGraph/settings.php :

Code: Select all

$cGraphTitle = 'temperature / height';
$cGraphDefaultInterval = '24h';
$cGraphHeight = '400';
$cGraphDrawingSpeed = '200';
$xAxisGrid = '0';
$cGraphToInclude1 = 'T=Mast,T3=Stevenson,T1=Grass';
$cGraphColor1 = '#0066FF,#CCCCCC,#66ff00';
$cGraphType1 = 'line,line,line';
$cGraphDashStyle1 = 'shortdot,solid,shortdot';
$cGraphYAxisName1 = 'Celsius';
$cGraphYAxisUnit1 = '';
$cGraphYAxisRight1 = true;
$cGraphYAxisAutomatic1 = 'auto';
$cGraphYAxisGrid1 = '0';
$cGraphToInclude2 = 'S=solar-radiation';
$cGraphColor2 = '#DDDB00';
$cGraphType2 = 'areaspline';
$cGraphDashStyle2 = 'shortdot';
$cGraphYAxisName2 = 'radiation';
$cGraphYAxisUnit2 = 'W/m2';
$cGraphYAxisRight2 = false;
$cGraphYAxisAutomatic2 = 'auto';
$cGraphYAxisGrid2 = '0';
$cGraphToInclude3 = '';
$cGraphColor3 = '';
$cGraphType3 = '';
$cGraphDashStyle3 = 'solid';
$cGraphYAxisName3 = 'y axis 3';
$cGraphYAxisUnit3 = '';
$cGraphYAxisRight3 = false;
$cGraphYAxisAutomatic3 = 'auto';
$cGraphYAxisGrid3 = '0';
$cGraphToInclude4 = '';
$cGraphColor4 = '';
$cGraphType4 = 'spline';
$cGraphDashStyle4 = 'solid';
$cGraphYAxisName4 = 'y axis 4';
$cGraphYAxisUnit4 = '';
$cGraphYAxisRight4 = false;
$cGraphYAxisAutomatic4 = 'auto';
$cGraphYAxisGrid4 = '0';
Currently there are a few issues with this on https://broekermeer.nl
- the graph shows % instead of degrees Celsius and W/m2, and it does not show T values below zero..
- Plus, at first loading of the site, the graph does not pick anything for time-scale, keeps showing a turning/loading symbol, until you change the Time-scale value. It should default to [24h] but it does not.

Any idea, davide?
Image

Julius
Advisor
Advisor
Posts: 89
Joined: Fri Sep 24, 2021 10:41 pm
Station model: Barani MeteoHelix
Software: meteobridge

Re: new customGraph block

Post by Julius » Fri Jan 05, 2024 8:57 pm

Watch out for the frost coming Monday-Tuesday-Wednesday, so you'll see how the graph fails to show below zero temps.. (and its still shows % instead of degrees C and W/m2..)
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: new customGraph block

Post by davidefa » Fri Jan 05, 2024 10:18 pm

I checked your settings and are correct ( if you show the block fullscreen it is displayed correctly ).
The problem seems to be an unwanted interaction with block windRose, I modified both blocks and it seem working ( at least on my sites ).

customGraph ver 0.7 ( 2024-01-05 )
- initialized Y axis min/max value to null if autoscale selected

windRose ver 1.6 ( 2024-01-05 )
- fixes to remove interaction with other highcharts graph
Attachments
windRose_1.6.zip
(5.25 KiB) Downloaded 17 times
customGraph_0.7.zip
(9.37 KiB) Downloaded 17 times
Image

Julius
Advisor
Advisor
Posts: 89
Joined: Fri Sep 24, 2021 10:41 pm
Station model: Barani MeteoHelix
Software: meteobridge

Re: new customGraph block

Post by Julius » Sat Jan 06, 2024 11:33 am

davidefa wrote: Fri Jan 05, 2024 10:18 pm I checked your settings and are correct ( if you show the block fullscreen it is displayed correctly ).
The problem seems to be an unwanted interaction with block windRose, I modified both blocks and it seem working ( at least on my sites ).

customGraph ver 0.7 ( 2024-01-05 )
- initialized Y axis min/max value to null if autoscale selected

windRose ver 1.6 ( 2024-01-05 )
- fixes to remove interaction with other highcharts graph
Wow Davide, you're becoming my meteo hero here. Do you have a paypal or some donation option for your work?

I think another block is having the same below zero Celsius display issue; the updated gfs block

Thanks for all your splendid troubleshooting and fixes!
Image

Julius
Advisor
Advisor
Posts: 89
Joined: Fri Sep 24, 2021 10:41 pm
Station model: Barani MeteoHelix
Software: meteobridge

Re: new customGraph block

Post by Julius » Wed Jan 10, 2024 10:21 am

davidefa wrote: Fri Jan 05, 2024 10:18 pm I checked your settings and are correct ( if you show the block fullscreen it is displayed correctly ).
The weirdest thing, all of a sudden, the graph stopped showing the unit values left and right from it.
I really have no idea what causes that. It's not cache, it's not a change in css, truly strange. It was fine yesterday.
The OS has not done updates without me knowing either. I've just checked.

Maybe some other block with external code is forcing a style change on me? But shouldn't it then be OK when loading just that one block?
Image

Post Reply