Simple code in *. PHP

(Translate)

Hello
I’m looking for a simple code in *. PHP styled below for a graphic.
Here’s my link:
https://localsat.net/lorarainmois.php

Thank you.
Serge

JPGraph - https://jpgraph.net/ is one of the more commonly used graphing component. I’m sure there are examples of how to use it to create various charts in the forum.

I’ve looked at this JPGraph several times without knowing where to install this link:
https://localsat.net/lorarainmois.php
Thank you.

Serge

Serge sometime ago I created a set of graphs using JPGraph and the data in the clientraw set of files in Weather Display. You can download them at https://www.stella-maris.org.uk/code/wxgraphs.zip and hopefully extract what you need from them or use them as examples to build your own. You will need to download the free version of JPGraph from their website as well.

Stuart

1 Like

Thank you “broadstair”
I’ve looked at this JPGraph several times without knowing where to install this link:
https://localsat.net/lorarainmois.php
Thank you.

Serge

1 Like

I ='m not sure what you mean about where to install the link?

JPGraph is a set of PHP scripts that you install into a directory on your website. When it’s installed you can call the JPGraph scripts from your own PHP scripts and pass data to the functions to display charts based on your own data.

I’ve tried it and it doesn’t work. I must be making a mistake somewhere.
I installed the whole thing in a directory called “JPGraph” on my web server and despite the changes I made, I don’t see any graphics.

Hi Broadstairs(Stuart)
can these files work with WD with a bit of a tweak?

Steve

This uses the clientraw files produced and uploaded by WD this is mine WX Graphs page
So you have the JPgragh folder plus the folder that has Stuart graph files in which also contains a config file which needs setting up

You could also use Highcharts if you wanted to display interactive charts. It’s a bit more complicated to produce but they are informative.

Willowsford Farm - Daily Statistics (novawx.dscloud.me)

There is also a ReadMe.txt file with Stuart’s files.