Page 1 of 1

plotMXweb

Posted: Tue 12 May 2020 8:54 am
by ninuzzu66
Hi all.

I wrote a simple web page, plotMXweb.html, to plot meteo.log data file.
Every row of this file is just a copy of /<cumulus path>/CumulusMX/realtime.txt and so it contains all historical meteo data. You can create it using the following command (in linux)

cat /<cumulus path>/CumulusMX/realtime.txt >> /<meteo.log path>/meteo.log

On my system, it runs every 5 minutes.

To configure it, you just need to set the logfile variable in phpgrep.php script to specify where is meteo.log.
Of course your web server must be enable to manage php scripts.

The usage is very simple.
1) Load http://<your ip or address>/<your dir>/plotMXweb.html in your browser.
2) Insert a day in the same format used in your realtime.txt (i.e. 24-04-20) or a month (i.e. 04-20) or a year (i.e. 20).
3) Select the graph type you want (temp, press, dew etc.)
4) Press the update button.

Hope it helps

Bye, Nino Miano

Re: plotMXweb

Posted: Tue 12 May 2020 8:58 am
by ninuzzu66
I was forgetting ...
You can zoom or unzoom the graph using the mouse wheel and move it dragging and dropping.
Bye, Nino