METEO_COMPARE - Nouveau Script php

Section reservée pour les fichiers COMPARE, NOAA COMPARE et autres du même genre
Répondre
tigro11
Nouveau membre
Messages : 8
Inscription : dim. mai 22, 2011 1:37 pm

Re: METEO_COMPARE - Nouveau Script php

Message par tigro11 »

Hi Jean, I hope to explain myself well, the noaa.php system that generates the graphics reads the noaa.txt file to generate everything, except for what concerns the graph of the wind averages, to create that graph the php reads the xml file that generates graphweather. This is the code that it reads:

<wind-direction-distribution>
<n>16.5</n>
<nne>13.3</nne>
<ne>11.2</ne>
<ene>7.3</ene>
<e>3.2</e>
<ese>3.4</ese>
<se>2.7</se>
<sse>3.0</sse>
<s>2.6</s>
<ssw>2.8</ssw>
<sw>2.8</sw>
<wsw>1.9</wsw>
<w>1.6</w>
<wnw>3.5</wnw>
<nw>8.1</nw>
<nnw>16.1</nnw>
</wind-direction-distribution>

is it possible to create the wind graph without the xml file?

Thanks

Valerio
Avatar de l’utilisateur
jturlier
Membre
Messages : 3149
Inscription : mar. août 22, 2006 8:38 am
Localisation : 34410 Sérignan - Languedoc
Contact :

Re: METEO_COMPARE - Nouveau Script php

Message par jturlier »

It's still not very clear !
Where does your wind xml file come from ?
This is not a GW file.

I suspect that you want to generate à radar plot file, to have wind distribution. To do so you may use vent.xml file in template directory.
This kind of file is not processed by NOAA.php. If you want to have it used, you will have to rewrite by yourself, the php script.

Jean
tigro11
Nouveau membre
Messages : 8
Inscription : dim. mai 22, 2011 1:37 pm

Re: METEO_COMPARE - Nouveau Script php

Message par tigro11 »

hello Jean, yes the sample file 2019_11.xml creates it Graphweather and saves it in the 2019/11 folder on the altervista site.
the php files that read both the wind part and the atmospheric pressure part are these two php files
GetYearlyData1.php
GetMonthlyData1.php

I wanted to know if it is possible to recreate the xml file without the use of graphweather, perhaps with a php script
Avatar de l’utilisateur
jturlier
Membre
Messages : 3149
Inscription : mar. août 22, 2006 8:38 am
Localisation : 34410 Sérignan - Languedoc
Contact :

Re: METEO_COMPARE - Nouveau Script php

Message par jturlier »

Hello Valerio,
it is always possible to create this kind of file using PHP.
However you have to consider that wlk files are binary files and are not so easy to decode. They are made with 4 kinds of dataset records : Header, dailysummary1, dailysummary2 and datarecord (1 by day). I have to use this file structure to create my VP2SQL program but I do not remember where I got it... sorry !
Good luck if you want to pursue !!!!
Rgds
Jean
tigro11
Nouveau membre
Messages : 8
Inscription : dim. mai 22, 2011 1:37 pm

Re: METEO_COMPARE - Nouveau Script php

Message par tigro11 »

I also use cumulus mx, do you think it is easier to create xml?
Has anyone ever tried it?
tigro11
Nouveau membre
Messages : 8
Inscription : dim. mai 22, 2011 1:37 pm

Re: METEO_COMPARE - Nouveau Script php

Message par tigro11 »

hi guys, to create the xml file is it possible to use php?
if so where can I start?
Thanks
Avatar de l’utilisateur
jturlier
Membre
Messages : 3149
Inscription : mar. août 22, 2006 8:38 am
Localisation : 34410 Sérignan - Languedoc
Contact :

Re: METEO_COMPARE - Nouveau Script php

Message par jturlier »

Hello Valerio,
I think you do not understand what GW does : it only gets data files from the program driving your station !
GW draws windrose using its radarplot object and its historical data.

What would be the aim of having such an xml file, these files are created in the NOAA compare program to be used to create highchart windrose ?
GetYearlyData1.php and GetMonthlyData1.php only process data from GW historical files.

The only solution to get such kind of file, would be to process the data files from your station.

Eventually, nothing is clear in the objective you pursue !!!
Try being a bit more clear in what you are looking for.
tigro11
Nouveau membre
Messages : 8
Inscription : dim. mai 22, 2011 1:37 pm

Re: METEO_COMPARE - Nouveau Script php

Message par tigro11 »

Excuse me if I have not explained my problem well, I am attaching the images of the visualization of the reports noaa WITHOUT the xml files that GW creates.
unfortunately my php file which creates the graphs also uses the xml files of gw.
I was looking for an alternative to GW to create these xml files to create the graphics.
This is the address to see the complete charts
http://carlinometeo.altervista.org/temp ... ?page=NOAA

Thanks for all the help

Valerio
Vous ne pouvez pas consulter les pièces jointes insérées à ce message.
Avatar de l’utilisateur
jturlier
Membre
Messages : 3149
Inscription : mar. août 22, 2006 8:38 am
Localisation : 34410 Sérignan - Languedoc
Contact :

Re: METEO_COMPARE - Nouveau Script php

Message par jturlier »

Good morning Valerio,
I'm sorry, but you will not find any clue in this forum that could help you.
I do not see any solution to solve your problem, unless processing directly your input files.

You did not give any information about how your data are stored, it does not help !
If your data are stored in a table, I would suggest a sql process to create additionnal tables. You have also the possibility to create triggers and views, but that would be increasing controler load.
If your data are stored in files, php scripts can be an option to create summary files. I do not thik that it would be necessary to create xml files, you just have to modify the compare script.

That's all I can do on this subject, you will have to find a solution of your own !

Ed a presto
Jean

Station : VP2 Pro Console Vue + anémomètre à Ultra-sons
Logiciels : Cumulus 1.9.4 + Cumulus2SQL
Serveur local : Apache + MySQL +PHP
PC : W10
Support Audio : FR

http://meteoserignan.ddns.net
Image
"Aide-toi d'abord toi-même et les autres t'aideront ... peut-être"
Avatar de l’utilisateur
jturlier
Membre
Messages : 3149
Inscription : mar. août 22, 2006 8:38 am
Localisation : 34410 Sérignan - Languedoc
Contact :

Re: METEO_COMPARE - Nouveau Script php

Message par jturlier »

Hello Valerio,
I reactivate this subject, I may have a solution for cumulusMX and W10.
Please if you are still interested, please drop me a personal message.
Ed a presto
Jean

Station : VP2 Pro Console Vue + anémomètre à Ultra-sons
Logiciels : Cumulus 1.9.4 + Cumulus2SQL
Serveur local : Apache + MySQL +PHP
PC : W10
Support Audio : FR

http://meteoserignan.ddns.net
Image
"Aide-toi d'abord toi-même et les autres t'aideront ... peut-être"
Répondre